-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New version takes more cpu #125
Comments
The reason may be the switch from OpenSSL to Bouncy Castle. Before I spend time trying to optimize the performance I'd like to ask if this is an issue for you or just an observation? |
Thanks for your involvement! I noticed remarkably higher CPU temperatures and device being much warmer than usual at any time since using master branch and some 'on the edge' slowdowns when short term programs with high resources are running. This made me look for the reason which I found disappeared when going back to v0.0.16. So, yes for me it is an issue which I currently overcome by using old version. But of course I'd like to be ready to use future versions as well, so I'd be happy to see this sorted out |
Can you try to generate two traces with dotnet trace on your hardware? One for v0.0.16 and another v0.0.17. This won't work from outside the docker image and the ism7mqtt image will not allow you to spawn a shell, so you either need to temporarily run ism7mqtt without docker or create your own image. |
OK, I was running both then locally (I didnt manage to build Image with dotnet-trace successfully). Both were running only a minute or two. If you need longer times, let me know |
@alexkno79 Thanks for the traces! Unfortunately I need to inform you, that these traces contain the credentials for your ISM and your MQTT server. I've already removed the link from your comment, and opened a request on github support to delete the files, but the link was also sent via mail As for the actual problem: I can see that a significant amount of time is being spent in the new TLS layer and it looks like we should be able to fix it. |
Thanks a Lot! I measure in 5min intervals and then new binaries take around 2.2% of my CPU while v16 consumes ca 1.3% |
I've pushed another change which revert to ssl connection to openssl - can you try the new binaries? |
Thanks again! Still ca 2% CPU usage compared to approx 1.2 on v0.0.16 Below the process figures where you can the switch back to v0.0.16 at around 21:37 which immediately drop to half the values |
I am running ism7mqtt on a raspi in a docker environment.
I used previously v0.0.16 which used around 0.3% of my CPU in idle and around 2% in case new messages are received and processed.
When using the master branch I notice remarkable higher cpu consumption.
Below the same with v0.0.16:
Below you can see some CPU stats using the master branch (same parameter.json and same overall config as all environment variables are the same, just the image changed):
Also the overall usage is remarkable. Here a graph showing the docker stats for the container until 10:00 with master branch and the much more relaxed system after 10:00 running v0.0.16.
So some of the changes seem to be very resource consuming in latest build for any reason
The text was updated successfully, but these errors were encountered: