• 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 475.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.
  • D Offline
    djsunrise19 @TiemenMoesker
    last edited by Aug 29, 2017, 7:26 PM

    @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 Aug 29, 2017, 7:28 PM Reply Quote 0
    • T Offline
      TiemenMoesker @djsunrise19
      last edited by Aug 29, 2017, 7:28 PM

      @djsunrise19

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

      D W 2 Replies Last reply Aug 29, 2017, 7:33 PM Reply Quote 0
      • D Offline
        djsunrise19 @TiemenMoesker
        last edited by Aug 29, 2017, 7:33 PM

        @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 Aug 29, 2017, 10:06 PM

          @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 Aug 30, 2017, 7:35 AM Reply Quote 0
          • ? Offline
            A Former User
            last edited by Aug 30, 2017, 7:30 AM

            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 Aug 30, 2017, 7:40 AM Reply Quote 0
            • D Offline
              djsunrise19 @wtidwell
              last edited by Aug 30, 2017, 7:35 AM

              @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
              • D Offline
                djsunrise19 @Guest
                last edited by djsunrise19 Aug 30, 2017, 7:40 AM Aug 30, 2017, 7:40 AM

                @Sean said in Electron CPU usage:

                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?

                My ATB is coming today. I’ll made a new installation with all my modules and settings from my actual raspi. I’m very excited and I’ll give a report.

                All in all it seems crazy to me, that those transitions are so cpu heavy. And in some cases (look at those nmon screenshots here) the cpu load is way to high and the mirror becomes unusable. So in that case, we should worry about that.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @Snille
                  last edited by Mykle1 Aug 30, 2017, 3:57 PM Aug 30, 2017, 11:15 AM

                  @Snille said in Electron CPU usage:

                  The was originally @Snille idea!

                  Run in Pi3 terminal (or in SSH): cat /proc/cpuinfo
                  Compare hardware and revision… :)
                  Hardware : BCM2835
                  Revision : a02082

                  Pi 3 Model B 1GB a02082 (Sony, UK)
                  Pi 3 Model B 1GB a22082 (Embest, China)

                  Does anyone with Hardware :BCM2709 have this problem?

                  Does anyone with Hardware :BCM2835 NOT have this problem?

                  Create a working config
                  How to add modules

                  T D 2 Replies Last reply Aug 30, 2017, 1:53 PM Reply Quote 0
                  • T Offline
                    TiemenMoesker @Mykle1
                    last edited by Aug 30, 2017, 1:53 PM

                    @Mykle1

                    Maybe we are on to somthing here.
                    My hardware =BCM2835
                    Revision= a02082

                    And I DO have this problem.

                    M L 2 Replies Last reply Aug 30, 2017, 7:53 PM Reply Quote 0
                    • S Offline
                      strawberry 3.141 Project Sponsor Module Developer
                      last edited by strawberry 3.141 Aug 30, 2017, 7:33 PM Aug 30, 2017, 7:20 PM

                      if i remember correct there is also a possibility to increase performance of transformations, but I’m not sure. Have to research on this

                      EDIT: I can’t do any testing for a while, if someone wants to get a hand on it I think this should make an effect as it will optimize the rendering from cpu usage to gpu. It’s still a new stuff though and I’m not sure if it is supported in electron yet.

                      .MODULENAME {
                        will-change: opacity;
                      }
                      

                      replace modulename with the actual module name

                      Please create a github issue if you need help, so I can keep track

                      T 1 Reply Last reply Aug 30, 2017, 7:54 PM Reply Quote 1
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 24
                      • 25
                      • 8 / 25
                      8 / 25
                      • First post
                        71/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