NEWS
[gelöst]Performance-Problem
-
Hallo!
Seit einigen Tagen läuft mein pi nicht mehr so richtig gut. Habe mal im top geschaut und durch iobroker (node) zT mehr als 100% CPU-Auslastung. Der pi ist ein 3+ mit 1GB Arbeitsspeicher.
Hier der Copy von top:PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 2376 iobroker 20 0 194504 97544 17244 R 104,6 10,3 4:48.79 node 2502 iobroker 20 0 161284 63404 16024 R 42,4 6,7 4:01.12 node 2462 iobroker 20 0 145176 43596 16484 S 6,0 4,6 0:16.11 node 2455 iobroker 20 0 135216 31320 15968 S 1,7 3,3 0:05.63 node 528 root 20 0 214716 22968 3064 S 1,3 2,4 0:10.12 Xorg 2350 pi 20 0 88028 13828 6428 S 1,3 1,5 0:06.21 lxterminal 2569 iobroker 20 0 146088 41832 16640 S 1,0 4,4 0:07.89 node 2440 iobroker 20 0 132456 29876 15588 S 0,7 3,1 0:03.96 node 25 root 20 0 0 0 0 S 0,3 0,0 0:01.13 ksoftirqd/3 81 root 20 0 0 0 0 I 0,3 0,0 0:00.93 kworker/u8:1-brcmf_wq/mmc1:0001:1 2398 iobroker 20 0 162288 62748 16792 S 0,3 6,6 0:27.38 node 2410 iobroker 20 0 131908 29848 15752 S 0,3 3,1 0:04.29 node 2468 iobroker 20 0 145556 43016 15704 S 0,3 4,5 0:05.33 node 2570 iobroker 20 0 137444 36700 15896 S 0,3 3,9 0:04.40 node 2583 iobroker 20 0 143452 40340 16428 S 0,3 4,3 0:06.56 node 2743 pi 20 0 10432 2796 2344 R 0,3 0,3 0:00.09 top 1 root 20 0 33784 2520 1484 S 0,0 0,3 0:05.29 systemd 2 root 20 0 0 0 0 S 0,0 0,0 0:00.01 kthreadd 3 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_gp 4 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rcu_par_gp 8 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 mm_percpu_wq 9 root 20 0 0 0 0 S 0,0 0,0 0:02.32 ksoftirqd/0 10 root 20 0 0 0 0 I 0,0 0,0 0:02.20 rcu_sched 11 root rt 0 0 0 0 S 0,0 0,0 0:00.05 migration/0 12 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/0 13 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/1 14 root rt 0 0 0 0 S 0,0 0,0 0:00.04 migration/1 15 root 20 0 0 0 0 S 0,0 0,0 0:00.90 ksoftirqd/1 18 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/2 19 root rt 0 0 0 0 S 0,0 0,0 0:00.04 migration/2 20 root 20 0 0 0 0 S 0,0 0,0 0:00.92 ksoftirqd/2 23 root 20 0 0 0 0 S 0,0 0,0 0:00.00 cpuhp/3 24 root rt 0 0 0 0 S 0,0 0,0 0:00.02 migration/3 28 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs 29 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 netns 32 root 20 0 0 0 0 S 0,0 0,0 0:00.00 khungtaskd 33 root 20 0 0 0 0 S 0,0 0,0 0:00.00 oom_reaper 34 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 writeback 35 root 20 0 0 0 0 S 0,0 0,0 0:00.33 kcompactd0 52 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kblockd 53 root rt 0 0 0 0 S 0,0 0,0 0:00.00 watchdogd 56 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 rpciod 57 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 kworker/u9:0-hci0 58 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 xprtiod 59 root 20 0 0 0 0 S 0,0 0,0 0:04.55 kswapd0 60 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 nfsiod 61 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 iscsi_eh 62 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 dwc_otg 63 root 0 -20 0 0 0 I 0,0 0,0 0:00.00 DWC Notificatio 65 root 1 -19 0 0 0 S 0,0 0,0 0:00.00 vchiq-slot/0 66 root 1 -19 0 0 0 S 0,0 0,0 0:00.00 vchiq-recy/0 67 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 vchiq-sync/0 68 root 20 0 0 0 0 S 0,0 0,0 0:00.00 vchiq-keep/0 69 root 10 -10 0 0 0 S 0,0 0,0 0:00.00 SMIO
MOD-Edit: Code in code-tags gesetzt!
Was kann ich tun?
LG
Markus -
@markusk1407 sagte in Performance-Problem:
Xorg
Ausschalten.
sudo raspi-config
Menüpunkt 3 - B1 - B1
Und bitte Konsolentext auch als Text (in CodeTags </> ) ins Forum kippen.
-
@Thomas-Braun
Danke für die Antwort. Hab xorg ausgeschaltet aber leider weiterhin eine überirdische Auslastung der CPU durch iobroker/node -
who -r free -m htop
-
@Thomas-Braun
und dann? lol bin nicht wirklich vertraut mit linux -
@markusk1407 Die drei Kommandos eingeben, Rückmeldungen im Volltext (in CodeTags!) wieder ins Forum.
-
@Thomas-Braun
jetzt bin ich überfordert Also bis eben konnte ich mit der Maus markieren und dann kopieren und im Browser dann alles einfügen. Nun hab ich nur noch den Terminal und kann weder markieren und kopieren, noch den Browser öffnen. Sorry für das viele Unwissen meinerseits -
@markusk1407 Springst du da direkt auf dem Server rum? Nicht per SSH (puTTY) von einem anderen Rechner?
Ohne Xorg hast du natürlich da nur noch die tty / Terminals. Das ist ja auch richtig so.
-
@Thomas-Braun yup
-
@markusk1407
Dann richte dir einen Zugang per SSH ein.
Die Windows Powershell kann mittlerweile auch SSH. -
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 449 iobroker 20 0 218M 116M 11204 R 124. 12.5 28:42.03 iobroker.js-controller 787 iobroker 20 0 155M 55204 9364 S 65.1 5.8 21:29.99 io.hue-extended.0 1436 iobroker 20 0 220M 118M 9420 S 11.8 12.8 3:58.72 io.javascript.0 488 iobroker 20 0 218M 116M 11204 S 11.8 12.5 0:35.42 iobroker.js-controller 489 iobroker 20 0 218M 116M 11204 S 10.5 12.5 0:35.82 iobroker.js-controller 486 iobroker 20 0 218M 116M 11204 S 9.2 12.5 0:35.39 iobroker.js-controller 487 iobroker 20 0 218M 116M 11204 S 7.9 12.5 0:34.30 iobroker.js-controller 1389 iobroker 20 0 142M 37748 10828 S 5.9 4.0 0:42.17 io.alexa2.0 1394 iobroker 20 0 142M 37748 10828 S 5.3 4.0 0:01.61 io.alexa2.0 795 iobroker 20 0 155M 55204 9364 S 4.6 5.8 0:26.62 io.hue-extended.0 797 iobroker 20 0 155M 55204 9364 S 3.9 5.8 0:26.52 io.hue-extended.0 796 iobroker 20 0 155M 55204 9364 S 3.3 5.8 0:25.16 io.hue-extended.0 633 iobroker 20 0 171M 58084 9344 S 3.3 6.1 0:53.99 io.admin.0 738 iobroker 20 0 150M 44928 9668 S 2.6 4.7 2:17.94 io.hue.0 1801 pi 20 0 9004 3568 2212 R 2.6 0.4 0:00.64 htop 794 iobroker 20 0 155M 55204 9364 S 2.0 5.8 0:26.30 io.hue-extended.0 743 iobroker 20 0 150M 44928 9668 S 1.3 4.7 0:01.43 io.hue.0 760 iobroker 20 0 130M 25888 8928 S 0.7 2.7 0:09.05 io.scenes.0 1390 iobroker 20 0 141M 39860 9816 S 0.7 4.2 0:14.55 io.nina.0 421 root 20 0 27656 8 0 S 0.7 0.0 0:01.35 /usr/sbin/rngd -r /dev/hwrng 744 iobroker 20 0 144M 37740 9528 S 0.0 4.0 1:00.62 io.nuki-extended.0 1457 iobroker 20 0 140M 38416 10016 S 0.0 4.0 0:23.15 io.upnp.0 1459 iobroker 20 0 140M 38416 10016 S 0.0 4.0 0:00.62 io.upnp.0 1374 iobroker 20 0 144M 34936 9288 S 0.0 3.7 0:20.49 io.web.0 1784 pi 20 0 12236 3552 2768 S 0.0 0.4 0:00.18 sshd: pi@pts/0 496 dnsmasq 20 0 11156 792 708 S 0.0 0.1 0:01.22 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8 723 iobroker 20 0 138M 26352 9392 S 0.0 2.8 0:12.25 io.tankerkoenig.0 741 iobroker 20 0 150M 44928 9668 S 0.0 4.7 0:01.30 io.hue.0 814 iobroker 20 0 137M 33448 9192 S 0.0 3.5 0:15.57 io.bshb.0 727 iobroker 20 0 138M 26352 9392 S 0.0 2.8 0:00.57 io.tankerkoenig.0 728 iobroker 20 0 138M 26352 9392 S 0.0 2.8 0:00.44 io.tankerkoenig.0 424 root 20 0 27656 8 0 S 0.0 0.0 0:01.26 /usr/sbin/rngd -r /dev/hwrng 1377 iobroker 20 0 144M 34936 9288 S 0.0 3.7 0:01.10 io.web.0 445 mosquitto 20 0 8808 1504 1340 S 0.0 0.2 0:02.10 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf 725 iobroker 20 0 138M 26352 9392 S 0.0 2.8 0:00.41 io.tankerkoenig.0 726 iobroker 20 0 138M 26352 9392 S 0.0 2.8 0:00.57 io.tankerkoenig.0 779 iobroker 20 0 135M 29060 9372 S 0.0 3.1 0:10.13 io.netatmo.0 1376 iobroker 20 0 144M 34936 9288 S 0.0 3.7 0:01.02 io.web.0 1439 iobroker 20 0 220M 118M 9420 S 0.0 12.8 0:03.23 io.javascript.0 1442 iobroker 20 0 220M 118M 9420 S 0.0 12.8 0:02.73 io.javascript.0 1440 iobroker 20 0 220M 118M 9420 S 0.0 12.8 0:03.01 io.javascript.0 1402 iobroker 20 0 136M 29076 9396 S 0.0 3.1 0:11.83 io.vr200.1 409 nobody 20 0 4320 592 564 S 0.0 0.1 0:00.68 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event* 693 iobroker 20 0 130M 20176 8908 S 0.0 2.1 0:08.76 io.discovery.0 742 iobroker 20 0 150M 44928 9668 S 0.0 4.7 0:01.72 io.hue.0 981 iobroker 20 0 131M 26256 9064 S 0.0 2.8 0:07.85 io.trashschedule.0 1441 iobroker 20 0 220M 118M 9420 S 0.0 12.8 0:03.19 io.javascript.0 1280 iobroker 20 0 140M 34676 9052 S 0.0 3.7 0:29.26 io.tr-064.0 699 iobroker 20 0 139M 27840 9856 S 0.0 2.9 0:11.23 io.info.0 1437 iobroker 20 0 129M 23368 8892 S 0.0 2.5 0:07.72 io.vis-inventwo.0 303 root 20 0 7712 460 460 S 0.0 0.0 0:03.10 /usr/sbin/haveged --Foreground --verbose=1 -w 1024 551 iobroker 20 0 218M 116M 11204 S 0.0 12.5 0:00.58 iobroker.js-controller 1 root 20 0 34800 5140 3924 S 0.0 0.5 0:05.65 /sbin/init splash
-
@markusk1407 sagte in Performance-Problem:
free -h
-
total used free shared buff/cache available Mem: 926Mi 709Mi 108Mi 0,0Ki 108Mi 208Mi Swap: 99Mi 91Mi 8,0Mi
-
@markusk1407
Die Kiste swappt, dürfte sich aber über die Zeit auch wieder beruhigen.
Mein System schaut z. B. so aus:pi@raspberrypi:~ $ free -h total used free shared buff/cache available Mem: 3,7Gi 745Mi 1,9Gi 8,0Mi 1,1Gi 3,0Gi Swap: 99Mi 0B 99Mi pi@raspberrypi:~ $ uptime 19:24:34 up 2 days, 18:48, 1 user, load average: 0,39, 0,50, 0,59
-
@Thomas-Braun
Und das heißt er nutzt die SD-Karte weil er nicht genug Arbeitsspeicher hat und belastet somit die CPU? Hab ich das richtig verstanden? -
@markusk1407 Ja, so ungefähr.
Viele Ressourcen hast du auf dem System also nicht mehr, bei weiteren Instanzen der Adapter ist das ausgereizt.
Ich würde mal schauen, welche Adapter ggf. überflüssig sind. Gibt da meist so ein paar Kandidaten. -
@Thomas-Braun
Also Adapter reduzieren oder einen raspi mit mehr Arbeitsspeicher
okay, vielen herzlichen Dank!!!! -
@markusk1407
Ja, Schlankheitskur einlegen. -
-
@Thomas-Braun Vielen Dank!