Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/tmp on tmpfs?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1222

PostPosted: Thu Mar 04, 2004 2:31 am    Post subject: /tmp on tmpfs? Reply with quote

is it ok to mount /tmp on tmpfs?

Code:
none        /tmp  tmpfs   defaults          0 0


will it bring some performance?
in mandrake it was done by default, will it bring some problems in gentoo?
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Thu Mar 04, 2004 2:51 am    Post subject: Re: /tmp on tmpfs? Reply with quote

tnt wrote:
is it ok to mount /tmp on tmpfs?
Yes.
Quote:
will it bring some performance?
Hardly.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Mar 04, 2004 1:02 pm    Post subject: Reply with quote

I do this,k the only advantage really is that /tmp will be wiped out when you reboot so you don't end up filling up one of your partitions with temp files.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Mar 04, 2004 5:43 pm    Post subject: Reply with quote

I've done this for nearly 6 months with no problems whatsoever, its a useful place to put downloaded and temp files as it gets wiped on reboots, so it doesnt get cluttered up, and its all in mem so its much faster than disc access
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1222

PostPosted: Thu Mar 04, 2004 9:17 pm    Post subject: Reply with quote

maybe i would to quicker emerges if i had PORTAGE_TMPDIR="/var/tmp" mounted on tmpfs?

that would mean less disk access during compiling - all temporary files would be kept in RAM... :?:

:roll:
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Thu Mar 04, 2004 9:20 pm    Post subject: Reply with quote

tnt wrote:
maybe i would to quicker emerges if i had PORTAGE_TMPDIR="/var/tmp" mounted on tmpfs?

that would mean less disk access during compiling - all temporary files would be kept in RAM... :?:

:roll:


so long as all the source'll fit in your ram...since that's where the source goes to compile (I think)...if you can fit openoffice source into your ram and still compile you must hae a good amount of ram :)
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
angelacb
n00b
n00b


Joined: 31 Oct 2003
Posts: 50

PostPosted: Wed Apr 07, 2004 8:01 pm    Post subject: Reply with quote

Quote:
so long as all the source'll fit in your ram...since that's where the source goes to compile (I think)...if you can fit openoffice source into your ram and still compile you must hae a good amount of ram


Say i do want to try to mount /var/tmp as tmpfs, what would be a nice choice for size=?? and what amount of physical RAM should i expect on the system. I'm probably not compiling something like openoffice or something like that, but mainly things like Apache, Postfix, courier-imap, amavisd, php, those server stuff...etc... Just wondering... :oops:

Best Regards,
_________________
Love Linux, Love Life
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Wed Apr 07, 2004 9:08 pm    Post subject: Reply with quote

angelacb wrote:
Say i do want to try to mount /var/tmp as tmpfs, what would be a nice choice for size=?? and what amount of physical RAM should i expect on the system.

Probably size=700M or maybe even 500M would do it for most packages, not sure though. Of course if you don't want your tmpfs getting swapped out you probably will need 1.5gig of physical ram at least.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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