Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. IOBroker auf RasPi 4 wird immer lahmer

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    IOBroker auf RasPi 4 wird immer lahmer

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bernd33-1 @Thomas Braun last edited by

      @thomas-braun

      Sorry... Hast du so gemeint?

      top - 13:21:26 up 14 days,  4:35,  1 user,  load average: 1,90, 2,27, 2,45
      Tasks: 151 total,   8 running, 143 sleeping,   0 stopped,   0 zombie
      %Cpu(s): 35,3 us,  7,2 sy,  0,0 ni, 56,8 id,  0,0 wa,  0,0 hi,  0,7 si,  0,0 st
      MiB Mem :   3826,3 total,   1444,2 free,   1785,1 used,    596,9 buff/cache
      MiB Swap:    100,0 total,     38,3 free,     61,7 used.   2089,4 avail Mem
      
        PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
      31095 iobroker  20   0  344876 260568  28900 R 125,7   6,7  12856:31 node
      31975 iobroker  20   0  283692 166688  27368 S  37,6   4,3   6687:31 node
      31414 iobroker  20   0  193348 103308  28168 R   1,3   2,6  35:26.27 node
      11941 iobroker  20   0  236712 150608  28848 R   1,0   3,8  75:55.44 node
      31116 iobroker  20   0  205204 121072  29408 R   1,0   3,1  30:35.86 node
      31131 iobroker  20   0  168400  81052  27444 R   1,0   2,1 506:05.93 node
      31157 iobroker  20   0  170912  68128  27380 R   1,0   1,7 444:58.89 node
        471 iobroker  20   0   57188  16044   7168 S   0,3   0,4  15:41.44 python3.7
      14048 iobroker  20   0  174720  87888  28852 S   0,3   2,2   3:17.93 node
      18099 pi        20   0   10324   2872   2436 R   0,3   0,1   0:00.08 top
      26932 root      20   0       0      0      0 I   0,3   0,0   0:00.70 kworker/u8:0-flush-8:0
      31207 iobroker  20   0  185636  79424  27388 S   0,3   2,0  85:43.82 node
      31222 iobroker  20   0  168440  66800  27392 S   0,3   1,7  18:45.81 node
      31237 iobroker  20   0  178580  80140  27576 S   0,3   2,0  45:46.36 node
      31252 iobroker  20   0  171968  69836  27368 S   0,3   1,8  17:08.29 node
      31334 iobroker  20   0  170636  68760  27476 S   0,3   1,8  17:20.31 node
      31349 iobroker  20   0  170652  68444  27408 S   0,3   1,7  18:45.95 node
      31850 iobroker  20   0  176180  70448  28236 S   0,3   1,8  19:50.92 node
      32411 iobroker  20   0  184904  72756  27544 R   0,3   1,9  97:31.57 node
      32454 iobroker  20   0  187688  80828  27392 S   0,3   2,1  57:02.39 node
          1 root      20   0   34792   5024   3708 S   0,0   0,1   0:17.11 systemd
          2 root      20   0       0      0      0 S   0,0   0,0   0:01.15 kthreadd
      
      
      Thomas Braun Homoran wendy2702 4 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @bernd33-1 last edited by Thomas Braun

        @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

        31095 iobroker  20   0  344876 260568  28900 R 125,7   6,7  12856:31 node                        
        31975 iobroker  20   0  283692 166688  27368 S  37,6   4,3   6687:31 node
        

        Die beiden laufen etwas aus dem Ruder.
        Mit aktuelleren Versionen von nodejs (ich vermute da läuft noch node12) sieht man auch in top wieder mehr. In

        htop
        

        sind die aber besser zu sehen.

        1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @bernd33-1 last edited by

          @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

          31095 iobroker 20 0 344876 260568 28900 R 125,7 6,7 12856:31 node

          htop würde den Namen zur PID 31095 zeigen

          B 1 Reply Last reply Reply Quote 0
          • wendy2702
            wendy2702 @bernd33-1 last edited by wendy2702

            @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

            471 iobroker 20 0 57188 16044 7168 S 0,3 0,4 15:41.44 python3.7

            Nur mal so, welcher iobroker Adapter benötigt denn Python ?

            B 1 Reply Last reply Reply Quote 0
            • B
              bernd33-1 @wendy2702 last edited by

              @wendy2702 said in IOBroker auf RasPi 4 wird immer lahmer:

              @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

              471 iobroker 20 0 57188 16044 7168 S 0,3 0,4 15:41.44 python3.7

              Nur mal so, welcher iobroker Adapter benötigt denn Python ?

              Ich schätze das ist ESPHome...so als Laie gesagt 🙂

              1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators @bernd33-1 last edited by

                @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

                MiB Swap: 100,0 total, 38,3 free, 61,7 used. 2089,4 avail Mem

                aber dir ist auch dein RAM ist schon mal ausgegangen

                1 Reply Last reply Reply Quote 0
                • B
                  bernd33-1 @Homoran last edited by

                  @homoran
                  Mit HTOP kann ich den Text nicht aus Putty raus kopieren... Mal ein Screenshot?
                  e3c9253d-debd-4d40-a7f2-103b1d4c464b-image.png

                  Ich vermute js-controller und simple-api produzieren viel CPU load?

                  Die simple-api könnte schon sein, weil ich ein paar ESP8266 hab, die ihre Daten via API (html) an den IOB übergeben.

                  Kann man den JS-Controller noch genauer untersuchen? Also was genau die Load verursacht?

                  Homoran AlCalzone 2 Replies Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @bernd33-1 last edited by

                    @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

                    Mal ein Screenshot?

                    leider die Antwort auf die OT-Frage nach python abgeschnitten 🙂

                    @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

                    Ich vermute js-controller und simple-api produzieren viel CPU load?

                    naja, es ist ein Thread vom controller - aber warum so extrem?

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bernd33-1 @Homoran last edited by

                      @homoran
                      d744a633-eae4-46ed-ad36-0546831ecf41-image.png

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @bernd33-1 last edited by

                        @bernd33-1 Danke!
                        @wendy2702
                        ist tatsächlich esp-home

                        1 Reply Last reply Reply Quote 0
                        • AlCalzone
                          AlCalzone Developer @bernd33-1 last edited by

                          @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

                          Kann man den JS-Controller noch genauer untersuchen? Also was genau die Load verursacht?

                          Wenn simple-api wie in deinem letzten Post ~50% CPU-Last verursacht, scheint da einiges an States drüber zu gehen. Die werden dann auch alle noch vom Controller verarbeitet. Wie viele das sind, solltest du in der Instanzen-Liste im Admin sehen, wenn du den Expertenmodus anmachst.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bernd33-1 @AlCalzone last edited by

                            Allgemein mal: Bin schon beeindruckt wie schnell, intensiv und Lösungsorientiert hier geholfen wird! Danke!

                            @alcalzone
                            Meinst du das?
                            bdd773da-f674-4fc6-9621-a9c83bfb3ab1-image.png

                            AlCalzone 1 Reply Last reply Reply Quote 0
                            • AlCalzone
                              AlCalzone Developer @bernd33-1 last edited by

                              @bernd33-1 Ja das meinte ich. Scheint mir jetzt aber nicht besonders viel zu sein. Frage mich wo da 50% Last herkommen.

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bernd33-1 @AlCalzone last edited by

                                @alcalzone

                                Ok, wenn ich den Simple-API Adapter stoppe, dann komm ich noch auf eine maximale CPU Last von 30% 🤤

                                Hm, kann man bei der Simple-API "unter die Haube" schauen?

                                O wendy2702 2 Replies Last reply Reply Quote 0
                                • O
                                  oFbEQnpoLKKl6mbY5e13 @bernd33-1 last edited by

                                  @bernd33-1

                                  Fast 120MB RAM für die simple-api?! Bei mir belegt die ~36MB...

                                  1 Reply Last reply Reply Quote 0
                                  • wendy2702
                                    wendy2702 @bernd33-1 last edited by wendy2702

                                    @bernd33-1 Vielleicht mal das loggen für Simple Api auf Debug stellen!?

                                    B 1 Reply Last reply Reply Quote 0
                                    • B
                                      bernd33-1 @wendy2702 last edited by

                                      @wendy2702

                                      Gute Idee. Also, über die Simple-API kommen von 3 ESP8266 Messdaten an den IOBroker. So alle paar Sekunden. Und das scheint den IOBroker tatsächlich ans Limit zu bringen.

                                      Hm, jetzt ist guter Rat teuer 😞

                                      	2022-03-14 16:05:32.868	debug	Add to Response-Get: {"id":"javascript.0.SolarThermie.CollectorTemp","val":60.75,"value":60.75}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.862	debug	Add to Response-Get: {"id":"javascript.0.Photovoltaik.Watt","val":"281.70","value":"281.70"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.862	debug	Add to Response-Get: {"id":"javascript.0.Photovoltaik.Volt","val":"241.00","value":"241.00"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.859	debug	Add to Response-Get: {"id":"javascript.0.Photovoltaik.Frequenz","val":"50.00","value":"50.00"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.859	debug	Add to Response-Get: {"id":"javascript.0.Photovoltaik.Energy","val":1591.16,"value":1591.16}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.858	debug	Add to Response-Get: {"id":"javascript.0.Photovoltaik.Ampere","val":1.18,"value":1.18}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.843	debug	GET-setBulk for id=javascript.0.SolarThermie.CollectorTemp, oid=CollectorTempused=CollectorTemp, value=60.75
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.482	debug	GET-setBulk for id=javascript.0.Photovoltaik.Watt, oid=Wattused=Watt, value=281.70
                                      
                                      simple-api.0
                                      2022-03-14 16:05:32.007	debug	GET-setBulk for id=javascript.0.Photovoltaik.Volt, oid=Voltused=Volt, value=241.00
                                      
                                      simple-api.0
                                      2022-03-14 16:05:31.610	debug	GET-setBulk for id=javascript.0.Photovoltaik.Frequenz, oid=Frequenzused=Frequenz, value=50.00
                                      
                                      simple-api.0
                                      2022-03-14 16:05:30.803	debug	GET-setBulk for id=javascript.0.Photovoltaik.Energy, oid=Energyused=Energy, value=1591.16
                                      
                                      simple-api.0
                                      2022-03-14 16:05:29.348	debug	GET-setBulk for id=javascript.0.Photovoltaik.Ampere, oid=Ampereused=Ampere, value=1.18
                                      
                                      simple-api.0
                                      2022-03-14 16:05:25.787	debug	Values: {"Ampere":"1.18","Energy":"1591.16","Frequenz":"50.00","Volt":"241.00","Watt":"281.70","CollectorTemp":"60.75","user":"system.user.admin"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.771	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Stpdnrelais","val":0,"value":0}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.771	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Undervoltage","val":0,"value":0}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.770	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Stpdntemp","val":18.94,"value":18.94}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.769	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Celldif","val":"0.010","value":"0.010"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.769	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage7","val":3.939,"value":3.939}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.767	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage6","val":3.933,"value":3.933}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.765	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage5","val":3.938,"value":3.938}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.124	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage4","val":3.939,"value":3.939}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.124	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage3","val":3.938,"value":3.938}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.123	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage2","val":"3.930","value":"3.930"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.122	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Cellvoltage1","val":"3.940","value":"3.940"}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.122	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Packcurrent","val":0.62,"value":0.62}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:24.115	debug	Add to Response-Get: {"id":"javascript.0.Powerbank.Packvoltage","val":27.55,"value":27.55}
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.047	debug	GET-setBulk for id=javascript.0.Powerbank.Stpdnrelais, oid=Stpdnrelaisused=javascript.0.Powerbank.Stpdnrelais, value=0
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.046	debug	GET-setBulk for id=javascript.0.Powerbank.Undervoltage, oid=Undervoltageused=javascript.0.Powerbank.Undervoltage, value=0
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.045	debug	GET-setBulk for id=javascript.0.Powerbank.Stpdntemp, oid=Stpdntempused=javascript.0.Powerbank.Stpdntemp, value=18.94
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.044	debug	GET-setBulk for id=javascript.0.Powerbank.Celldif, oid=Celldifused=javascript.0.Powerbank.Celldif, value=0.010
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.044	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage7, oid=Cellvoltage7used=javascript.0.Powerbank.Cellvoltage7, value=3.939
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.043	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage6, oid=Cellvoltage6used=javascript.0.Powerbank.Cellvoltage6, value=3.933
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.034	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage5, oid=Cellvoltage5used=javascript.0.Powerbank.Cellvoltage5, value=3.938
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.034	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage4, oid=Cellvoltage4used=javascript.0.Powerbank.Cellvoltage4, value=3.939
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.034	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage3, oid=Cellvoltage3used=javascript.0.Powerbank.Cellvoltage3, value=3.938
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.033	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage2, oid=Cellvoltage2used=javascript.0.Powerbank.Cellvoltage2, value=3.930
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.033	debug	GET-setBulk for id=javascript.0.Powerbank.Cellvoltage1, oid=Cellvoltage1used=javascript.0.Powerbank.Cellvoltage1, value=3.940
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.032	debug	GET-setBulk for id=javascript.0.Powerbank.Packcurrent, oid=Packcurrentused=javascript.0.Powerbank.Packcurrent, value=0.62
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.032	debug	GET-setBulk for id=javascript.0.Powerbank.Packvoltage, oid=Packvoltageused=javascript.0.Powerbank.Packvoltage, value=27.55
                                      
                                      simple-api.0
                                      2022-03-14 16:05:23.024	debug	Values: {"javascript.0.Powerbank.Packvoltage":"27.55","javascript.0.Powerbank.Packcurrent":"0.62","javascript.0.Powerbank.Cellvoltage1":"3.940","javascript.0.Powerbank.Cellvoltage2":"3.930","javascript.0.Powerbank.Cellvoltage3":"3.938","javascript.0.Powerbank.Cellvoltage4":"3
                                      
                                      wendy2702 Homoran 2 Replies Last reply Reply Quote 0
                                      • wendy2702
                                        wendy2702 @bernd33-1 last edited by

                                        @bernd33-1 Hm,

                                        vielleicht überlegen welche der Daten wirklich wichtig sind und in dieser Häufigkeit abgefragt werden müssen. Auch mal nacht alternativen zur Datenerfassung suchen.

                                        1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @bernd33-1 last edited by

                                          @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

                                          So alle paar Sekunden

                                          das ist stark untertrieben. Da sind Millisekundenabstände.
                                          Alleine 9 Werte in der 32. Sekunde

                                          B 1 Reply Last reply Reply Quote 0
                                          • B
                                            bernd33-1 @Homoran last edited by

                                            @homoran said in IOBroker auf RasPi 4 wird immer lahmer:

                                            @bernd33-1 sagte in IOBroker auf RasPi 4 wird immer lahmer:

                                            So alle paar Sekunden

                                            das ist stark untertrieben. Da sind Millisekundenabstände.
                                            Alleine 9 Werte in der 32. Sekunde

                                            Jain.... das ist der Simple-API SetBulk transfer. Sollte laut Doku legitim sein. https://github.com/ioBroker/ioBroker.simple-api

                                            @wendy2702 jaja...da muss was anderes her. Vermutlich wird es auf ESPHome und MQTT rauslaufen.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            797
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            63
                                            3413
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo