Gentoo Archives: gentoo-performance

From: "Douglas Breault Jr." <GenKreton@×××××××.net>
To: gentoo-performance@l.g.o
Subject: Re: [gentoo-performance] swap?
Date: Sun, 01 Aug 2004 04:06:46
Message-Id: 20040801000612.3d1f9a3f.GenKreton@comcast.net
In Reply to: RE: [gentoo-performance] swap? by Florian Koenig
1 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.
2 This is a problem I've experience with the CK patch set.
3
4 On Fri, 30 Jul 2004 21:22:17 +0200
5 "Florian Koenig" <k0255220@××××××××××××××××××××.at> wrote:
6
7 > > > Also, when I do
8 > > >
9 > > > free
10 > > >
11 > > > it shows no swap is used even though physical memory level is 98%.
12 > >
13 > > free shows no swap used on my system either. and 90% or more physical
14 > > memory use is standard for the linux kernel.
15 >
16 > 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.
17 >
18 > 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.
19 >
20 > 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.
21 >
22 > 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:
23 >
24 > http://kerneltrap.org/node/view/3000
25 > http://kerneltrap.org/node/view/3202
26 >
27 > Have a nice weekend and kind regards
28 > floki
29 >
30 >
31 > --
32 > gentoo-performance@g.o mailing list
33 >

Replies

Subject Author
Re: [gentoo-performance] swap? Colin Kingsley <ckingsley@×××××.com>