DuetPi - SBC/Chromium chewing CPU cycles
-
I'm using the "full" (not "lite") version of the DuetPi image, and it's updated via "apt." I'm running on a Pi4 with 4GB of RAM. Duet3 board, RRF/DWC/DSF 3.2 (updated via apt release channel.)
My problem is that the chromium process (which is only being used for DWC for the attached duet) is chewing a lot of CPU. When it first starts, its "only" using about 25-35% CPU, but after a few days, even while not printing, chromium is sitting at around 75% CPU. While printing (which is when I'd be most concerned about chromium stealing cycles from DSF), chromium stays around 80% CPU. (I've attached a screen snippet below showing htop.) I've tried various "refresh delays" in DWC between 200 and 2000 ms, but that doesn't seem to have any significant impact. I'm not using VNC (and don't have it enabled.)
If I close the chromium process and restart it, it drops back down to 20-30% CPU for a few hours, but it slowly creeps back up. The only DWC plugin I have enabled is the height map.
I'm not blaming DWC for this. I don't have the same issue on my real desktop computer (which always has a browser window open to DWC.)
My question is: What are other people doing to deal with this? I'm starting to wonder if I should set up some kind of cron job to kill and restart chromium every day.
Edit: just to contrast, here's what htop looks like several minutes after restarting chromium (with a print job still going):
-
That sounds odd - the new update delay should have reduced the CPU usage notably. Do you have the latest Chromium version from Raspbian installed (i.e. did you do apt update/upgrade recently)?
-
@chrishamm said in DuetPi - SBC/Chromium chewing CPU cycles:
That sounds odd - the new update delay should have reduced the CPU usage notably. Do you have the latest Chromium version from Raspbian installed (i.e. did you do apt update/upgrade recently)?
yes - in fact, before posting the above I ensured that chromium, etc were all updated.
I'm using the default repos from the duetpi image (so, no unstable stuff.)