Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/tmp: how large is needed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
phoenixhou
n00b
n00b


Joined: 07 Jan 2010
Posts: 26

PostPosted: Sat Apr 17, 2010 2:23 pm    Post subject: /tmp: how large is needed? Reply with quote

I installed Gentoo on my laptop for everyday use, mainly document processing, web surfing, watching movies, etc.

Following the Handbook, I allocated 2GB of disk space for /tmp. As I could observe, space usage on /tmp never exceeded 10%. I'm wondering exactly how much space is needed for /tmp in my situation, or if a separate /tmp is necessary at all.

What application, or for example which software package, will use /tmp intensively?
_________________
BenQ R53EG: Intel Celeron-M 1.60GHz, 2G DDR533, Hitachi HTS541616J9AT00 160G, ATI Mobility Radeon X600

Desktop: AMD Phenom II X4 940, 4G DDR1333, WD 2T*2 RAID0, ATI HD5770*2 CF
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Apr 17, 2010 2:32 pm    Post subject: Reply with quote

Mine is not big too, might it might grow to enormous sizes if some programs start putting a lot of stuff there. I don't know exactly when that happens, but in the meantime you could use 512 MB for it and get away with that. I use that size, and it was never too small.

One example I can think of, is that this size is used by firefox to temporarily store files for later opening. If you donload big .rar files, then that partition should be big too.
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sun Apr 18, 2010 5:11 am    Post subject: Reply with quote

If you're making temporary images of DVD's it's a good ideal to have it like...10 GB, for advanced video editing I recommend 20 GB, for HD video editing, I can't be below a 100 GB.


Overall I don't think it makes sense to mount a whole partition onto it since it will waste space, instead mounting that additional space to your root partition will be more conservative.

The places in which you are recommended to mount a partition is the /usr, /usr/lib64, /usr/portage and/or /usr/portage/distfiles (/usr/portage/distfiles will work great at jfs but /usr/portage will be good with reiserfs) and maybe the desktop folder or the home folder as a whole since people tend to use the desktop quiet often.
_________________
My blog
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Sun Apr 18, 2010 10:14 am    Post subject: Reply with quote

It's a good idea to watch the file usage in /tmp. After a while, I decided it wasn't a bad idea to use tmpfs for /tmp (which uses virtual memory, so creates an empty /tmp after every reboot anyhow) and never really had an issue with that decision.

Like the filesystem hierarchy standard sais, /tmp is for temporary information of running processes. Any temporary information that should survive a process' lifetime should be in /var/tmp or, if it is ran by a general user, in a temporary folder in his home directory...
_________________
Please add "[solved]" to the initial topic title when it is solved.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Sun Apr 18, 2010 2:41 pm    Post subject: Reply with quote

The main reason for using a separate partition is security: As /tmp is world-writable it's a good idea to have it mounted nosuid, nodev and noexec.
As for size, in most cases even 100MB should be enough. Unfortunately there are a couple applications that use /tmp to store huge amounts of transient data, so there is no value that's sufficient in all cases. Though with luck those apps repect the TMPDIR variable, so you could redirect them to another location if you run into troubles.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Mon Apr 19, 2010 9:43 am    Post subject: Reply with quote

I'm pretty sure that portage uses /var/tmp by default, so you will certainly
need a fair amount of space on /var (?10G). Since var has a lot of news
and mail and portage files coming and going I tend to put it on a separate
partition, but I've never bothered to do that with /tmp, and it's never used
much space - certainly less than 1G.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum