You are not logged in.
Pages: 1
Hi,
Space on my /tmp drive tends to run out sometimes recently. I have no idea what causes it.
The recent incident caused the kernel update to fail leaving me with a nice kernel panic (And the day just started
).
How can I monitor the /tmp directory? I can write a script that logs the file sizes there (with du) but maybe someone here knows about a better way? Preferably with a GUI?
Thanks
Last edited by Tharbad (2018-07-11 09:06:08)
Offline
Do you use tmpfs?
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
yes
Offline
You can monitor it w/ "inotifywait -m", "-e create" will only fire if some file was created (existing files could then grow unnoticed, though)
Why it is full is impossible to say, usually because stuff writes stuff there. The default size is half your RAM (check "mount" for additional parameters). If you're low on RAM: don't use tmpfs.
Since your kernel updated failed, I'm gonna say: because some stupid AUR helper builds stuff there and doesn't tidy up.
Offline
I Have 32G. It worked fine 3.5 years and I've been using aur helpers from the beginning. No, I think it's something new.
Offline
I Have 32G. It worked fine 3.5 years and I've been using aur helpers from the beginning. No, I think it's something new.
Offline
If your helper is dumb enough to build everything in /tmp, this is expected behavior.
Offline
And yet it started only now.
I want to be sure. Guessing doesn't help me.
Offline
Then go find out what's in /tmp when it's full. Not that difficult.
Offline
That sounds easy. Last time system crashed.
But it got me thinking.
I should find a way to get an alert when /tmp is 80% full.
Offline
Also you can utilize systemd to remove temp-files periodically
see,
man systemd-tmpfilesOffline
Zenity is the answer.
https://www.cyberciti.biz/faq/mac-osx-u … k-is-full/
Offline
Also you can utilize systemd to remove temp-files periodically
see,man systemd-tmpfiles
Will it destroy files in use? Might be problematic.
Offline
Found the culprit: peerflix. Thanks everyone.
(However I wasn't able to figure out how to run the zenity script above with systemd)
Offline
Pages: 1