lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectrsync kills 2.4.1X, also -ac and 2.4.18-rc4+XFS.
Hello,

I have some tough stuff to debug for VM hackers.

I "killed" my kernel (it was just swapping and otherwise irresponsive)
with just aborting rsync v2.5.2.

0. Hardware: Single Duron 700, 320 MB RAM, 1.5 GB swap distributed over
some disks. One SCSI (Fujitsu, attached to SYM53C875) holding the
system (LVM), three IDE (Maxtor and IBM) holding data (no LVM,
attached to VIA KT133). -ac kernels were compiled with gcc 2.95.3,
not sure about SuSE's kernel.

1. Use rsync v2.5.2 to copy some files from one partition (reiserfs, on
IDE) to another partition (ext3).

2. Watch the kernel nicely use all free RAM for Cache, no swap.

3. While rsync is sill running, press Ctrl+C.

4. Now watch how the kernel turns CACHE into USED RAM (xosview), starts
swapping like hell (page out is high, swaps like 100 MB in just some few
seconds) and makes the machine unusable.

Careful, save your data before you try this!

With 2.4.18-pre9-ac3 + Morton's Mini-LL patch, I was able to do "swapoff
-av" to have the machine recover in some minutes' time, with 2.4.18-rc4
or with 2.4.19-pre1-ac2 without LL patch, no way to get a single
character into my xterm.

Using GNU cp v4.1 instead of rsync v2.5.2 does not exhibit this
behaviour, but I'm not sure what rsync does that messes the kernel.
Initially, I thought it was related to rmap, but I cannot find hints
that Hubert's kernel uses rmap. I didn't get around to try -aa kernels
yet. Will do later unless someone has a fix until then ;-)

Some bug must lurk in the kernel which lets rsync wreak havoc with the
memory management.

--
Matthias Andree

GPG encrypted mail welcome, unless it's unsolicited commercial email.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:21    [W:0.054 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site