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 597.3k 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.
    • bheplerB Offline
      bhepler Module Developer
      last edited by

      Have you guys tried allocating more memory to the GPU? I think the default is like 64MB or something. I bumped mine to 128MB a while ago.

      One other dumb suggestion: Did you remove the nonessential stuff from your Raspian installs? The Minecraft, Wolfram Alpha, etc. as per the complete setup tutorial?

      W 1 Reply Last reply Reply Quote 0
      • T Offline
        TiemenMoesker
        last edited by

        Actually the only thing I did was. Run the auto install command of magic mirror 2 and pm2. That’s it.

        bheplerB 1 Reply Last reply Reply Quote 0
        • W Offline
          wtidwell @bhepler
          last edited by

          @bhepler
          I’ve done that, both ways giving the gpu more ram and less ram and that doesn’t seem to solve it for me.

          I did remove all the excess on other installs I did but there’s no other processes running anyway to take away cpu time.

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

            @TiemenMoesker Okay, not a problem. This may not free up resources, but it will remove some of the unused programs from the default Raspian image. This is more important with smaller SD cards where space is at a premium.

            sudo apt-get remove --purge idle3 java-common libreoffice* minecraft-pi scratch nuscratch penguinspuzzle python-minecraftpi python3-minecraftpi smartsim sonic-pi wolfram-engine
            

            The second option is to increase the amount of memory that is dedicated to the graphics chip on the pi. If you enter sudo raspi-config from the command line, you’ll get a basic configuration window. If you’re actually on the pi, you can go to the main menu ->sudo Preferences and one of the tabs in the pi configuration is the GPU memory allocation. The default is 64MB IIRC. You can bump that up to 128 or 256 and see if it helps with your animation issue.

            Note: It seems like these suggestions don’t help anyway. Nuts.

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              TiemenMoesker @bhepler
              last edited by

              @bhepler

              Your “Note” says it all…😔

              1 Reply Last reply Reply Quote 0
              • T Offline
                TiemenMoesker
                last edited by

                Fresh manual installation of Raspbarian. Running the magic mirror auto install now.

                Everything seems fine, but I do get this:

                //npm WARN grunt-stylelint@0.9.0 requires a peer of stylelint@^8.0.0 but none was installed.
                npm WARN stylelint-config-standard@17.0.0 requires a peer of stylelint@^8.0.0 but none was installed.
                npm WARN stylelint-config-recommended@1.0.0 requires a peer of stylelint@^8.0.0 but none was installed.
                

                Is this a (or THE) problem?

                1 Reply Last reply Reply Quote 0
                • D Offline
                  djsunrise19
                  last edited by djsunrise19

                  Same here. I have / had this problem since months. Today I’ve updated my mirror (because it says, there is an update). After this my mirror isn’t usable anymore. The problem is way heavier : I tried very much, but no effects. With MMv1 everything was smooth. I have 2x Raspi 3 - same behaviour.

                  • Tried Raspi 2 and 3
                  • deactivated all modules
                  • fresh installations a few times
                  • different (sandisk) sd cards
                  • increase gpu amount to 128/256MB

                  In MMv2 something changes with the CSS transitions. But I don’t know if that is the problem.

                  0_1504026521820_592713f3-15b2-4335-9eb6-32cc9655abba-image.png

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TiemenMoesker
                    last edited by

                    For now I wish to know if it’s a problem with the PI or the installation / SD. Because if it’s a problem with the PI, at this moment, I can get it replaced for free or get my money back. My main reason buying the PI was for this project and to kill some time (vacation).

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      djsunrise19
                      last edited by

                      Yeah, totally understand. I feel the same. It has to do anything with the transitions. Another screen with the newsfeed module only. You can see cleary, when the transition starts and ends. So frustrating.

                      0_1504028837290_f41e5f17-de14-4c45-982b-f30cd4c5b075-image.png

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        TiemenMoesker @djsunrise19
                        last edited by

                        @djsunrise19

                        This is what I get too, but with both News and Compliments on.

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TiemenMoesker
                          last edited by

                          @MichMich be our hero. :p

                          W 1 Reply Last reply Reply Quote 0
                          • W Offline
                            wtidwell @TiemenMoesker
                            last edited by

                            @TiemenMoesker it feels good to get some validation that I may not actually be crazy and there is a problem. Hahaha

                            T 1 Reply Last reply Reply Quote 0
                            • T Offline
                              TiemenMoesker @wtidwell
                              last edited by

                              @wtidwell True :)

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TiemenMoesker
                                last edited by

                                @djsunrise19 I noticed that you have had this problem for wel over a year now. Damn. I don’t understand how it doesnt work properly… Used Noobs to install Rasbain, used auto install from MagicMirror homepage, nothing else, yet it doesn’t work.

                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  djsunrise19 @TiemenMoesker
                                  last edited by

                                  @TiemenMoesker said in Electron CPU usage:

                                  @djsunrise19 I noticed that you have had this problem for wel over a year now. Damn. I don’t understand how it doesnt work properly… Used Noobs to install Rasbain, used auto install from MagicMirror homepage, nothing else, yet it doesn’t work.

                                  Yes, but today, after

                                  git pull && npm install
                                  

                                  it becomes totally unusable. My “seconds” refreshed every 15 seconds, 320% CPU usage… I don’t know.

                                  T 1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TiemenMoesker @djsunrise19
                                    last edited by

                                    @djsunrise19

                                    :( …has anyone here tried another PI. I am considering to buy another one.

                                    D W 2 Replies Last reply Reply Quote 0
                                    • D Offline
                                      djsunrise19 @TiemenMoesker
                                      last edited by

                                      @TiemenMoesker said in Electron CPU usage:

                                      @djsunrise19

                                      :( …has anyone here tried another PI. I am considering to buy another one.

                                      I have two of them. The second Raspi 3 (I bought them at the same time) works better. But, as everybody can see, while an animation is working, there are 45-55% peaks (one animation in newsfeed). I don’t think, that this should be.

                                      0_1504035189372_58240d80-a555-49b2-840b-9d75da062dfd-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        wtidwell @TiemenMoesker
                                        last edited by

                                        @TiemenMoesker I tried two pies with exactly the same result. My spikes are way higher than 55%, on the order of max processing.

                                        D 1 Reply Last reply Reply Quote 0
                                        • ? Offline
                                          A Former User
                                          last edited by

                                          I have a very stupid question.
                                          In my new ATB, transition animation caused CPU usage around max 70%.(by nmon. htop shows less than that… around 30~50%). Without transition, near 10~20%.
                                          But… I had not felt the performance issue before this thread. Will it be a real problem? I’m not an expert, but I think, temporally CPU usage could be high than we’ve thought. Should I really worry about this?

                                          D 1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            djsunrise19 @wtidwell
                                            last edited by

                                            @wtidwell said in Electron CPU usage:

                                            @TiemenMoesker I tried two pies with exactly the same result. My spikes are way higher than 55%, on the order of max processing.

                                            Hm, okay. But that seems to be a little bit weird. Imagine there are f.e. 8 modules. 3 of them make a fade at the same time (compliments, feed and calendar / netatmo, …). Then max processing is over 100%. Thats the problem in my first screenshot. 320% max cpu. This can not be right.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 12
                                            • 13
                                            • 4 / 13
                                            • 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