MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Electron and high CPU usage on Raspberry-Pi 3

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 3 Posters 2.7k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      alborzs
      last edited by alborzs

      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

      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @alborzs
        last edited by

        @alborzs - Which modules do you have loaded? The basic Magic Mirror isn’t terribly resource intensive. But some modules really give it a workout.

        1 Reply Last reply Reply Quote 0
        • A Offline
          alborzs
          last edited by

          @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.

          bheplerB 1 Reply Last reply Reply Quote 0
          • bheplerB Offline
            bhepler Module Developer @alborzs
            last edited by

            @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.

            1 Reply Last reply Reply Quote 1
            • A Offline
              alborzs
              last edited by

              @bhepler, that did solve the problem, One module was causing the issue. Thanks.

              MrHM 1 Reply Last reply Reply Quote 0
              • MrHM Offline
                MrH @alborzs
                last edited by

                @alborzs Which module caused it? Sure hope it’s not ResRobot as that is my next add-on.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy