Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    SOLVED Electron and high CPU usage on Raspberry-Pi 3

    Troubleshooting
    3
    6
    1545
    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
      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

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor @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
          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.

          bhepler 1 Reply Last reply Reply Quote 0
          • bhepler
            bhepler Project Sponsor @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
              alborzs last edited by

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

              MrH 1 Reply Last reply Reply Quote 0
              • MrH
                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy