Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] To swap or not to swap? Is it really needed?
Date: Fri, 30 Dec 2011 14:20:48
Message-Id: 4EFDC83C.6050406@gmail.com
In Reply to: Re: [gentoo-user] To swap or not to swap? Is it really needed? by Peter Humphrey
1 On 12/30/2011 08:11 AM, Peter Humphrey wrote:
2 > On Friday 30 December 2011 14:02:46 Paul Hartman wrote:
3 >
4 >> On 12/30/2011 07:32 AM, Michael Mol wrote:
5 >
6 >> > Hm. tmpfs defaults (at least on my system) to a capacity of about 3GB.
7 >
8 >> > What do you have for mount options in fstab?
9 >
10 >>
11 >
12 >> You can set the size with size=XXXX parameter. For example I have mine
13 >
14 >> set to 10G:
15 >
16 >>
17 >
18 >> none /dev/shm tmpfs defaults,size=10G 0 0
19 >
20 >>
21 >
22 >> It is shared memory, so that 10G is not actually used unless it is...
23 >
24 >> well, actually used. :)
25 >
26 >
27 >
28 > ...and you can set the size to be more than the RAM you have; any used
29 > excess gets swapped out.
30 >
31
32 Though, if you get to that point, performance would probably be better
33 if you used disk for tmp in the first place. :)

Attachments

File name MIME type
signature.asc application/pgp-signature