Cannot fork: Cannot allocate memory | BlockingInformParent

Begonnen von Burny4600, 14 Februar 2018, 10:33:06

Vorheriges Thema - Nächstes Thema

Nighthawk

Hallo Zusammen,

ich für meinen Teil bin aus Zeitnot zurück auf Jessie gewechselt.
Mein Produktiv-FHEM kann/will ich nicht runterspecken, für eine Testinstallation habe ich momentan einfach keine Zeit.


Gruß
Alex

Rewe2000

Hallo,

auch ich habe unter Stretch Lite seit 2 Tagen folgende Fehlermeldungen im Log und meine SQL Datenbank wird nicht mehr geschrieben. Ich hänge mich mit meinem Problem mal an den neuesten Beitrag an.

2018.03.10 18:17:32 1: Cannot fork: Cannot allocate memory
2018.03.10 18:29:59 2: [Freezemon] freezemon: possible freeze starting at 18:29:58, delay is 1.425 possibly caused by ModbusTCPServer_Poll(N/A)
2018.03.10 18:47:32 1: PROPLANTA proplanta: Start.608 Could not start forked process, old process still running


Der Proplanta Fehler, denke ich hängt mit dem zu geringen Speicher zusammen.

Folgende Situation/Beobachtungen:

- Fhem und Stretch Lite auf Raspi3 ist aktuell (10.03.2018
- HM und HmIP Geräte alle über CCU2 an Fhem angebunden, nicht über COC (
- Fehler das erste Mal am 10.03.2018 aufgetaucht
- Mit auftreten der erstem Meldung von "Cannot fork: Cannot allocate memory" wird die Mariadb SQL Datenbank nicht mehr geschrieben
- Nach Neustart Fhem läuft es wieder ca. 10-20 Stunden
- Änderungen in Fhem Programmierung oder installation neuer Module in den letzten Tagen keine (bewusst)
- Einige entscheidende Module: SIP, ModbusTCPServer, ModbusRegister, ModbusCoil, DbLog, DbRep, HMCCU, HMCCUDEV, HMCCURPCPROC, doif, Proplanta, HTTPMOD, Abfall, Calendar

Hatte die Module apptime und Freezemon in Verdacht, nach Deinstallation und disable kommt aber der Fehler nach wie vor.
So wie ich die Beiträge lese, gibt es (derzeit) nur wenige User mit dem gleichen Fehler. Auch gibt es bei den Betroffenen (bisher) keine eindeutige Ursache.

Speicherauslastung im Fehlerfall:
pi@raspberrypi:~ $ free -m -t
              total        used        free      shared  buff/cache   available
Mem:            927         809          50           2          66          66
Swap:            99          99           0
Total:         1027         909          51


Speicherauslastung nach Reset:
pi@raspberrypi:~ $ free -m -t
              total        used        free      shared  buff/cache   available
Mem:            927         317         405           1         204         556
Swap:            99          44          55
Total:         1027         361         461


Belegung 16GB Speicherkarte am RASPI3:
pi@raspberrypi:~ $ df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root        14G    3,0G   11G   23% /
devtmpfs        460M       0  460M    0% /dev
tmpfs           464M       0  464M    0% /dev/shm
tmpfs           464M     18M  446M    4% /run
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           464M       0  464M    0% /sys/fs/cgroup
/dev/mmcblk0p1   42M     21M   21M   51% /boot
tmpfs            93M       0   93M    0% /run/user/1000


Speicherauslastung ca. 8 Stunden nach Neustart - ps aux --sort -rss:
pi@raspberrypi:~ $ ps aux --sort -rss
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
fhem      8476  5.5 24.3 240184 231036 ?       S    13:26  27:49 /usr/bin/perl f
mysql      770  0.3 19.0 650424 181040 ?       Ssl  Mär10   5:18 /usr/sbin/mysq
fhem      8484  0.1  9.7 107136 92692 ?        S    13:26   0:57 /usr/bin/perl f
fhem      8486  0.0  9.7 107064 92624 ?        S    13:26   0:18 /usr/bin/perl f
fhem      8483  0.0  9.7 106680 92212 ?        S    13:26   0:26 /usr/bin/perl f
root     11681  0.0  0.5  11520  5676 ?        Ss   21:44   0:00 sshd: pi [priv]
pi       11687  0.0  0.5   9660  4948 ?        Ss   21:44   0:00 /lib/systemd/sy
root         1  0.0  0.4   9600  4288 ?        Ss   Mär10   0:03 /sbin/init
root       627  0.0  0.4   7724  4184 ?        Ss   Mär10   0:04 /usr/sbin/apac
pi       11700  0.0  0.4   5920  3824 pts/0    Ss   21:44   0:00 -bash
pi       11697  0.0  0.3  11520  3768 ?        S    21:44   0:00 sshd: pi@pts/0
root       356  0.0  0.3   7376  3720 ?        Ss   Mär10   0:00 /lib/systemd/s
www-data  5440  0.0  0.3 230164  3544 ?        Sl   06:25   0:12 /usr/sbin/apach
root       126  0.0  0.3  26920  3172 ?        Ss   Mär10   0:01 /lib/systemd/s
pi       11759  0.0  0.3   7884  3000 pts/0    R+   21:50   0:00 ps aux --sort -
www-data  5412  0.0  0.3 230148  2984 ?        Sl   06:25   0:12 /usr/sbin/apach
message+   357  0.0  0.2   6492  2204 ?        Ss   Mär10   0:00 /usr/bin/dbus-
avahi      397  0.0  0.2   6400  2144 ?        Ss   Mär10   0:00 avahi-daemon:
root       347  0.0  0.2  23748  1996 ?        Ssl  Mär10   0:00 /usr/sbin/rsys
systemd+   303  0.0  0.1  17280  1840 ?        Ssl  Mär10   0:00 /lib/systemd/s
root       609  0.0  0.1  10200  1636 ?        Ss   Mär10   0:00 /usr/sbin/sshd
root       348  0.0  0.1   5292  1428 ?        Ss   Mär10   0:00 /usr/sbin/cron
root       572  0.0  0.1   2948  1392 ?        Ss   Mär10   0:01 /sbin/dhcpcd -
root       144  0.0  0.1  14292  1356 ?        Ss   Mär10   0:00 /lib/systemd/s
nobody     345  0.0  0.1   5292  1156 ?        Ss   Mär10   0:00 /usr/sbin/thd
root       622  0.0  0.1   4196  1016 tty1     Ss+  Mär10   0:00 /sbin/agetty -
pi       11690  0.0  0.1  11264  1008 ?        S    21:44   0:00 (sd-pam)
root       430  0.0  0.0  10128   908 ?        Ss   Mär10   0:01 wpa_supplicant
avahi      400  0.0  0.0   6400     8 ?        S    Mär10   0:00 avahi-daemon:
root         2  0.0  0.0      0     0 ?        S    Mär10   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Mär10   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    Mär10   0:02 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    Mär10   0:00 [rcu_bh]
root         9  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/0]
root        10  0.0  0.0      0     0 ?        S<   Mär10   0:00 [lru-add-drain
root        11  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/0]
root        12  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/1]
root        13  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/1]
root        14  0.0  0.0      0     0 ?        S    Mär10   0:00 [ksoftirqd/1]
root        16  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/1:0H]
root        17  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/2]
root        18  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/2]
root        19  0.0  0.0      0     0 ?        S    Mär10   0:02 [ksoftirqd/2]
root        21  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/2:0H]
root        22  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/3]
root        23  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/3]
root        24  0.0  0.0      0     0 ?        S    Mär10   0:00 [ksoftirqd/3]
root        26  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/3:0H]
root        27  0.0  0.0      0     0 ?        S    Mär10   0:00 [kdevtmpfs]
root        28  0.0  0.0      0     0 ?        S<   Mär10   0:00 [netns]
root        29  0.0  0.0      0     0 ?        S    Mär10   0:00 [khungtaskd]
root        30  0.0  0.0      0     0 ?        S    Mär10   0:00 [oom_reaper]
root        31  0.0  0.0      0     0 ?        S<   Mär10   0:00 [writeback]
root        32  0.0  0.0      0     0 ?        S    Mär10   0:00 [kcompactd0]
root        33  0.0  0.0      0     0 ?        S<   Mär10   0:00 [crypto]
root        34  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        35  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kblockd]
root        36  0.0  0.0      0     0 ?        S<   Mär10   0:00 [watchdogd]
root        38  0.0  0.0      0     0 ?        S<   Mär10   0:00 [rpciod]
root        39  0.0  0.0      0     0 ?        S<   Mär10   0:00 [xprtiod]
root        40  0.0  0.0      0     0 ?        S    Mär10   0:03 [kswapd0]
root        41  0.0  0.0      0     0 ?        S<   Mär10   0:00 [vmstat]
root        42  0.0  0.0      0     0 ?        S<   Mär10   0:00 [nfsiod]
root        52  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kthrotld]
root        53  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        54  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        55  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        56  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        57  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        58  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        59  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        60  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        61  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        62  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        63  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        64  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        65  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        66  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        67  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        68  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        69  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        70  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        71  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        72  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        73  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        74  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        75  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        76  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        77  0.0  0.0      0     0 ?        S<   Mär10   0:00 [iscsi_eh]
root        78  0.0  0.0      0     0 ?        S<   Mär10   0:00 [dwc_otg]
root        80  0.0  0.0      0     0 ?        S<   Mär10   0:00 [DWC Notificat
root        81  0.0  0.0      0     0 ?        S<   Mär10   0:00 [VCHIQ-0]
root        82  0.0  0.0      0     0 ?        S<   Mär10   0:00 [VCHIQr-0]
root        83  0.0  0.0      0     0 ?        S<   Mär10   0:00 [VCHIQs-0]
root        84  0.0  0.0      0     0 ?        S    Mär10   0:00 [VCHIQka-0]
root        85  0.0  0.0      0     0 ?        S<   Mär10   0:00 [SMIO]
root        88  0.0  0.0      0     0 ?        S    Mär10   0:00 [irq/92-mmc1]
root        90  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        91  0.0  0.0      0     0 ?        S    Mär10   0:11 [mmcqd/0]
root        93  0.0  0.0      0     0 ?        S    Mär10   0:02 [jbd2/mmcblk0p
root        94  0.0  0.0      0     0 ?        S<   Mär10   0:00 [ext4-rsv-conv
root        96  0.0  0.0      0     0 ?        S<   Mär10   0:00 [ipv6_addrconf
root       109  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/1:1H]
root       250  0.0  0.0      0     0 ?        S<   Mär10   0:00 [cfg80211]
root       257  0.0  0.0      0     0 ?        S<   Mär10   0:00 [brcmf_wq/mmc1
root       258  0.0  0.0      0     0 ?        S    Mär10   0:00 [brcmf_wdog/mm
root       467  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/3:1H]
root       468  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/0:1H]
root       514  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/2:1H]
root      4027  0.0  0.0      0     0 ?        S    03:15   0:00 [kworker/u8:2]
root      4660  0.0  0.0      0     0 ?        S    04:46   0:01 [kworker/u8:0]
root      6748  0.0  0.0      0     0 ?        S    08:50   0:03 [kworker/3:2]
root     10952  0.0  0.0      0     0 ?        S    20:02   0:00 [kworker/3:0]
root     11092  0.0  0.0      0     0 ?        S    20:20   0:00 [kworker/0:2]
root     11540  0.0  0.0      0     0 ?        S    21:22   0:00 [kworker/1:2]
root     11638  0.0  0.0      0     0 ?        S    21:39   0:00 [kworker/2:0]
root     11673  0.0  0.0      0     0 ?        S    21:40   0:00 [kworker/0:0]
root     11676  0.0  0.0      0     0 ?        S    21:42   0:00 [kworker/1:0]
root     11683  0.0  0.0      0     0 ?        S    21:44   0:00 [kworker/2:1]
root     11758  0.0  0.0      0     0 ?        S    21:49   0:00 [kworker/1:1]

Mir fallen hier 4 Fhem Prozesse auf, aber als Linux Neuling kann ich mit diesen Angaben nicht wirklich viel anfangen.

{ join(",", grep { !$defs{$_} } sort keys %attr) } bringt bei mir immer einen Eintrag (egal ob Fehler ansteht oder nicht):
secDBLogging

Ich brauche noch einige Tipps von euch in welche Richtung ihr hier mit der Fehlersuche beginnen würdet. Aber ich denke es wird mir nichts anderes übrigbleiben als Module zu disablen oder auf eine alte Version zurückzugehen.

Ich hoffe ihr habt noch einige Tipps für mich. Schön langsam fange ich zu transpirieren an, da ich echt keine Ahnung habe, an was es liegen könnte und es sich um mein Live System handelt.

Gruß Reinhard
Fhem 6.3 auf Raspberry Pi4 SSD mit Raspbian Bookworm, Homematic, Homematic IP, CCU3 mit RapberryMatic, WAGO 750-880, E3DC S10E Hauskraftwerk, E3DC Wallbox, my-PV AC ELWA-E Heizstab, Fritz!Box 7590, KIA Bluelinky

Wernieman

Die 4 perl-Prozesse dürften FHEM + 3 "non-Blocking-FHEM-Module" sein.
(Alles bitte mal als root oder mit sudo)

Mach doch eifnach mal ein:
pstree -a | grep [f]hem
Falls er pstree nicht kennt, instalieren mit:
apt-get install psmisc

Wenn ich Deine Ausgabe so lese, sehe ich ~550MByte für FHEM und ~190MByte für mysql, also nur diese beiden produkte zusammen c.a. 780MByte. Da bleibt mit ~220MByte nicht viel Platz fürs Restsystem.
(Alle Angaben auf 1GByte System bezogen, er sagt bei Dir aber 927MByte)

Kannst Du die 3 "non-Blocking-Module" identifizieren?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Burny4600

#33
Auf meinen Systemen ist auch nicht mehr Speicher vorhanden, egal ob mit Strech oder ohne.

pi@ccs-ht-rasp01:~ $ free -m -t
             total        used        free      shared  buff/cache   available
Mem:            927         129         335           0         462         746
Swap:             0           0           0
Total:          927         129         335

Ich denke das der reszliche Speicher die GPU beansprucht.

Was mir beim SYSMON auffält ist das auch die CPU nicht richtige erkannt wird.
CPU model name:    ARMv7 Processor rev 4 (v7l)
Die sollte laut Wiki für aktuelle Pi 2 un dPi 3 dieses CPU beinhalten ARM Cortex-A53.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

Rewe2000

#34
Hallo,

ich versuche mal die benötigten Daten zu liefern, in der Hoffnung ihr könnt da was erkennen.
Einige Fragen bleiben aber meinerseits noch offen:
1. Reicht es aus die Module zur Fehlersuche mit disabled zu deaktivieren oder sollten diese aus Fhem entfernt werden (shutdown restart ist obligatorisch natürlich in beiden Fällen).
2. Gibt es eine Möglichkeit (für mich als Laien), nonblocking- Module im Code (z.B. an einer Codezeile) zu erkennen?
3. Die nonblocking- Module bei mir, dürften unter DbLog, DbRep, HMCCU, HMCCUDEV, HMCCURPCPROC zu suchen sein.
4. Kann dieser Fehler auch von der Speicherkarte kommen, diese ist ca. 16 Monate alt?

pstree -a | grep [f]hem:
root@raspberrypi:/home/pi# pstree -a | grep [f]hem
  |-perl fhem.pl fhem.cfg
  |   |-perl fhem.pl fhem.cfg
  |   |-perl fhem.pl fhem.cfg
  |   `-perl fhem.pl fhem.cfg


free -m -t wieder nach 8 Stunden Laufzeit (Raspi läuft noch ohne erkennbaren Fehler):
root@raspberrypi:/home/pi# free -m -t
              total        used        free      shared  buff/cache   available
Mem:            927         583          39           1         304         291
Swap:            99          44          55
Total:         1027         628          94


Speicherkartennutzung:
root@raspberrypi:/home/pi# df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/root        14G    3,0G   11G   23% /
devtmpfs        460M       0  460M    0% /dev
tmpfs           464M       0  464M    0% /dev/shm
tmpfs           464M     12M  452M    3% /run
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           464M       0  464M    0% /sys/fs/cgroup
/dev/mmcblk0p1   42M     21M   21M   51% /boot
tmpfs            93M       0   93M    0% /run/user/1000


Speicherauslastung, wieder ca. 8 Stunden nach Neustart - ps aux --sort -rss:
root@raspberrypi:/home/pi# ps aux --sort -rss
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
fhem     16855  5.5 32.3 316040 306960 ?       S    08:08  43:08 /usr/bin/perl f
mysql      770  0.3 18.8 654520 179228 ?       Ssl  Mär10  10:28 /usr/sbin/mysq
fhem     16863  0.1 10.4 113836 99272 ?        S    08:08   1:27 /usr/bin/perl f
fhem     16864  0.0 10.4 113796 99152 ?        S    08:08   0:28 /usr/bin/perl f
fhem     16862  0.0 10.3 113092 98736 ?        S    08:08   0:40 /usr/bin/perl f
root     21725  0.0  0.6  11520  5712 ?        Ss   20:55   0:00 sshd: pi [priv]
pi       21731  0.0  0.5   9660  5056 ?        Ss   20:55   0:00 /lib/systemd/sy
root         1  0.0  0.4   9600  4228 ?        Ss   Mär10   0:04 /sbin/init
root       627  0.0  0.4   7724  4192 ?        Ss   Mär10   0:08 /usr/sbin/apac
pi       21744  0.0  0.4   5976  3876 pts/0    Ss   20:55   0:00 -bash
pi       21741  0.0  0.3  11520  3688 ?        S    20:55   0:00 sshd: pi@pts/0
www-data 15871  0.0  0.3 230164  3384 ?        Sl   06:25   0:12 /usr/sbin/apach
www-data 15872  0.0  0.3 230164  3384 ?        Sl   06:25   0:11 /usr/sbin/apach
root       126  0.0  0.3  26920  3352 ?        Ss   Mär10   0:01 /lib/systemd/s
root     21787  0.0  0.3   5320  3232 pts/0    S    21:00   0:00 bash
root     21782  0.0  0.3   6880  3184 pts/0    S    21:00   0:00 su
root     21883  0.0  0.3   7884  2972 pts/0    R+   21:10   0:00 ps aux --sort -
root       356  0.0  0.3   7408  2872 ?        Ss   Mär10   0:00 /lib/systemd/s
root       347  0.0  0.2  23748  2024 ?        Ssl  Mär10   0:00 /usr/sbin/rsys
message+   357  0.0  0.2   6492  1988 ?        Ss   Mär10   0:00 /usr/bin/dbus-
avahi      397  0.0  0.1   6400  1860 ?        Ss   Mär10   0:00 avahi-daemon:
systemd+   303  0.0  0.1  17280  1784 ?        Ssl  Mär10   0:00 /lib/systemd/s
root       609  0.0  0.1  10200  1608 ?        Ss   Mär10   0:00 /usr/sbin/sshd
root       572  0.0  0.1   2948  1384 ?        Ss   Mär10   0:02 /sbin/dhcpcd -
root       348  0.0  0.1   5292  1368 ?        Ss   Mär10   0:00 /usr/sbin/cron
root       144  0.0  0.1  14292  1352 ?        Ss   Mär10   0:00 /lib/systemd/s
nobody     345  0.0  0.1   5292  1216 ?        Ss   Mär10   0:01 /usr/sbin/thd
pi       21734  0.0  0.1  11264  1024 ?        S    20:55   0:00 (sd-pam)
root       430  0.0  0.0  10128   904 ?        Ss   Mär10   0:02 wpa_supplicant
root       622  0.0  0.0   4196   888 tty1     Ss+  Mär10   0:00 /sbin/agetty -
avahi      400  0.0  0.0   6400    12 ?        S    Mär10   0:00 avahi-daemon:
root         2  0.0  0.0      0     0 ?        S    Mär10   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Mär10   0:01 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    Mär10   0:04 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    Mär10   0:00 [rcu_bh]
root         9  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/0]
root        10  0.0  0.0      0     0 ?        S<   Mär10   0:00 [lru-add-drain
root        11  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/0]
root        12  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/1]
root        13  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/1]
root        14  0.0  0.0      0     0 ?        S    Mär10   0:00 [ksoftirqd/1]
root        16  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/1:0H]
root        17  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/2]
root        18  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/2]
root        19  0.0  0.0      0     0 ?        S    Mär10   0:04 [ksoftirqd/2]
root        21  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/2:0H]
root        22  0.0  0.0      0     0 ?        S    Mär10   0:00 [cpuhp/3]
root        23  0.0  0.0      0     0 ?        S    Mär10   0:00 [migration/3]
root        24  0.0  0.0      0     0 ?        S    Mär10   0:00 [ksoftirqd/3]
root        26  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/3:0H]
root        27  0.0  0.0      0     0 ?        S    Mär10   0:00 [kdevtmpfs]
root        28  0.0  0.0      0     0 ?        S<   Mär10   0:00 [netns]
root        29  0.0  0.0      0     0 ?        S    Mär10   0:00 [khungtaskd]
root        30  0.0  0.0      0     0 ?        S    Mär10   0:00 [oom_reaper]
root        31  0.0  0.0      0     0 ?        S<   Mär10   0:00 [writeback]
root        32  0.0  0.0      0     0 ?        S    Mär10   0:00 [kcompactd0]
root        33  0.0  0.0      0     0 ?        S<   Mär10   0:00 [crypto]
root        34  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        35  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kblockd]
root        36  0.0  0.0      0     0 ?        S<   Mär10   0:00 [watchdogd]
root        38  0.0  0.0      0     0 ?        S<   Mär10   0:00 [rpciod]
root        39  0.0  0.0      0     0 ?        S<   Mär10   0:00 [xprtiod]
root        40  0.0  0.0      0     0 ?        S    Mär10   0:06 [kswapd0]
root        41  0.0  0.0      0     0 ?        S<   Mär10   0:00 [vmstat]
root        42  0.0  0.0      0     0 ?        S<   Mär10   0:00 [nfsiod]
root        52  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kthrotld]
root        53  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        54  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        55  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        56  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        57  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        58  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        59  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        60  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        61  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        62  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        63  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        64  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        65  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        66  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        67  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        68  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        69  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        70  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        71  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        72  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        73  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        74  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        75  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        76  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        77  0.0  0.0      0     0 ?        S<   Mär10   0:00 [iscsi_eh]
root        78  0.0  0.0      0     0 ?        S<   Mär10   0:00 [dwc_otg]
root        80  0.0  0.0      0     0 ?        S<   Mär10   0:00 [DWC Notificat
root        81  0.0  0.0      0     0 ?        S<   Mär10   0:00 [VCHIQ-0]
root        82  0.0  0.0      0     0 ?        S<   Mär10   0:00 [VCHIQr-0]
root        83  0.0  0.0      0     0 ?        S<   Mär10   0:00 [VCHIQs-0]
root        84  0.0  0.0      0     0 ?        S    Mär10   0:00 [VCHIQka-0]
root        85  0.0  0.0      0     0 ?        S<   Mär10   0:00 [SMIO]
root        88  0.0  0.0      0     0 ?        S    Mär10   0:00 [irq/92-mmc1]
root        90  0.0  0.0      0     0 ?        S<   Mär10   0:00 [bioset]
root        91  0.0  0.0      0     0 ?        S    Mär10   0:22 [mmcqd/0]
root        93  0.0  0.0      0     0 ?        S    Mär10   0:04 [jbd2/mmcblk0p
root        94  0.0  0.0      0     0 ?        S<   Mär10   0:00 [ext4-rsv-conv
root        96  0.0  0.0      0     0 ?        S<   Mär10   0:00 [ipv6_addrconf
root       109  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/1:1H]
root       250  0.0  0.0      0     0 ?        S<   Mär10   0:00 [cfg80211]
root       257  0.0  0.0      0     0 ?        S<   Mär10   0:00 [brcmf_wq/mmc1
root       258  0.0  0.0      0     0 ?        S    Mär10   0:00 [brcmf_wdog/mm
root       467  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/3:1H]
root       468  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/0:1H]
root       514  0.0  0.0      0     0 ?        S<   Mär10   0:00 [kworker/2:1H]
root     12173  0.0  0.0      0     0 ?        S    Mär11   0:05 [kworker/3:1]
root     14308  0.0  0.0      0     0 ?        S    03:16   0:00 [kworker/u8:1]
root     19588  0.0  0.0      0     0 ?        S    15:32   0:00 [kworker/3:2]
root     20905  0.0  0.0      0     0 ?        S    19:02   0:00 [kworker/u8:2]
root     21290  0.0  0.0      0     0 ?        S    20:08   0:00 [kworker/0:2]
root     21601  0.0  0.0      0     0 ?        S    20:44   0:00 [kworker/1:0]
root     21724  0.0  0.0      0     0 ?        S    20:55   0:00 [kworker/0:1]
root     21779  0.0  0.0      0     0 ?        S    20:59   0:00 [kworker/2:1]
root     21792  0.0  0.0      0     0 ?        S    21:01   0:00 [kworker/1:2]
root     21795  0.0  0.0      0     0 ?        S    21:02   0:00 [kworker/2:3]
root     21839  0.0  0.0      0     0 ?        S    21:07   0:00 [kworker/2:0]
root     21845  0.0  0.0      0     0 ?        S    21:08   0:00 [kworker/1:1]


Mich wundert nur, dass der Fehler bei mir aufgetreten ist, ohne dass ich wissentlich etwas an der Programmierung verändert habe. Irgendwie schon mysteriös, wenn es von einem Modul kommen würde, wäre im Forum sicherlich mehr zu lesen.
Ich weiß mir derzeit leider nicht anders zu helfen, als mit einem notify auf den Logeintrag "Cannot fork: Cannot allocate memory" zu triggern und dann Fhem gnadenlos durchzustarten. Sicher nicht die eleganteste Art, aber (derzeit) die einzig hilfreiche.

Nachtrag:
Ich kann richtig mitverfolgen wie der genutzte MEM-Speicher bei mir größer wird, alleine in der Zeit wie ich diesen Beitrag geschrieben habe, ist der freie Speicher von 592 auf 609 gestiegen.

Gruß Reinhard
Fhem 6.3 auf Raspberry Pi4 SSD mit Raspbian Bookworm, Homematic, Homematic IP, CCU3 mit RapberryMatic, WAGO 750-880, E3DC S10E Hauskraftwerk, E3DC Wallbox, my-PV AC ELWA-E Heizstab, Fritz!Box 7590, KIA Bluelinky

Wernieman

Du solltest mit dem "lleren Speicher Verbrauch" vorsichtig sein. Unix verwendet den leeren speicher um z.B: Daten zu cachen. Der wird hier hier als "buff/cache" angezeigt und auch beim "freien Speicher" abgezogen. Deshalb ist "freier Speicher" nicht  mit "freiem Speicher" bei Windows zu vergleichen.

Interessant ist eher das "available" .. was bei Dir Deutlich runtergeht.

Trickern würde ich eher, wenn "available" sehr klein wird (Größe müsstest Du empirisch ermitteln). "Cannot fork: Cannot allocate memory" ist eigentlich schon zu spät.

Hintergrund zum Speicherverbrauch:
In der Historie schreibt Unix immer schon in den Speicher und von dort aufs Speichermedium. Anders als Windows, was früher direkt aufs Speichermedium schrieb und das Caching später kam.
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

rudolfkoenig

ZitatReicht es aus die Module zur Fehlersuche mit disabled zu deaktivieren oder sollten diese aus Fhem entfernt werden (shutdown restart ist obligatorisch natürlich in beiden Fällen).
Haengt vom Modul ab. Da hier keiner so recht die Ursache kennt, und viel Verwirrung herrscht, wuerde ich die Suche vereinfachen, und die Module auskommentieren, also nicht nur disable flag setzen, sondern aus der fhem.cfg temporaer entfernen. Ich wuerde vorher ein komplettbackup machen.
Mein Stand ist, dass debian stretch die "Ursache" ist, habe aber in diese Richtung nichts sinnvolles im Netzt gefunden.

Zitat
2. Gibt es eine Möglichkeit (für mich als Laien), nonblocking- Module im Code (z.B. an einer Codezeile) zu erkennen?
Ich gehe davon aus, dass du "BlockingCall" meinst, d.h. die Moeglichkeit per fork das Blocken zu vermeiden.
Dafuer reicht es im Modulcode nach "use Blocking" zu suchen.

Zitat
4. Kann dieser Fehler auch von der Speicherkarte kommen, diese ist ca. 16 Monate alt?
Ich behaupte nein, wenn doch, dann waere ich sehr ueberrascht, und wuerde was Neues lernen.

jailbreaker07

Hallo,
mein fhem hat sich heute auch aufgehängt mit einen  haufen Meldungen von "Cannot allocate memory" im logfile habe leider zu schnell FHEM neu gestartet.... ich hätte vorher mal den Speicher untersuchen sollen..... Ich werde berichten fals es nochmal auftaucht....
Leider bekommt man es ja nicht sofort mit, ein benachrichten per push wird  warscheinlich auch nicht mehr funktionieren....

Gruß Thorsten

Rewe2000

Hallo,

@Rudi
Danke für die Aufklärung.
Du ermunterst mich (als Laie) nicht besonders, mit der Fehlersuche in Fhem zu beginnen.
ZitatMein Stand ist, dass debian stretch die "Ursache" ist, habe aber in diese Richtung nichts sinnvolles im Netzt gefunden.

Irgendwie kann ich den Fehler logisch nicht eingrenzen, da ich absolut keine Abhängigkeiten oder Gemeinsamkeiten erkennen kann.
Am Sonntag und Montag musste ich Fhem ca. alle 12 Stunden neu starten. Am Montag konnte ich über SSH zusehen, wie der freie Speicher von Stunde zu Stunde immer weniger wurde.
Heute dagegen ohne irgend welche Updates oder große Programmänderungen läuft alles wieder (bisher) bestens, zumindest noch nach 10 Stunden.

pi@raspberrypi:~ $ sudo free -m -t
              total        used        free      shared  buff/cache   available
Mem:            927         221         468          12         237         644
Swap:            99           0          99
Total:         1027         221         568


Irgendwie höchst seltsam.
Ich will das Ganze noch ein wenig beobachten, bevor ich Updates mache.  Nach einigen Tagen will ich dann sysmon installieren und den Speicherverbrauch mitloggen. Eventuell bringt das ja neue Erkenntnisse.

Gruß Reinhard
Fhem 6.3 auf Raspberry Pi4 SSD mit Raspbian Bookworm, Homematic, Homematic IP, CCU3 mit RapberryMatic, WAGO 750-880, E3DC S10E Hauskraftwerk, E3DC Wallbox, my-PV AC ELWA-E Heizstab, Fritz!Box 7590, KIA Bluelinky

Burny4600

Das ganze ist sehr Eigenartig.

Auf der Konsole ist noch genügend Speicher vorhanden.
pi@ccs-ht-rasp01:~ $ free
              total        used        free      shared  buff/cache   available
Mem:         949576      517380      266696         972      165500      377924
Swap:             0           0           0


Unter FHEM ist bei der Aufzeichung der Speicher ersichtlich das das System immer mehr zu stottern beginnt bis dann plötzlich kein Speicher laut Sysmon vorhanden ist, was aber nicht stimmt laut Konsole.
list Sysmon
Internals:
   CFGFN      /media/hdd/fhem/mycfg/schnittstellen_rasp01.cfg
   CHANGED   
   DEF        1 1 1 10
   INTERVAL_BASE 60
   INTERVAL_MULTIPLIERS 1 1 1 10
   MODE       local
   NAME       sysmon
   NR         214
   STATE      it_nas@0CFB0C
   TYPE       SYSMON
   READINGS:
     2018-03-14 20:45:12   cpu0_freq       1200
     2018-03-14 20:45:12   cpu0_freq_stat  600.00 1200.00 1190.18
     2018-03-14 12:56:11   cpu0_idle_stat  0.00 99.79 70.09
     2018-03-14 20:45:12   cpu1_freq       1200
     2018-03-14 20:45:12   cpu1_freq_stat  600.00 1200.00 1190.18
     2018-03-14 12:56:11   cpu1_idle_stat  3.51 107.34 98.96
     2018-03-14 20:45:12   cpu2_freq       1200
     2018-03-14 20:45:12   cpu2_freq_stat  600.00 1200.00 1190.18
     2018-03-14 12:56:11   cpu2_idle_stat  0.62 100.00 99.45
     2018-03-14 20:45:12   cpu3_freq       1200
     2018-03-14 20:45:12   cpu3_freq_stat  600.00 1200.00 1190.18
     2018-03-14 12:56:11   cpu3_idle_stat  2.47 100.00 99.07
     2018-03-12 17:45:15   cpu_bogomips    76.80
     2018-03-14 16:16:17   cpu_core_count  4
     2018-03-14 20:45:12   cpu_freq        1200
     2018-03-14 20:45:12   cpu_freq_stat   600.00 1200.00 1190.18
     2018-03-14 12:56:11   cpu_idle_stat   30.90 99.11 92.12
     2018-03-12 17:45:15   cpu_model_name  ARMv7 Processor rev 4 (v7l)
     2018-03-14 16:16:17   cpu_temp        0.00
     2018-03-14 16:16:17   cpu_temp_avg    0.2
     2018-03-14 16:16:17   cpu_temp_stat   0.00 78.44 0.01
     2018-03-14 16:16:17   ethernet        not available
     2018-03-14 16:16:17   ethernet_diff   not available
     2018-03-14 13:57:21   ethernet_ip     192.168.17.181
     2018-03-14 13:57:21   ethernet_rx     1126266792
     2018-03-14 13:57:21   ethernet_speed  not available
     2018-03-14 13:57:21   ethernet_tx     881144010
     2018-03-14 16:16:17   fhemstarttime   1520873095
     2018-03-14 16:16:17   fhemstarttime_text 12.03.2018 17:44:55
     2018-03-14 16:16:17   fhemuptime      167482
     2018-03-14 16:16:17   fhemuptime_text 1 days, 22 hours, 31 minutes
     2018-03-14 16:00:06   fs_boot         Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at /boot (not available)
     2018-03-14 16:00:06   fs_hdd          Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at /media/hdd (not available)
     2018-03-14 16:00:06   fs_root         Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at / (not available)
     2018-03-14 14:42:28   idletime        175013 88.75 %
     2018-03-14 14:42:28   idletime_text   2 days, 00 hours, 36 minutes (88.75 %)
     2018-03-14 13:10:26   loadavg         0.17 0.26 0.29
     2018-03-12 17:45:15   perl_version    v5.24.1
     2018-03-14 16:16:17   ram             n/a
     2018-03-14 14:24:45   ram_used_stat   -205.39 711.58 50.23
     2018-03-14 14:42:28   starttime       1520837758
     2018-03-14 14:42:28   starttime_text  12.03.2018 07:55:58
     2018-03-14 12:56:11   stat_cpu        7331764 11547 432006 67756932 8964 0 41652
     2018-03-14 12:56:11   stat_cpu0       6931678 2135 162587 11248685 3433 0 41363
     2018-03-14 12:56:11   stat_cpu0_diff  1793 0 72 3956 2 0 12
     2018-03-14 12:56:11   stat_cpu0_percent 30.73 0.00 1.23 67.80 0.03 0.00 0.21
     2018-03-14 12:56:11   stat_cpu0_text  user: 30.73 %, nice: 0.00 %, sys: 1.23 %, idle: 67.80 %, io: 0.03 %, irq: 0.00 %, sirq: 0.21 %
     2018-03-14 12:56:11   stat_cpu1       124930 7131 123674 18810596 1531 0 183
     2018-03-14 12:56:11   stat_cpu1_diff  10 0 33 6042 0 0 0
     2018-03-14 12:56:11   stat_cpu1_percent 0.16 0.00 0.54 99.29 0.00 0.00 0.00
     2018-03-14 12:56:11   stat_cpu1_text  user: 0.16 %, nice: 0.00 %, sys: 0.54 %, idle: 99.29 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
     2018-03-14 12:56:11   stat_cpu2       152097 1569 68045 18844562 2109 0 69
     2018-03-14 12:56:11   stat_cpu2_diff  3 0 30 6045 0 0 0
     2018-03-14 12:56:11   stat_cpu2_percent 0.05 0.00 0.49 99.46 0.00 0.00 0.00
     2018-03-14 12:56:11   stat_cpu2_text  user: 0.05 %, nice: 0.00 %, sys: 0.49 %, idle: 99.46 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
     2018-03-14 12:56:11   stat_cpu3       123059 712 77700 18853089 1891 0 37
     2018-03-14 12:56:11   stat_cpu3_diff  0 0 23 6051 0 0 0
     2018-03-14 12:56:11   stat_cpu3_percent 0.00 0.00 0.38 99.62 0.00 0.00 0.00
     2018-03-14 12:56:11   stat_cpu3_text  user: 0.00 %, nice: 0.00 %, sys: 0.38 %, idle: 99.62 %, io: 0.00 %, irq: 0.00 %, sirq: 0.00 %
     2018-03-14 12:56:11   stat_cpu_diff   1806 0 158 22094 2 0 12
     2018-03-14 12:56:11   stat_cpu_percent 7.50 0.00 0.66 91.78 0.01 0.00 0.05
     2018-03-14 12:56:11   stat_cpu_text   user: 7.50 %, nice: 0.00 %, sys: 0.66 %, idle: 91.78 %, io: 0.01 %, irq: 0.00 %, sirq: 0.05 %
     2018-03-14 16:16:17   swap            n/a
     2018-03-14 14:24:45   swap_used_stat  0.00 0.00 0.00
     2018-03-14 14:42:28   uptime          197189
     2018-03-14 14:42:28   uptime_text     2 days, 06 hours, 46 minutes
   helper:
     net_ethernet_stat_class 0
     proc_fs    1
     sys_cpu0_freq 1
     sys_cpu0_temp 0
     sys_cpu1_freq 1
     sys_cpu1_temp 0
     sys_cpu2_freq 1
     sys_cpu2_temp 0
     sys_cpu3_freq 1
     sys_cpu3_temp 0
     sys_cpu4_freq 0
     sys_cpu4_temp 0
     sys_cpu5_freq 0
     sys_cpu5_temp 0
     sys_cpu6_freq 0
     sys_cpu6_temp 0
     sys_cpu7_freq 0
     sys_cpu7_temp 0
     sys_cpu_core_num 4
     sys_cpu_freq_rpi_bbb 1
     sys_cpu_num 1
     sys_cpu_temp_bbb 0
     sys_cpu_temp_rpi 1
     sys_fb     0
     sys_power_ac 0
     sys_power_bat 0
     sys_power_usb 0
     u_first_mark 1
     READOUT_RUNNING_PID:
       abortFn    SYSMON_blockingAbort
       arg        sysmon|0
       bc_pid     13656
       finishFn   SYSMON_blockingFinish
       fn         SYSMON_blockingCall
       pid        WAITING:
       timeout    55
       abortArg:
     cur_readings_map:
       cpu0_freq  CPU frequency (core 0)
       cpu0_freq_stat CPU frequency (core 0) stat
       cpu0_idle_stat CPU0 min/max/avg (idle)
       cpu1_freq  CPU frequency (core 1)
       cpu1_freq_stat CPU frequency (core 1) stat
       cpu1_idle_stat CPU1 min/max/avg (idle)
       cpu2_freq  CPU frequency (core 2)
       cpu2_freq_stat CPU frequency (core 2) stat
       cpu2_idle_stat CPU2 min/max/avg (idle)
       cpu3_freq  CPU frequency (core 3)
       cpu3_freq_stat CPU frequency (core 3) stat
       cpu3_idle_stat CPU3 min/max/avg (idle)
       cpu4_idle_stat CPU4 min/max/avg (idle)
       cpu5_idle_stat CPU5 min/max/avg (idle)
       cpu6_idle_stat CPU6 min/max/avg (idle)
       cpu7_idle_stat CPU7 min/max/avg (idle)
       cpu_bogomips BogoMIPS
       cpu_core_count Number of CPU cores
       cpu_freq   CPU frequency
       cpu_freq_stat CPU frequency stat
       cpu_idle_stat CPU min/max/avg (idle)
       cpu_model_name CPU model name
       cpu_temp   CPU temperature
       cpu_temp_avg Average CPU temperature
       cpu_temp_stat CPU temperature stat
       date       Date
       ethernet   Ethernet
       ethernet_diff Ethernet (diff)
       ethernet_ip Ethernet (IP)
       ethernet_ip6 Ethernet (IP6)
       ethernet_rx Ethernet (RX)
       ethernet_speed Ethernet (speed)
       ethernet_tx Ethernet (TX)
       fhemstarttime Fhem start time
       fhemstarttime_text Fhem start time
       fhemuptime System up time
       fhemuptime_text FHEM up time
       fs_boot    Filesystem-Boot
       fs_boot_free Filesystem-Boot (free)
       fs_boot_used Filesystem-Boot (used)
       fs_boot_used_percent Filesystem-Boot (used %)
       fs_hdd     LAN-HDD
       fs_hdd_free LAN-HDD (free)
       fs_hdd_used LAN-HDD (used)
       fs_hdd_used_percent LAN-HDD (used %)
       fs_root    microSD-lokal
       fs_root_free microSD-lokal (free)
       fs_root_used microSD-lokal (used)
       fs_root_used_percent microSD-lokal (used %)
       idletime   Idle time
       idletime_text Idle time
       io_sda     TEST
       io_sda_diff TEST
       io_sda_raw TEST
       loadavg    Load average
       loadavg_1  Load average 1
       loadavg_15 Load average 15
       loadavg_5  Load average 5
       perl_version Perl Version
       ram        RAM
       ram_free   RAM free
       ram_free_percent RAM free %
       ram_total  RAM total
       ram_used   RAM used
       ram_used_stat RAM used stat
       starttime  System start time
       starttime_text System start time
       stat_cpu   CPU statistics
       stat_cpu0  CPU0 statistics
       stat_cpu0_diff CPU0 statistics (diff)
       stat_cpu0_percent CPU0 statistics (diff, percent)
       stat_cpu0_text CPU0 statistics (text)
       stat_cpu1  CPU1 statistics
       stat_cpu1_diff CPU1 statistics (diff)
       stat_cpu1_percent CPU1 statistics (diff, percent)
       stat_cpu1_text CPU1 statistics (text)
       stat_cpu2  CPU2 statistics
       stat_cpu2_diff CPU2 statistics (diff)
       stat_cpu2_percent CPU2 statistics (diff, percent)
       stat_cpu2_text CPU2 statistics (text)
       stat_cpu3  CPU3 statistics
       stat_cpu3_diff CPU3 statistics (diff)
       stat_cpu3_percent CPU3 statistics (diff, percent)
       stat_cpu3_text CPU3 statistics (text)
       stat_cpu4  CPU4 statistics
       stat_cpu4_diff CPU4 statistics (diff)
       stat_cpu4_percent CPU4 statistics (diff, percent)
       stat_cpu4_text CPU4 statistics (text)
       stat_cpu5  CPU5 statistics
       stat_cpu5_diff CPU5 statistics (diff)
       stat_cpu5_percent CPU5 statistics (diff, percent)
       stat_cpu5_text CPU5 statistics (text)
       stat_cpu6  CPU6 statistics
       stat_cpu6_diff CPU6 statistics (diff)
       stat_cpu6_percent CPU6 statistics (diff, percent)
       stat_cpu6_text CPU6 statistics (text)
       stat_cpu7  CPU7 statistics
       stat_cpu7_diff CPU7 statistics (diff)
       stat_cpu7_percent CPU7 statistics (diff, percent)
       stat_cpu7_text CPU7 statistics (text)
       stat_cpu_diff CPU statistics (diff)
       stat_cpu_idle_percent CPU statistics idle %
       stat_cpu_io_percent CPU statistics io %
       stat_cpu_irq_percent CPU statistics irq %
       stat_cpu_nice_percent CPU statistics nice %
       stat_cpu_percent CPU statistics (diff, percent)
       stat_cpu_sirq_percent CPU statistics sirq %
       stat_cpu_sys_percent CPU statistics sys %
       stat_cpu_text CPU statistics (text)
       stat_cpu_user_percent CPU statistics user %
       swap       swap
       swap_free  swap free
       swap_total swap total
       swap_used  swap used
       swap_used_percent swap used %
       swap_used_stat swap used stat
       uptime     System up time
       uptime_text System up time
     excludes:
     shadow_map:
       cpu_core_count 4
       cpu_temp   0.00
       cpu_temp_avg 0.2
       cpu_temp_stat 0.00 78.44 0.01
       ethernet   not available
       ethernet_diff not available
       fhemstarttime 1520873095
       fhemstarttime_text 12.03.2018 17:44:55
       fhemuptime 183581
       fhemuptime_text 2 days, 02 hours, 59 minutes
       fs_boot    Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at /boot (not available)
       fs_hdd     Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at /media/hdd (not available)
       fs_root    Total: 0 MB, Used: 0 MB, 0 %, Available: 0 MB at / (not available)
       ram        n/a
       swap       n/a
Attributes:
   alias      Systemmonitor
   event-min-interval .*:600
   event-on-change-reading cpu_temp,cpu_temp_avg,cpu_freq,ethernet_diff,loadavg,ram,fs_.*,stat_cpu_percent
   eventMap   Initialized:it_nas@0CFB0C
   filesystems fs_boot:/boot:Filesystem-Boot,fs_root:/:microSD-lokal,fs_hdd:/media/hdd:LAN-HDD
   group      RPi
   icon       time_graph
   network-interfaces ethernet:eth0:Ethernet
   room       _Systemlast
   sortby     01
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

kaputt

#40
Wo sagt sysmon das kein Arbeitsspeicher frei wäre?
Ich nur rund 450 MB verwendet.
Hast du eine(n) Swappartition/Datei?
Wenn ja wie ist den swappiness eingestellt?
sysctl vm.swappiness
Gruß aus L.E.
Uwe

Bei U/Linux hilfreich aber nicht nötig, bei Windows nötig aber nicht hilfreich!
Rechtschreibfehler sind beabsichtigt und Ausdruck meiner Persönlichkeit

Wernieman

Wenn Du Dir seinen "free" Auszug ansiehst, er hat keinen Swap.
Swap:             0           0           0

Es sieht mir danach aus, das ein Modul kurzfristig sehr viel Speicher haben will und es (fast) sofort wieder freigibt ... komisch
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Burny4600

Ist alles wunderbar bei der Übersicht, dem List und den zugehörigen Plots  zu sehen das plötzlich kein einziger Speicher laut FHEM Sysmon vorhanden sein soll.
Prüfe ich dazu auf der Konsole den Speicher ist aber aber noch vorhanden.
Swap Speicher verwende ich bei keinen Raspberry.

Nur warum FHEM Sysmon wiedersprüchlich zu free auf der Konsole keinen Speicher mehr anzeigt ist eigenartig.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

Wernieman

Es könnte sein, weil sysmon zu einem anderen Zeitpiunkt guckt als Du in Deine Konsole. Weiß auch nicht, wie viel Recourcen sysmon dafür braucht.
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Burny4600

#44
Da ist kaum ein Zeitunterschied beim Vergleich zwischen Sysmon und Konsole.
Zudem gibt es ab dem Cannot fork: Cannot allocate memory LOG Eintrages keine Änderungen der ausgefallenen Werte.
Laut Sysmon, wie man anhand der Printcopies sehen kann, gibt es nicht nur keinen Speicher vom RAM. der microSD und HDD sondern auch keine CPU Temperatur, CPU Last und keinen Netzwertrafic der von Sysmon erfasst werden kann.
Zu dem werden auch keine Leistungswerte der LS110 mehr erfasst.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT