You are not logged in.

#1 2012-04-03 19:25:02

osager
Member
From: France
Registered: 2011-04-20
Posts: 22

/tmp runs out [SOLVED]

Hi all:

I have only 2G /tmp
I thought it's enough but when i try to build some large apps it runs out of space and the installation terminates with error

How can I safely allocate more space for /tmp ?

Last edited by osager (2012-04-03 20:47:04)

Offline

#2 2012-04-03 19:29:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,605
Website

Re: /tmp runs out [SOLVED]

I assume that you have 4 G of RAM and that you are compiling in /tmp?  I have 8 G on my system and allocate 7 of it to /scratch which I mount at tmpfs.  You can do the same to normal /tmp.

$ grep tmp /etc/fstab
tmpfs	/tmp	tmpfs	nodev,nosuid	0	0
tmpfs /scratch tmpfs nodev,size=7G 0 0

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2012-04-03 19:48:55

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

Re: /tmp runs out [SOLVED]

You don't have to build in /tmp

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

#4 2012-04-03 20:15:20

mr.MikyMaus
Member
From: disabled
Registered: 2006-03-31
Posts: 285

Re: /tmp runs out [SOLVED]

As for your question: yes, you can allocate as much space as you have available. Although I wouldn't recommend expanding it over more than a half of your RAM (provided you use tmpfs for your /tmp) as it may, especially during compilation, lead to swapping and a general slow-down. The cleanest solution to this problem would be what karol suggested - pointing your compilation to a different temporary directory with enough space - it does not have to be a separate partition.

Just for your consideration - for me ReiserFS gives very good results when it is used as a working and temp directory for compiling.

..just my €0.02


What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...

... and who is general Failure and why is he reading my harddisk?

Offline

#5 2012-04-03 20:46:05

osager
Member
From: France
Registered: 2011-04-20
Posts: 22

Re: /tmp runs out [SOLVED]

Thank you guys, it's very helpful. and indeed i'm using yaourt to install opencascade

Offline

Board footer

Powered by FluxBB