• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 CPU usage

Scheduled Pinned Locked Moved Troubleshooting
247 Posts 46 Posters 490.7k Views 42 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @wtidwell
    last edited by Aug 21, 2017, 12:42 AM

    @wtidwell said in Electron CPU usage:

    I did remove both compliments and news feed both together and individually to see if it was one particular module but it seems to be both causing problems.

    Well, I’m fairly certain it is neither one of those modules. You’ve got something else going on there. The Pi3 can easily handle the default installation, and more.

    What size SD card are you using? What speed is the SD card you are using? Is there anything else on the SD card other than the OS and the MM software? How much available space is on the SD card?

    Create a working config
    How to add modules

    1 Reply Last reply Reply Quote 1
    • W Offline
      wtidwell
      last edited by wtidwell Aug 21, 2017, 1:01 AM Aug 21, 2017, 12:52 AM

      It’s a Samsung 32gb microsd. It’s Class10, u1 which I was wondering if that may be a problem? It says I have 22.9gb free out of 27.9 total.

      Also I tried to reinstall electron and it said there was an unmet peer dependency for styleint. So now I’m trying to figure out how to install that.

      Edit: got stylelint installed but it’s still laggy.

      M 1 Reply Last reply Aug 21, 2017, 1:15 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @wtidwell
        last edited by Aug 21, 2017, 1:15 AM

        @wtidwell

        The capacity is certainly large enough. I don’t know if the U1 designation has anything to do with it. There is a recommended SD card list somewhere. Your free space is more than adequate, assuming you expanded the swap file during installation of the OS, or something like that. If stylelint was a warning, and not an error, then that shouldn’t affect performance. I know, all of this doesn’t help you, so . . .

        A few more thoughts. Are you running Raspbian Jessie? Lite? Are node and npm up to date?

        I know it’s a hassle, but I always suggest a clean, MANUAL installation as opposed to troubleshooting, which could take hours, or days. Some people have had troubles with the automatic installer. That’s just my opinion, for what it’s worth.

        Create a working config
        How to add modules

        W 1 Reply Last reply Aug 21, 2017, 1:39 AM Reply Quote 0
        • R Offline
          roramirez Core Contributors @wtidwell
          last edited by Aug 21, 2017, 1:20 AM

          @wtidwell Can you share the configuration when did you get a big CPU usage?

          What version are you using?

          Easy module development with MagicMirror Module Template

          W 1 Reply Last reply Aug 21, 2017, 2:56 AM Reply Quote 0
          • W Offline
            wtidwell @Mykle1
            last edited by Aug 21, 2017, 1:39 AM

            @Mykle1
            Looks like I’m running Jessie and my SD card is on the recommended list so I’ll try a manual reinstall.

            Thanks for all your help!

            1 Reply Last reply Reply Quote 0
            • W Offline
              wtidwell @roramirez
              last edited by Aug 21, 2017, 2:56 AM

              @roramirez
              @Mykle1

              I just did a full clean install of everything including Raspian and I had to install stretch instead of Jessie but everything else installed smoothly but I’m still having this lag.

              M 1 Reply Last reply Aug 21, 2017, 11:55 AM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @wtidwell
                last edited by Aug 21, 2017, 11:55 AM

                @wtidwell
                2 clean installations, 1 with Jessie and 1 with Stretch and the same issue appears? Unless some step is missing with the OS or MM then I’d hate to assume you have a hardware issue. I really need to get a spare Pi3 so that I can troubleshoot more effectively. I’m only on a dev machine at the moment.

                Perhaps @roramirez has some input here

                Create a working config
                How to add modules

                R 1 Reply Last reply Aug 21, 2017, 10:22 PM Reply Quote 0
                • S Offline
                  Snille Module Developer
                  last edited by Aug 21, 2017, 12:02 PM

                  Hmm… I always thought this was a normal behavior? Electron always runs pretty high on my RPI Mirror. This is my “task-list” using nmon on the RPi (via SSH) with basically nothing on the Mirror Screen but as you can see Electron is pretty active. :)
                  0_1503316867133_Busy-Electron.jpg
                  I do have quite a lot of active plugins of course…

                  If you cant find it, make it and share it!
                  Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                  W 1 Reply Last reply Aug 21, 2017, 12:24 PM Reply Quote 0
                  • W Offline
                    wtidwell @Snille
                    last edited by Aug 21, 2017, 12:24 PM

                    @Mykle1
                    Yeah I’d hate that too. =/ gonna try another clean install but this time of Raspian lite. I guess I can try a new SD card as well.

                    @Snille
                    That’s what mine looks like now with only default modules. And it spikes all the time.

                    M 2 Replies Last reply Aug 21, 2017, 1:50 PM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @wtidwell
                      last edited by Aug 21, 2017, 1:50 PM

                      @wtidwell & @Snille

                      For what it’s worth:

                      Here are my screenshots from my Pi3 mirror, via VNC, as of this morning, August 21, 2017
                      at 8:26am New York time. You can clearly see that Magic Mirror is running. It’s minimized
                      in the top Menu Bar so I could run Task Manager for this test. I marked the significant
                      details with red stars. This is on top of a standard Raspbian Jessie installation that was
                      done in January, 2017 and Magic Mirror version 2.1.0. It has been running this way for
                      8 months now, without a hitch. These screenshots were done with all of the below modules
                      running. I also included a screenshot of my system stats to show the temperature of my Pi’s
                      CPU and my system load, as they both may relate to performance and throttling issues.

                      0_1503323377666_bb.JPG

                      0_1503323400308_ee.JPG

                      • Modules running during test and screenshots.

                      motiondetector
                      compliments
                      MMM-Fortune
                      MMM-EasyPix - 2 instances
                      MMM-EARTH
                      clock
                      calendar
                      MMM-Events
                      MMM-SystemStats
                      MMM-NetworkScanner
                      MMM-WunderGround - 2 instances
                      MMM-doomsDay
                      camera
                      MMM-Lottery
                      voicecontrol
                      MMM-EyeCandy
                      newsfeed

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 24
                      • 25
                      • 1 / 25
                      1 / 25
                      • First post
                        8/247
                        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