Re: Swap or I/O Improvement in Fedora 8?



On Wed, 27 Feb 2008 01:33:45 +0800, LaBird wrote:

Hi,

"General Schvantzkopf" <schvantzkopf@xxxxxxxxx> wrote in message
news:Rr2dnfrmLsM6xF7anZ2dnUVZ_gidnZ2d@xxxxxxxxxxxxxx

When you do a free how much of your swap space is used with F7 and F8?


Thanks for your help first.
Do you mean after running the program? I need to collect it then. When I
boot up using the same machine (Athlon64 Dual Core), both versions do
not eat up any swap space, but the memory usage is different:

F7(64-bit):
Mem: (Total) 1930264 (Used) 237968 (Free) 1692296 (Shared) 0 (Buffers)
11264 (Cached) 120424
-/+ buffers/cache: (Used) 106280 (Free) 1823984 Swap: (Total) 33551712
(Used) 0 (Free) 33551712

F8(64-bit):
Mem: (Total) 1933196 (Used) 127240 (Free) 1805956 (Shared) 0 (Buffers)
7696 (Cached) 46952
-/+ buffers/cache: (Used) 72592 (Free) 1860604 Swap: (Total) 33551712
(Used) 0 (Free) 33551712

Both are booted using runlevel 3, but seems the values do change every
time, except for the swap usage.

Best Regards,
LaBird (Benny).
[Email: Remove all underscores to get the correct address.]

Yes I mean when running the program, if you were using any swap space
after a boot it would be game over.

Swapping is a function of the kernel and both F7 and F8 are running a
2.6.23 kernel. It's possible that there is some patch that they've
applied to the F8 kernel that changes the memory management algorithm.

An experiment that you could try is to use your own kernel. Download the
latest kernel from kernel.org then copy the .config file from

/usr/src/kernels/2.6.23.15-137.fc8-x86_64/.config

do a

make gconfig
which will bring up the configuration GUI and let you make any changes
that you want.

Then do

make -j 2
make modules_install
make install

Do it on both F7 and F8. This will give you identical kernels on both
systems. You could also try the 2.6.24 kernel vs a 2.6.23, it's possible
that RH used a memory management patch on the 2.6.23 F8 kernel that's now
in the mainstream .24 kernel.
.



Relevant Pages

  • RE: swap space size
    ... Right, from what I have read, the kernel will just start killing processes ... Subject: swap space size ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: System hangs on running kernbench
    ... This was on a 8-cpu machine with no swap space ... a kernel bug could cause tasks to be delayed and thus let the make -j ... leading to OOM killings. ... workloads where _reducing_ the granularity would result in an effective ...
    (Linux-Kernel)
  • Re: swap on a lv for hibernation
    ... actually gets used for swap space? ... before I can do swapon -av again. ... I'm *NOT* using the stock Ubuntu kernel! ...
    (Ubuntu)
  • Re: Maximum x86 swap partition size ?
    ... > Any reason you haven't responded? ... Swap space starts with a header that lists the bad blocks. ... natural object for a kernel developer, it is not in user space. ...
    (Linux-Kernel)
  • Re: freeze with swap on dm-crypt on smp system (v2.6.18-g23541d2)
    ... The computer has a dual core amd64 with 1GB ram and 3GB swap space, ... still responds to ping/sysrq but killing all processes with sysrq does ... I found that enabling this options from 'Kernel hacking' helps, ...
    (Linux-Kernel)