Gentoo Archives: gentoo-user

From: Volker Armin Hemmann <volkerarmin@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Swap performance
Date: Thu, 26 May 2011 16:31:58
Message-Id: 4588192.VteoqrCya1@localhost
In Reply to: Re: [gentoo-user] Swap performance by Alex Schuster
1 On Thursday 26 May 2011 00:40:21 Alex Schuster wrote:
2 > Paul Hartman writes:
3 > > On Wed, May 25, 2011 at 9:20 AM, Alex Schuster <wonko@×××××××××.org>
4 > > wrote:
5 > >
6 > > I can't remember the last time my swap was used at all. I have 12G of
7 > > RAM, but in my prior system with 8G it was the same. Only in a rare
8 > > case when some program had run-away memory usage/memory leak did I
9 > > ever get to swap usage... I'm using vanilla kernel 2.6.39 with no
10 > > patches, no BFS. And I use proprietary nvidia-drivers. I normally
11 > > don't have so many programs running at once, but it happens sometimes.
12 >
13 > Maybe I should have bought 4G instead of 2G, so I'd have 10G, not 8G.
14 > I'm not sure if this is recommended these days, to have one memory bank
15 > with 4G and 3 others with 2G each.
16 >
17
18 It is very much not recommended nor wise.
19
20 Sometimes it works great, sometimes it just works, sometimes it burns down
21 your village, rapes your cattle and steals your dad.
22
23 >
24 > It's growing: 1405m VIRT, 851m RES, 6m SHR. Strange, I did not actually
25 > use the desktop after I wrote the mail you replied to, currently I'm
26 > logged in from remote.
27
28 and you know that those numbers are pretty much meaningless?
29
30 about swap:
31
32 8gb ram, 24gb swap here. Swap so huge because of historical reasons (started
33 with one disk with 8gb, now there are three...). But not so bad, considering
34 all those tempfs mounts that can shoved in there.
35
36 Of course I am scared about the shitstorm if that ever happens.
37
38 I am using the standard scheduler, no fancy io-scheduling stuff, kernel
39 2.6.36.6 and can't complain.
40
41 Even after a week of uptime I only get 500mb swap. Some cruft still in memory
42 for some i-dont-know-reasons shoved in the hellhole swap so it won't get in
43 the way of the more important stuff. Like gwenview. Or vlc.