Hi all,
I have a fairly large ReiserFS (3) partition, sitting on top of Linux
software RAID-5. Over time, as the disk filled, write performance has
degraded to the point where if the disk is 95% full you basically
cannot write files to it anymore. Even at 90% full disk writes can
plummet to around 26KB/s (yes, kilobytes, not megabytes). That means
copying a 350MB file takes over 3 hours! Basically, the partition
can't even keep up with the transfer rate of a modem :(
The symptoms are CPU "system" time spikes to 95-99% and all
interactive tasks becomes very slow (normally system time for copying
files is under 5%). You can type into an xterm faster than the system
can keep up and it can take 30 seconds to move the cursor across the
desktop to click on an icon. CTRL-C'ing the file copy operation brings
everything back to life.
Using a fragmentation checker (fragck.pl http://forums.gentoo.org/viewtopic-p-3081971.html)
shows 95% of the files on the partition (350MB->8GB) have 5000 to
10000 fragments... which sounds extremely high. Running the only
defrag util I could find (http://ck.kolivas.org/apps/defrag/
defrag-0.06/) does improve things... but any time that script hits one
of the heavily fragemneted files the copying rate slows to around
25-50KB/s. I can't tell if it's a problem of reading a heavily
fragemented file... or writing the copy back out again (or both)
This is a 2.6.18.6 kernel system, and DMA is enabled with hdparm
(hdparm -Tt shows raw transfer rates of 30-45MB's for the individual
disks)
If anybody has suggestions of how to properly defrag ReiserFS... or
even suggestions on how to track down what the underlying problem
is... it would be very appreciated.
Thanks!
Mike
Replies