Mailinglist Archive: opensuse (963 mails)

< Previous Next >
Re: [opensuse] swap on tmpfs
On 4/9/2011 10:40 PM, Rodney Baker wrote:
On Sun, 10 Apr 2011 03:20:15 Felix Miata wrote:
On 2011/04/10 03:34 (GMT+0930) Rodney Baker composed:
Anton Aylward wrote:
But having /tmp as a tmpfs *does* make a difference

Thanks for the tip on this one - I just changed mine (/tmp was on /) and,
man, did it make a difference to how kde 4 runs?!!

My brain isn't connecting with what to actually do in fstab to accomplish
this. Right now I have:

LABEL=07tmp /tmp /ext2 noatime,noacl 1 2

What would I do instead?


Try it out first with:

mount -t tmpfs /tmp [-o size=<value>]

Then if you want to make it permanent add the following to /etc/fstab:

none /tmp tmpfs size=<VALUE> 0 0

Size is optional - it defaults to 50% of RAM. It accepts either a value in
bytes (e.g. 200m for 200MB) or a % (of RAM) - mine is set to 25% as a starting
point. BTW, size is the *limit* - it will not grow past that (but it will only
use what it needs otherwise).



This should be good... why, pray tell, would you put swap in ram?

--
bkw
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups