You are not logged in.
Pages: 1
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
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 packages • Zsh and other configs
Offline
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
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
Thank you guys, it's very helpful. and indeed i'm using yaourt to install opencascade
Offline
Pages: 1