Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Running out of space on /var partition
Date: Thu, 28 Jul 2011 15:27:43
Message-Id: 201107281626.28084.peter@humphrey.ukfsn.org
In Reply to: [gentoo-user] Re: Running out of space on /var partition by walt
1 On Thursday 28 July 2011 01:47:12 walt wrote:
2 > On 07/27/2011 08:01 AM, Michael Mol wrote:
3 > > If you allow tmpfs to be backed by swap...
4 >
5 > Does that require some extra configuration?
6
7 Nope. You just define swap and tmpfs in your fstab. Here are my entries:
8
9 $ grep swap /etc/fstab
10 /dev/sda3 none swap sw,pri=10 0 0
11 /dev/sdb3 none swap sw,pri=10 0 0
12 /dev/sda7 none swap sw,pri=1 0 0
13 /dev/sdb7 none swap sw,pri=1 0 0
14 $ grep tmpfs /etc/fstab
15 tmpfs /tmp tmpfs noatime,nodev,nosuid,size=8G 0 0
16 shm /dev/shm tmpfs nodev,nosuid 0 0
17
18 I haven't changed anything there since upgrading from 4 to 16GB RAM a few
19 months ago. Notice that the tmpfs was then bigger than the installed RAM. It
20 worked just fine.
21
22 --
23 Rgds
24 Peter Linux Counter number 5290