Alexey Avramov
Alexey Avramov
>I read in some article that it is better to have swap enabled Yes, the article is https://chrisdown.name/2018/01/02/in-defence-of-swap.html
>Is this me doing something wrong or the app? App works as intended. It responds to low MemAvailable and SwapFree. As you see: ``` тра 28 17:58:39 viktor-desktop nohang-desktop[1270]: Memory...
>I'm looking for a good way to install a kernel with PSI support. See https://itsfoss.com/ubuntu-hwe-kernel/ Maybe you would run `sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04` to install 5.3 with PSI...
>Actually I thought one of the features of earlyoom, nohang and alike is avoiding waiting such a long time. Without swap space you can avoid waiting. nohang without PSI works...
>One more question is why after killing the hog process the memory isn't freed? Processes do not free memory immediately after receiving a signal, even if it is SIGKILL. Freeing...
>A process has filled almost all /tmp What about limiting tmpfs size? ``` tmpfs /tmpfs tmpfs nodev,nosuid,noexec,noatime,size=4G 0 0 ``` I think that normally tmpfs size should be limited.
Hello, BTW, nohang in pre-release versions tried to clean tmpfs: https://github.com/hakavlad/nohang-extra/blob/master/nohang_old#L49
We can easy detect `tmpfs` overflow by `Shmem` in `/proc/meminfo`: ``` Shmem %lu (since Linux 2.6.32) Amount of memory consumed in tmpfs(5) filesystems. ``` http://man7.org/linux/man-pages/man5/proc.5.html tmpfs can be filled with...
>if you see percentage above 50% and Shmem usage above a certain (configurable) percentage of ram then notify user that something is filling tmp filesystems. >use only the shmem percentage...
https://github.com/hakavlad/nohang/commit/bf431cf9b8060ef9aa4791bf668a7e175b486476 It's unconfigurable for now. It shows Shmem % if Shmem > 30% MemTotal.