-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/tmp high usage triggering nohang #95
Comments
What about limiting tmpfs size?
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 |
Hi, by default it's limited:
|
We can easy detect
http://man7.org/linux/man-pages/man5/proc.5.html tmpfs can be filled with small files with the participation of many processes at different times. What process do you propose to kill? What to notify the user about? |
First easier feature (just notify) is: When nohang warning level are triggered, check also tmpfs usage (something like df | grep tmpfs) and 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. Simpler approach: ignore df | grep tmpfs and use only the shmem percentage. User, based on that notification, can take corrective actions by himself or ignore the alarm. Second, more advanced feature to implement: badness can take into account open tmpfs files... |
It's easy to implement.
Does it look good? Maybe
|
It's unconfigurable for now. It shows Shmem % if Shmem > 30% MemTotal. |
Hello,
my /tmp is ram mounted.
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
I also use zram.
A process has filled almost all /tmp and zram usage was very high.
nohang was triggered and killed processes but of course this didn't cure the problem, as the process causing this, was not a memory hog.
After I emptied /tmp, nohang was quiet.
A nice feature improvement would be to check the free space of tmpfs filesystems and notify user via notification that they are filling his/her ram.
nohang can either identify the process filling the tmpfs and kill it but if it's too difficult, a notification would be good.
The text was updated successfully, but these errors were encountered: