Read the statement by Michael Teeuw here.
Electron and high CPU usage on Raspberry-Pi 3
-
Hi,
I have a working MM and it looks amazing :smiling_face_with_open_mouth:
The only issue is that the CPU usage of electron(s) is extremely high.I have followed everything in the Raspberry-pi guide but when running top I get the following:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 941 pi 20 0 400560 159456 78664 R 127.8 16.8 5:00.29 electron 938 pi 20 0 312916 86456 70300 R 88.9 9.1 3:42.10 electron 903 pi 20 0 487216 118084 77744 R 11.1 12.4 0:37.83 electron
Why so many instances of electron and why is the CPU usage so high? (by the way my SD card is fine and pretty much empty)
Any help would be much appreciated
-
@alborzs - Which modules do you have loaded? The basic Magic Mirror isn’t terribly resource intensive. But some modules really give it a workout.
-
@bhepler, is there a way to find out if/what module might be the cause of the extensive CPU usage? Other than the default modules, I only got MMM-Netatmo and MMM-ResRobot.
-
@alborzs - other than the hard way, no. Remove all of the modules and then add them back one at a time with an eye on your CPU usage.
The other thing to double-check is to make sure that you have one of the OpenGL drivers active. The regular one or the fake one, it doesn’t really matter which. The non-OpenGL driver uses a lot of CPU time.
-
@bhepler, that did solve the problem, One module was causing the issue. Thanks.
-
@alborzs Which module caused it? Sure hope it’s not ResRobot as that is my next add-on.