You are not logged in.

#1 2018-07-11 06:09:33

Tharbad
Member
Registered: 2016-02-27
Posts: 333

[Solved] Out of space on my /tmp drive

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 sad ).

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

#2 2018-07-11 06:20:07

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: [Solved] Out of space on my /tmp drive

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

#3 2018-07-11 06:28:11

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

yes

Offline

#4 2018-07-11 07:06:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: [Solved] Out of space on my /tmp drive

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

#5 2018-07-11 07:32:50

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

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

#6 2018-07-11 07:33:26

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

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

#7 2018-07-11 07:34:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Out of space on my /tmp drive

If your helper is dumb enough to build everything in /tmp, this is expected behavior.

Offline

#8 2018-07-11 07:37:04

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

And yet it started only now.
I want to be sure. Guessing doesn't help me.

Offline

#9 2018-07-11 07:39:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Out of space on my /tmp drive

Then go find out what's in /tmp when it's full. Not that difficult.

Offline

#10 2018-07-11 07:56:02

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

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

#11 2018-07-11 08:05:54

sincomil
Member
Registered: 2018-02-13
Posts: 118

Re: [Solved] Out of space on my /tmp drive

Also you can utilize systemd to remove temp-files periodically
see,

man systemd-tmpfiles

Offline

#12 2018-07-11 08:06:17

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

Offline

#13 2018-07-11 08:08:16

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

sincomil wrote:

Also you can utilize systemd to remove temp-files periodically
see,

man systemd-tmpfiles

Will it destroy files in use? Might be problematic.

Offline

#14 2018-07-11 09:05:53

Tharbad
Member
Registered: 2016-02-27
Posts: 333

Re: [Solved] Out of space on my /tmp drive

Found the culprit: peerflix. Thanks everyone.

(However I wasn't able to figure out how to run the zenity script above with systemd)

Offline

Board footer

Powered by FluxBB