-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
High CPU usage during sync #129
Comments
|
Thanks for the hint with the logs! I think i got the Problem... on every sync it syncs the whole file List from the octoprint history! Maybe it would be a nice option to diable the file sync (if not needed at all) or to configure a Time Range for the file sync (all files younger than 6 Months or something like this). I can delete all my files in octoprint, but i dont really want to do this :-) |
By the way, the screenshot is with adpater version 3.0 (tested this right now and can confirm the same behaviour) :-) |
The problem
Dont know really if its a bug, because the adapter runs fine otherwise.
I am running Adapter Version v4.0 and tested v4.1 because i noticed frequently CPU spikes on my Virtual Machine where iobroker runs.
They are comming from the octoprint adapter. Everytime it syncs to my Octoprint Raspi it uses a full Core (i5 3.5GHz) for about 3 seconds. Also i can see there are many input Operations during sync (too much?)
It is no difference if the octoprint Raspi is online or offline (powerless). The only difference is, the time intervals where the spikes happen are not the same (because i set different sync intervals for connected/not connected.
No other adapter causes this much load (if it would be a raspi running iobroker i could imagine it needs some cpu power to do the things it needs to do, but not with a i5 and 16GB of ram on an SSD)
I didnt notice this spikes in the past (my sync intervals where set to 5 seconds). For testing purposes i set them to 30 seconds and 10 seconds when connected.
Also i dont have checked the Thumbnails from Slicer
i will test if this happens in v3.x also.
Version of nodejs
16.19.0
Version of ioBroker js-controller
4.0.24
Version of Adapter
4.0.0 and 4.1.0
Operating system running ioBroker
Linux Debian latest Version
Checklist of files to include below
Additional information & file uploads
No response
The text was updated successfully, but these errors were encountered: