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:17:53
Message-Id: 13cc2f78040731211762e1287e@mail.gmail.com
In Reply to: Re: [gentoo-performance] swap? by "Douglas Breault Jr."
1 how is that "disturbing"? you _can_
2 turn off swap for power reasons if you want too.
3
4 it was a discussion about swap, what were you expecting?
5 by the way, I happen to be on a laptop myself.
6
7
8 On Sun, 1 Aug 2004 00:06:12 -0400, Douglas Breault Jr.
9 <genkreton@×××××××.net> wrote:
10 > 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.
11 > This is a problem I've experience with the CK patch set.
12 >
13 > On Fri, 30 Jul 2004 21:22:17 +0200
14 >
15 >
16 > "Florian Koenig" <k0255220@××××××××××××××××××××.at> wrote:
17 >
18 > > > > Also, when I do
19 > > > >
20 > > > > free
21 > > > >
22 > > > > it shows no swap is used even though physical memory level is 98%.
23 > > >
24 > > > free shows no swap used on my system either. and 90% or more physical
25 > > > memory use is standard for the linux kernel.
26 > >
27 > > 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.
28 > >
29 > > 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.
30 > >
31 > > 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.
32 > >
33 > > 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:
34 > >
35 > > http://kerneltrap.org/node/view/3000
36 > > http://kerneltrap.org/node/view/3202
37 > >
38 > > Have a nice weekend and kind regards
39 > > floki
40 > >
41 > >
42 > > --
43 > > gentoo-performance@g.o mailing list
44 > >
45 >
46 >
47 >
48
49 --
50 gentoo-performance@g.o mailing list

Replies

Subject Author
Re: [gentoo-performance] swap? "Douglas Breault Jr." <GenKreton@×××××××.net>