• Small server hanging after some days - top, load avg and Mem buff/cache

    From B.M.@21:1/5 to All on Mon Oct 28 11:41:46 2024
    Hi,

    I have a small server (Raspberry Pi 4 in fact) and since a couple of weeks it repeatedly hangs after some days until I reboot it (after months of uptime without any problem - but I changed a few things in the meantime, so maybe
    load is now higher than before).

    At least after installing watchdog it reboots now automatically.

    Here some top output just before reboot:

    load avg 20 18 12 (so: much higher than normal, e.g. 1.1 1.2 1.5 or so)
    MiB Mem: 3835 total, 618 free, 1194 used, 2264 buff/cache
    MiB Swap: 1024 total, 600 free, 430 used, 2640 avail

    Processes with highest CPU usage:
    kswapd0 with 80%
    java (openhab) 41%
    kworker/08:10+events_unbound 21%
    pg_dump 18%

    Processes with highest Mem usage:
    java (i.e. openhab) with 626678 virt, 22%
    postgres 338824 virt
    postgre 338800 virt

    From my understanding, there is enough memory available, even swap usage wouldn't be necessary, since buff/cache is about 50% of physical memory. Is this correct? But than: why is it going to hang afterwards, or why this
    extreme load?

    The only swap device available is zram, no swap partition, no swap file. The system runs on btrfs.

    Any ideas?

    Thank you,
    Bernd

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCgAdFiEEikKioFYA3Uj89MUOV4VoAirdxWUFAmcfamoACgkQV4VoAird xWUFdgf/Z3x5OPMYduPZPXlxQOnUXC4te62D2q15ej9lBtgWexaJWeCStRAfh8vA hf3fZQwjfhxmSgfhZdBPiC13cOP/Hm3U1DhM85OK6A8AM75yuAwjYg7xTQthlqfl lj9KkY+Hk9EpSI7P80xcXuSI9IJ8yIE9D7vI0MjannB4gbY+kMsTm6RytYcDpLp/ xZ5sK6+6+eDaqLXA4BIGILVbHzEhoT/zcTY/kc4O01D4PT+3zwGsg0bNEL8V6cTV UuCjZgtg/78Bi/IxsN6S/BrpdPdNfPdVdq8hKaXPm1De7E2TMAtn6EykNcHMHRXm PthdBF+68jIfRVHBzGOzJJtvogzzzg==
    =lneK
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)