Gentoo Archives: gentoo-performance

From: Colin Kingsley <ckingsley@×××××.com>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] swap?
Date: Sun, 01 Aug 2004 04:35:58
Message-Id: 13cc2f780407312135590a0fdc@mail.gmail.com
In Reply to: Re: [gentoo-performance] swap? by "Douglas Breault Jr."
1 yea, I agree... but thats not what this thread was about.
2
3 not that it should die here, feel free to discuss it. :)
4
5 On Sun, 1 Aug 2004 00:33:15 -0400, Douglas Breault Jr.
6 <genkreton@×××××××.net> wrote:
7 > Even on laptops swap has a purpose and should be used to increase space but there is a definite lack of control over it beyond the very obscure swapiness variable. It's not horribly bad right now but it seems too many people want to make this worse. The laptop sysctl variable is the closest thing we have unfortunately.
8 >
9 > There needs to be a balance between power and performance when necessary. Swap is good stuff sometimes.
10 >
11 > On Sun, 1 Aug 2004 00:17:47 -0400
12 >
13 >
14 > Colin Kingsley <ckingsley@×××××.com> wrote:
15 >
16 > > how is that "disturbing"? you _can_
17 > > turn off swap for power reasons if you want too.
18 > >
19 > > it was a discussion about swap, what were you expecting?
20 > > by the way, I happen to be on a laptop myself.
21 > >
22 > >
23 > > On Sun, 1 Aug 2004 00:06:12 -0400, Douglas Breault Jr.
24 > > <genkreton@×××××××.net> wrote:
25 > > > The dsturbing thing about those threads you posted up is that they completely ignore those people running laptops who may also want to not swap often because it spins up the harddrive and causes a spike in power consumption everytime this happens.
26 > > > This is a problem I've experience with the CK patch set.
27 > > >
28 > > > On Fri, 30 Jul 2004 21:22:17 +0200
29 > > >
30 > > >
31 > > > "Florian Koenig" <k0255220@××××××××××××××××××××.at> wrote:
32 > > >
33 > > > > > > Also, when I do
34 > > > > > >
35 > > > > > > free
36 > > > > > >
37 > > > > > > it shows no swap is used even though physical memory level is 98%.
38 > > > > >
39 > > > > > free shows no swap used on my system either. and 90% or more physical
40 > > > > > memory use is standard for the linux kernel.
41 > > > >
42 > > > > Exactly. In contrast to Windows NT/2000/XP, which tries to swap out as much pages as possible, Linux tries to keep the memory mostly filled. Lots of the memory gets used as cache and buffer so you might actually gain some performance.
43 > > > >
44 > > > > The difference between Windows and Linux stems from their different origins. Linux/Unix was always meant to be a server system where the set of running processes doesn't change that often. Therefore it tries to keep pages in memory for as long as possible.
45 > > > >
46 > > > > Windows' approach to the problem is geared to desktop performance and so it swaps out 'unused' pages as soon as possible to free memory and keep startup time short for programs being loaded.
47 > > > >
48 > > > > The behaviour of Linux is actually hotly debated by the developers as you can see on these two pages, which btw also include some hints on how to tune swapping:
49 > > > >
50 > > > > http://kerneltrap.org/node/view/3000
51 > > > > http://kerneltrap.org/node/view/3202
52 > > > >
53 > > > > Have a nice weekend and kind regards
54 > > > > floki
55 > > > >
56 > > > >
57 > > > > --
58 > > > > gentoo-performance@g.o mailing list
59 > > > >
60 > > >
61 > > >
62 > > >
63 > >
64 > > --
65 > > gentoo-performance@g.o mailing list
66 > >
67 >
68 >
69 >
70
71 --
72 gentoo-performance@g.o mailing list