Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Questions re swap and hibernate interaction on 8 gig machine
Date: Fri, 25 Jun 2010 01:05:54
Message-Id: 20100625010412.GA13054@waltdnes.org
In Reply to: Re: [gentoo-user] Questions re swap and hibernate interaction on 8 gig machine by Frank Steinmetzger
1 On Thu, Jun 24, 2010 at 03:16:30PM +0200, Frank Steinmetzger wrote
2 > I even have set up a ramdisk in /var/tmp/portage for emerge. Except
3 > for kdelibs its 1.5 Gigs are more than enough. And if the ramdisk
4 > is empty, the free space is used for RAM.
5
6 Why not use the built-in /dev/shm directly, and avoid the overhead of
7 a ramdisk?
8
9 waltdnes@d530 ~ $ ll /dev/shm
10 total 0
11 drwxrwxrwt 2 root root 40 Jun 21 14:46 .
12 drwxr-xr-x 14 root root 14080 Jun 23 17:10 ..
13 waltdnes@d530 ~ $ echo "Hello World" > /dev/shm/greeting.txt
14 waltdnes@d530 ~ $ ll /dev/shm
15 total 4
16 drwxrwxrwt 2 root root 60 Jun 24 21:01 .
17 drwxr-xr-x 14 root root 14080 Jun 23 17:10 ..
18 -rw-r--r-- 1 waltdnes users 12 Jun 24 21:01 greeting.txt
19 waltdnes@d530 ~ $ cat /dev/shm/greeting.txt
20 Hello World
21 waltdnes@d530 ~ $
22
23 --
24 Walter Dnes <waltdnes@××××××××.org>