Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Swap performance
Date: Thu, 26 May 2011 17:27:59
Message-Id: 201105261926.21424.wonko@wonkology.org
1 Volker Armin Hemmann writes:
2
3 > On Thursday 26 May 2011 00:40:21 Alex Schuster wrote:
4 > > Paul Hartman writes:
5 > > > On Wed, May 25, 2011 at 9:20 AM, Alex Schuster <wonko@×××××××××.org>
6 > > > wrote:
7
8 > > Maybe I should have bought 4G instead of 2G, so I'd have 10G, not 8G.
9 > > I'm not sure if this is recommended these days, to have one memory bank
10 > > with 4G and 3 others with 2G each.
11 >
12 > It is very much not recommended nor wise.
13 >
14 > Sometimes it works great, sometimes it just works, sometimes it burns
15 > down your village, rapes your cattle and steals your dad.
16
17 Ookay.
18
19
20 > > It's growing: 1405m VIRT, 851m RES, 6m SHR. Strange, I did not actually
21 > > use the desktop after I wrote the mail you replied to, currently I'm
22 > > logged in from remote.
23 >
24 > and you know that those numbers are pretty much meaningless?
25
26 Are they? Well, apparently _something_ in kwin was using hundreds of
27 megabytes. When I was back at the PC, I had to wait three minutes until he
28 password dialog appeared so I could unlock the session. iotop showed the
29 kwin process swapping, and no other activity.
30 Now kwin is at 37M, which is much lower than I thought... whoops, I made a
31 mistake in my previous posting, I got the virtual memory column instead by
32 misusing awk. I also confused kwin with plasma-desktop, which had been
33 really high in the past.
34
35 > about swap:
36 >
37 > 8gb ram, 24gb swap here. Swap so huge because of historical reasons
38 > (started with one disk with 8gb, now there are three...). But not so
39 > bad, considering all those tempfs mounts that can shoved in there.
40
41 Yikes. I'd rather use the space for other stuff... no matter how large hard
42 drives are, mine tend to fill up so I am glad for every extra gigabyte I can
43 find.
44
45 > Of course I am scared about the shitstorm if that ever happens.
46 >
47 > I am using the standard scheduler, no fancy io-scheduling stuff, kernel
48 > 2.6.36.6 and can't complain.
49
50 I do, a lot. But it seems that the system performs okay now.
51
52 > Even after a week of uptime I only get 500mb swap. Some cruft still in
53 > memory for some i-dont-know-reasons shoved in the hellhole swap so it
54 > won't get in the way of the more important stuff. Like gwenview. Or vlc.
55
56 Yeah, that's how it should be. A little swap is okay. But in my case it felt
57 like important stuff was swapped out.
58
59 Wonko