Hallo Zusammen,
bei mir kommt es in der letzten Zeit häufiger vor, das ein USB-Device nicht mehr präsent ist. Diese Ursache bin ich noch am eruieren.
Aber:
Wenn dem so ist, dann "haut" das FHEM komplett aus den Socken, sprich: totaler Stillstand.
2016.09.14 07:22:44 1: /dev/jeelink disconnected, waiting to reappear (JEELINK)
2016.09.14 07:22:44 1: /dev/rfxtrx433 disconnected, waiting to reappear (RFXCOM)
2016.09.14 07:22:45 3: Setting JEELINK serial parameters to 57600,8,N,1
2016.09.14 07:22:45 1: /dev/jeelink disconnected, waiting to reappear (JEELINK)
Ab hier geht es dann nicht weiter. FHEM wird bei mir mittels Monit überwacht und nach 5 min. nicht Erreichbarkeit heruntergefahren und neu gestartet.
Heute Nacht ist das mehrfach vorgekommen.
Irgendwie scheint DevIo.pm hier mitbekommen, das die Verbindung (komplett) verloren geht oder es muss noch an etwas anderem liegen. Nur an was?
Hintergrund:
Meine "Haupt" FHEM-Instanz läuft in einer virtuellen Umgebung. Einer der mehreren USB Busse des Wirtsystems wird komplett an den Gast FHEM mittels PCI passthrough durchgereicht. Im Gastsystem sind alle USB Geräte also (für FHEM, bzw. für das OS Ubuntu) scheinbar physikalisch angeschlossen. Warum die USB Geräte aussteigen und sich dann wieder neu anmelden, weiss ich im Moment nicht. Kann an PCI passthrough liegen, kann aber auch daran liegen, das die Geräte an einem hochwertigem 7 Port USB Hub mit 2 Ampere Spannung je Port über eine USB über Ethernet Verlängerung angeschlossen ist. Dies alles sollte aber bzgl. des totalen Stillstands von FHEM keine Rolle spielen.
Bei Unix/Linux war es schon immer so, dass es nichts schlimmeres gibt, als einen Prozess, der auf I/O von einem nicht mehr vorhandenen Device wartet.
Und da Perl/DevIO sicher irgendwo Unix Systemcalls verwendet (z.B. select()), kommen solche Effekte zustande. Eigentlich arbeiten Calls wie read(), write(), select() mit Timeouts. Diese funktionieren bei fehlenden Geräten je nach Unix/Linux Version mehr oder weniger gut.
Ja, das ist mir soweit bekannt... haben wir nicht dennoch eine Möglichkeit, das abzufangen?
ZitatWenn dem so ist, dann "haut" das FHEM komplett aus den Socken, sprich: totaler Stillstand.
Was genau heisst "totaler Stillstand"?
Kannst du bitte in so einem Fall "timeout 10 strace -p <fhem-pid>; lsof -p <fhem-pid>; ls -l /proc/<fhem-pid>/fd" durchfuehren und hier anhaengen?
Ich vermute kein generelles FHEM/DevIo Problem, sondern ein Modul, was sich nicht an die (ungeschriebenen :) ) Regeln haelt.
ZitatUnd da Perl/DevIO sicher irgendwo Unix Systemcalls verwendet (z.B. select()), kommen solche Effekte zustande.
Wenn man select richtig verwendet, dann darf nichts blockieren. Heisst nicht, dass alle FHEM Module (selbst die ich gebaut habe), select richtig verwenden.
Zitat von: rudolfkoenig am 17 September 2016, 09:10:28
Was genau heisst "totaler Stillstand"?
Leider bedeutet es (bei mir) genau das, was ich geschrieben habe.. es hilft nur noch den Prozess zu töten.
Zitat von: rudolfkoenig am 17 September 2016, 09:10:28
Kannst du bitte in so einem Fall "timeout 10 strace -p <fhem-pid>; lsof -p <fhem-pid>; ls -l /proc/<fhem-pid>/fd" durchfuehren und hier anhaengen?
Ich vermute kein generelles FHEM/DevIo Problem, sondern ein Modul, was sich nicht an die (ungeschriebenen :) ) Regeln haelt.
Jo, ich schau mal was da möglich ist... Tritt ja (zum Glück) nicht laufend auf.. aber wenn, dann richtig.
2016.09.19 00:12:11 1: /dev/jeelink disconnected, waiting to reappear (JEELINK)
2016.09.19 00:12:12 1: /dev/rfxtrx433 disconnected, waiting to reappear (RFXCOM)
2016.09.19 00:12:12 3: Setting JEELINK serial parameters to 57600,8,N,1
2016.09.19 00:12:12 1: /dev/jeelink disconnected, waiting to reappear (JEELINK)
root@myhce01:~# timeout 10 strace -p 4134
strace: Process 4134 attached
strace: Process 4134 detached
root@myhce01:~# lsof -p 4134
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
perl 4134 root cwd DIR 253,1 4096 2 /
perl 4134 root rtd DIR 253,1 4096 2 /
perl 4134 root txt REG 253,1 2082616 1332307 /usr/bin/perl
perl 4134 root mem REG 253,1 67152 2099880 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Compress/Raw/Zlib/Zlib.so
perl 4134 root mem REG 253,1 26224 1966631 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/File/Glob/Glob.so
perl 4134 root mem REG 253,1 21920 1311299 /usr/lib/i386-linux-gnu/libXdmcp.so.6.0.0
perl 4134 root mem REG 253,1 149108 1311314 /usr/lib/i386-linux-gnu/libxcb.so.1.1.0
perl 4134 root mem REG 253,1 57536 1324294 /usr/lib/i386-linux-gnu/libjbig.so.0
perl 4134 root mem REG 253,1 148952 1835073 /lib/i386-linux-gnu/liblzma.so.5.0.0
perl 4134 root mem REG 253,1 114560 1837483 /lib/i386-linux-gnu/libgcc_s.so.1
perl 4134 root mem REG 253,1 1348416 1324304 /usr/lib/i386-linux-gnu/libX11.so.6.3.0
perl 4134 root mem REG 253,1 165308 1835315 /lib/i386-linux-gnu/libexpat.so.1.6.0
perl 4134 root mem REG 253,1 492564 1324298 /usr/lib/i386-linux-gnu/libtiff.so.5.2.4
perl 4134 root mem REG 253,1 2033260 1324288 /usr/lib/i386-linux-gnu/libvpx.so.3.0.0
perl 4134 root mem REG 253,1 67328 1312169 /usr/lib/i386-linux-gnu/libXpm.so.4.11.0
perl 4134 root mem REG 253,1 293176 1312361 /usr/lib/i386-linux-gnu/libfontconfig.so.1.9.0
perl 4134 root mem REG 253,1 714364 1310854 /usr/lib/i386-linux-gnu/libfreetype.so.6.12.1
perl 4134 root mem REG 253,1 169632 1835297 /lib/i386-linux-gnu/libpng12.so.0.54.0
perl 4134 root mem REG 253,1 103984 1839614 /lib/i386-linux-gnu/libz.so.1.2.8
perl 4134 root mem REG 253,1 382732 1315571 /usr/lib/i386-linux-gnu/libjpeg.so.8.0.2
perl 4134 root mem REG 253,1 419552 1317040 /usr/lib/i386-linux-gnu/libgd.so.3.0.0
perl 4134 root mem REG 253,1 157544 2100194 /usr/lib/i386-linux-gnu/perl5/5.22/auto/GD/GD.so
perl 4134 root mem REG 253,1 34400 1967574 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Encode/Encode.so
perl 4134 root mem REG 253,1 96072 1835263 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Storable/Storable.so
perl 4134 root mem REG 253,1 87876 1836442 /lib/i386-linux-gnu/libresolv-2.23.so
perl 4134 root mem REG 253,1 22080 1836449 /lib/i386-linux-gnu/libnss_dns-2.23.so
perl 4134 root mem REG 253,1 42616 1835157 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Data/Dumper/Dumper.so
perl 4134 root mem REG 253,1 71332 2100201 /usr/lib/i386-linux-gnu/perl5/5.22/auto/JSON/XS/XS.so
perl 4134 root mem REG 253,1 2095620 1835011 /lib/i386-linux-gnu/libcrypto.so.1.0.0
perl 4134 root mem REG 253,1 428380 1835021 /lib/i386-linux-gnu/libssl.so.1.0.0
perl 4134 root mem REG 253,1 22012 1835288 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/arybase/arybase.so
perl 4134 root mem REG 253,1 609864 1966715 /usr/lib/i386-linux-gnu/perl5/5.22/auto/Net/SSLeay/SSLeay.so
perl 4134 root mem REG 253,1 13712 2100204 /usr/lib/i386-linux-gnu/perl5/5.22/auto/Device/SerialPort/SerialPort.so
perl 4134 root mem REG 253,1 17896 2228228 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Digest/MD5/MD5.so
perl 4134 root mem REG 253,1 13716 1839054 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/MIME/Base64/Base64.so
perl 4134 root mem REG 253,1 46712 1835628 /lib/i386-linux-gnu/libnss_files-2.23.so
perl 4134 root mem REG 253,1 46744 1835625 /lib/i386-linux-gnu/libnss_nis-2.23.so
perl 4134 root mem REG 253,1 96096 1835623 /lib/i386-linux-gnu/libnsl-2.23.so
perl 4134 root mem REG 253,1 34620 1835621 /lib/i386-linux-gnu/libnss_compat-2.23.so
perl 4134 root mem REG 253,1 9608 1311311 /usr/lib/i386-linux-gnu/libXau.so.6.0.0
perl 4134 root mem REG 253,1 13788 1835285 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Cwd/Cwd.so
perl 4134 root mem REG 253,1 96424 1835304 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/POSIX/POSIX.so
perl 4134 root mem REG 253,1 46716 2229765 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/List/Util/Util.so
perl 4134 root mem REG 253,1 30660 1836446 /lib/i386-linux-gnu/librt-2.23.so
perl 4134 root mem REG 253,1 9644 1835294 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/attributes/attributes.so
perl 4134 root mem REG 253,1 13796 1835281 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Fcntl/Fcntl.so
perl 4134 root mem REG 253,1 21988 1835311 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Time/HiRes/HiRes.so
perl 4134 root mem REG 253,1 38472 2099882 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/Socket/Socket.so
perl 4134 root mem REG 253,1 2981280 1311737 /usr/lib/locale/locale-archive
perl 4134 root mem REG 253,1 38428 1836444 /lib/i386-linux-gnu/libcrypt-2.23.so
perl 4134 root mem REG 253,1 1786484 1836451 /lib/i386-linux-gnu/libc-2.23.so
perl 4134 root mem REG 253,1 134904 1836450 /lib/i386-linux-gnu/libpthread-2.23.so
perl 4134 root mem REG 253,1 341948 1836443 /lib/i386-linux-gnu/libm-2.23.so
perl 4134 root mem REG 253,1 13828 1836452 /lib/i386-linux-gnu/libdl-2.23.so
perl 4134 root mem REG 253,1 17916 2099884 /usr/lib/i386-linux-gnu/perl/5.22.1/auto/IO/IO.so
perl 4134 root mem REG 253,1 147688 1836447 /lib/i386-linux-gnu/ld-2.23.so
perl 4134 root 0r CHR 1,3 0t0 6 /dev/null
perl 4134 root 1w REG 253,1 3316665 2622131 /var/log/fhem/fhem-2016-09.log
perl 4134 root 2w REG 253,1 3316665 2622131 /var/log/fhem/fhem-2016-09.log
perl 4134 root 3w REG 253,1 3316665 2622131 /var/log/fhem/fhem-2016-09.log
perl 4134 root 4u IPv4 4172253 0t0 TCP myhce01.<domain>:52314->nas01.<domain>:9090 (ESTABLISHED)
perl 4134 root 5w REG 253,1 3316665 2622131 /var/log/fhem/fhem-2016-09.log
perl 4134 root 6u IPv4 4172157 0t0 TCP *:7072 (LISTEN)
perl 4134 root 7u IPv4 4172203 0t0 UDP *:42114
perl 4134 root 8w REG 253,1 0 2622080 /var/log/fhem/myhce01-sysstat-2016-09.log
perl 4134 root 9u CHR 166,0 0t0 457 /dev/ttyACM0
perl 4134 root 10u sock 0,8 0t0 4172158 protocol: TCP
perl 4134 root 11u sock 0,8 0t0 4172159 protocol: TCP
perl 4134 root 12w REG 253,1 2622651 2621984 /var/log/fhem/hmlan-2016-09.log
perl 4134 root 13u IPv4 4172160 0t0 TCP myhce01.<domain>:37304->cuno01.<domain>:2323 (ESTABLISHED)
perl 4134 root 14w REG 253,1 42497854 2621771 /var/log/fhem/RSSI-2016-09.log
perl 4134 root 15u IPv4 4172161 0t0 TCP myhce01.<domain>:57038->cun01.<domain>:2323 (ESTABLISHED)
perl 4134 root 17u IPv4 4414173 0t0 TCP myhce01.<domain>:52758->nas02.<domain>:9900 (CLOSE_WAIT)
perl 4134 root 18u IPv4 4172179 0t0 TCP *:8085 (LISTEN)
perl 4134 root 19u IPv4 4172180 0t0 TCP *:8086 (LISTEN)
perl 4134 root 20u IPv4 4172181 0t0 TCP *:omniorb (LISTEN)
perl 4134 root 21u IPv4 4172182 0t0 TCP myhce01.<domain>:52564->myhce02.<domain>:7072 (ESTABLISHED)
perl 4134 root 22w REG 253,1 29884 2622157 /var/log/fhem/devices/user.<user01>-2016-09.log
perl 4134 root 23w REG 253,1 0 2622474 /var/log/fhem/devices/KG.fl.WDS.T.01-2016.log
perl 4134 root 24w REG 253,1 7654000 2621760 /var/log/fhem/devices/KG.fl.CON.C.01-2016-09.log
perl 4134 root 25w REG 253,1 2268174 2622085 /var/log/fhem/devices/KG.fl.CON.C.02-2016-09.log
perl 4134 root 26w REG 253,1 160926 2622096 /var/log/fhem/devices/KG.fl.CON.C.03-2016-09.log
perl 4134 root 27w REG 253,1 2121891 2622104 /var/log/fhem/devices/KG.fl.CON.C.04-2016-09.log
perl 4134 root 28w REG 253,1 5930567 2622106 /var/log/fhem/devices/KG.fl.CON.C.05-2016-09.log
perl 4134 root 29w REG 253,1 346991 2622483 /var/log/fhem/devices/KG.hz.SEC.GAS.01-2016.log
perl 4134 root 30w REG 253,1 0 2622487 /var/log/fhem/devices/KG.hz.WDS.T.01-2016.log
perl 4134 root 31w REG 253,1 0 2622507 /var/log/fhem/devices/KG.hz.WDS.T.02-2016.log
perl 4134 root 32w REG 253,1 0 2622558 /var/log/fhem/devices/KG.hz.WDS.T.03-2016.log
perl 4134 root 33w REG 253,1 0 2622560 /var/log/fhem/devices/KG.hz.WDS.T.04-2016.log
perl 4134 root 34w REG 253,1 0 2622564 /var/log/fhem/devices/KG.hz.WDS.T.05-2016.log
perl 4134 root 35w REG 253,1 0 2622565 /var/log/fhem/devices/KG.wk.SEC.WDS.01-2016.log
perl 4134 root 36w REG 253,1 0 2622568 /var/log/fhem/devices/KG.wk.WDS.T.01-2016.log
perl 4134 root 37w REG 253,1 5345785 2622251 /var/log/fhem/devices/EG.bz.WDS.TH.01-2016.log
perl 4134 root 38w REG 253,1 5362402 2622257 /var/log/fhem/devices/EG.kz.WDS.TH.01-2016.log
perl 4134 root 39w REG 253,1 5369559 2622310 /var/log/fhem/devices/EG.sz.WDS.TH.01-2016.log
perl 4134 root 40w REG 253,1 1814896 2622334 /var/log/fhem/devices/EG.wz.WDS.TH.01-2016.log
perl 4134 root 41w REG 253,1 12529137 2622449 /var/log/fhem/devices/GR.ga.SEC.MDIR.01-2016.log
perl 4134 root 42w REG 253,1 4317788 2622453 /var/log/fhem/devices/GR.ga.WDS.OC.01-2016.log
perl 4134 root 43w REG 253,1 0 2622383 /var/log/fhem/devices/EX.ga.WDS.NET.01-2016.log
perl 4134 root 44w REG 253,1 20310 2621472 /var/log/fhem/devices/user.<user02>-2016-09.log
perl 4134 root 45w REG 253,1 59265 2622136 /var/log/fhem/devices/geofancy-2016-09.log
perl 4134 root 46w REG 253,1 1227221 2622146 /var/log/fhem/devices/powerCheck.01.dum-2016-09.log
perl 4134 root 47w REG 253,1 1746784 2622153 /var/log/fhem/devices/powerCheck.02.dum-2016-09.log
perl 4134 root 48w REG 253,1 11218575 2621590 /var/log/fhem/myhce02-sysstat-2016-09.log
perl 4134 root 49u IPv4 4172206 0t0 TCP *:8090 (LISTEN)
perl 4134 root 50u IPv4 4172254 0t0 TCP localhost:42496->localhost:5223 (ESTABLISHED)
perl 4134 root 51u IPv4 4172255 0t0 TCP localhost:33276->localhost:xmpp-client (ESTABLISHED)
perl 4134 root 52u IPv4 4172258 0t0 TCP localhost:42500->localhost:5223 (ESTABLISHED)
perl 4134 root 53u IPv4 4172260 0t0 TCP localhost:33280->localhost:xmpp-client (ESTABLISHED)
perl 4134 root 54u IPv4 4172289 0t0 TCP myhce01.<domain>:41620->htpc01.<domain>:9090 (ESTABLISHED)
perl 4134 root 55u IPv4 4402571 0t0 TCP myhce01.<domain>:8085->matrix.<domain>:47948 (CLOSE_WAIT)
root@myhce01:~# ls -l /proc/4134/fd
total 0
lr-x------ 1 root root 64 Sep 18 19:07 0 -> /dev/null
l-wx------ 1 root root 64 Sep 18 19:07 1 -> /var/log/fhem/fhem-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 10 -> socket:[4172158]
lrwx------ 1 root root 64 Sep 18 19:07 11 -> socket:[4172159]
l-wx------ 1 root root 64 Sep 18 19:07 12 -> /var/log/fhem/hmlan-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 13 -> socket:[4172160]
l-wx------ 1 root root 64 Sep 18 19:07 14 -> /var/log/fhem/RSSI-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 15 -> socket:[4172161]
lrwx------ 1 root root 64 Sep 18 19:07 17 -> socket:[4414173]
lrwx------ 1 root root 64 Sep 18 19:07 18 -> socket:[4172179]
lrwx------ 1 root root 64 Sep 18 19:07 19 -> socket:[4172180]
l-wx------ 1 root root 64 Sep 18 19:07 2 -> /var/log/fhem/fhem-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 20 -> socket:[4172181]
lrwx------ 1 root root 64 Sep 18 19:07 21 -> socket:[4172182]
l-wx------ 1 root root 64 Sep 18 19:07 22 -> /var/log/fhem/devices/user.<user01>-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 23 -> /var/log/fhem/devices/KG.fl.WDS.T.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 24 -> /var/log/fhem/devices/KG.fl.CON.C.01-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 25 -> /var/log/fhem/devices/KG.fl.CON.C.02-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 26 -> /var/log/fhem/devices/KG.fl.CON.C.03-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 27 -> /var/log/fhem/devices/KG.fl.CON.C.04-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 28 -> /var/log/fhem/devices/KG.fl.CON.C.05-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 29 -> /var/log/fhem/devices/KG.hz.SEC.GAS.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 3 -> /var/log/fhem/fhem-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 30 -> /var/log/fhem/devices/KG.hz.WDS.T.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 31 -> /var/log/fhem/devices/KG.hz.WDS.T.02-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 32 -> /var/log/fhem/devices/KG.hz.WDS.T.03-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 33 -> /var/log/fhem/devices/KG.hz.WDS.T.04-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 34 -> /var/log/fhem/devices/KG.hz.WDS.T.05-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 35 -> /var/log/fhem/devices/KG.wk.SEC.WDS.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 36 -> /var/log/fhem/devices/KG.wk.WDS.T.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 37 -> /var/log/fhem/devices/EG.bz.WDS.TH.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 38 -> /var/log/fhem/devices/EG.kz.WDS.TH.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 39 -> /var/log/fhem/devices/EG.sz.WDS.TH.01-2016.log
lrwx------ 1 root root 64 Sep 18 19:07 4 -> socket:[4172253]
l-wx------ 1 root root 64 Sep 18 19:07 40 -> /var/log/fhem/devices/EG.wz.WDS.TH.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 41 -> /var/log/fhem/devices/GR.ga.SEC.MDIR.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 42 -> /var/log/fhem/devices/GR.ga.WDS.OC.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 43 -> /var/log/fhem/devices/EX.ga.WDS.NET.01-2016.log
l-wx------ 1 root root 64 Sep 18 19:07 44 -> /var/log/fhem/devices/user.<user02>-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 45 -> /var/log/fhem/devices/geofancy-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 46 -> /var/log/fhem/devices/powerCheck.01.dum-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 47 -> /var/log/fhem/devices/powerCheck.02.dum-2016-09.log
l-wx------ 1 root root 64 Sep 18 19:07 48 -> /var/log/fhem/myhce02-sysstat-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 49 -> socket:[4172206]
l-wx------ 1 root root 64 Sep 18 19:07 5 -> /var/log/fhem/fhem-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 50 -> socket:[4172254]
lrwx------ 1 root root 64 Sep 18 19:07 51 -> socket:[4172255]
lrwx------ 1 root root 64 Sep 18 19:07 52 -> socket:[4172258]
lrwx------ 1 root root 64 Sep 18 19:07 53 -> socket:[4172260]
lrwx------ 1 root root 64 Sep 18 19:07 54 -> socket:[4172289]
lrwx------ 1 root root 64 Sep 18 19:07 55 -> socket:[4402571]
lrwx------ 1 root root 64 Sep 18 19:07 6 -> socket:[4172157]
lrwx------ 1 root root 64 Sep 18 19:07 7 -> socket:[4172203]
l-wx------ 1 root root 64 Sep 18 19:07 8 -> /var/log/fhem/myhce01-sysstat-2016-09.log
lrwx------ 1 root root 64 Sep 18 19:07 9 -> /dev/ttyACM0
Ich glaube nicht an einem FHEM-Problem, sondern tippe auf irgendetwas mit dem OS.
Begruendung:
Ein FHEM-Fehler wuerde vorliegen, falls FHEM sich nicht mehr per select um die Eingaben kuemmert,
sondern in einem blockierenden Systemcall steckt. Das wuerde z.Bsp. in strace so ausschauen:
root@myhce01:~# timeout 10 strace -p XXX
Process XXX attached
read(YYY,
Process XXX detached
Es koennte noch sein, dass FHEM eine Endlosschleife ohne systemcall durchfuehrt, halte das aber fuer
unwahrscheinlich. Sowas koennte man an der CPU Auslastung feststellen.
nas02 und matrix sind in CLOSE_WAIT: meiner Ansicht nach deutet das auf einem Netzwerkproblem, oder
einfach abgeschaltete Rechner, sollte FHEM aber auch nicht blockieren.
Was ich gelernt habe: strace+lsof reicht, "ls /proc/<pid>/fd" ist ueberfluessig.