You are not logged in.

#1 2012-01-20 20:51:28

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

/tmp runs out of space quite quickly

Specially when i attempt to compile something quite large from aur.
After a while compiling, i get the error that actually, /tmp is full and cannot go any further in the compiling process....
Since i have this in my /etc/fstab file:

tmpfs        /tmp    tmpfs    nodev,nosuid    0    0

I guess /tmp is as big as my ram amount... (which is 4 gb)

Which might be the solution for this?

Offline

#2 2012-01-20 21:03:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: /tmp runs out of space quite quickly

/etc/makepkg.conf:

#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

If you're using yaourt, you can tell it to build somewhere else, use --tmp commandline switch or edit /etc/yaourtrc, uncomment and change

#TMPDIR="/tmp"

to somewhere else.

Offline

#3 2012-01-20 21:03:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,929
Website

Re: /tmp runs out of space quite quickly

/tmp should be as big as half of your RAM amount. You can increase this if you want (see here for details), or you can build the large package on your hard disk instead. I assume you're using an aur helper, so check it's man page to see if it offers a --build-directory= or similar option.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2012-01-20 21:25:22

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: /tmp runs out of space quite quickly

Before you build the package what files are in /tmp and how big are they?


You're just jealous because the voices only talk to me.

Offline

#5 2012-01-20 23:53:26

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: /tmp runs out of space quite quickly

I use yaourt.... its config file is /etc/yaourtrc, and has one line (commented, btw) like this:


#TMPDIR="/tmp"


I guess this is what should be changed... but which would be the proper thing to change it to? "$HOME/yaourt-build" for example?

Offline

#6 2012-01-20 23:57:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: /tmp runs out of space quite quickly

Yup, looks good.
If that doesn't work, use the full path instead of $HOME variable.

Offline

#7 2012-01-20 23:58:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,611
Website

Re: /tmp runs out of space quite quickly

It could be changed to (almost) anything.  But before you go tinkering with a "treat-the-symptom" approach you may want to first address moetunes' question.

With 4GB of ram you should not be running out of space.  To me it would suggest there is something else wrong.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2012-01-21 00:05:41

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: /tmp runs out of space quite quickly

Ok, look, i run df before attempt a compilation of 0ad (you can find it in aur)

Filesystem                        1K-blocks       Used Available Use% Mounted on
tmpfs                               1768780         16   1768764   1% /tmp

Some minutes after syncing/downloading sources + extract... currently compiling:

Filesystem                        1K-blocks       Used Available Use% Mounted on
tmpfs                               1768780     954884    813896  54% /tmp


And it goes on compiling until use goes up to 100%.... so its completely possible....

Offline

#9 2012-01-21 01:17:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,611
Website

Re: /tmp runs out of space quite quickly

Sorry, I stand corrected .... but that is one huge package.

Edit: Somehow I think this is going to be turned into a bad joke.

Last edited by Trilby (2012-01-21 01:17:51)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB