View Full Version : rapid disk r/w

22nd January 2005, 10:58 PM
I have a problem with my FC2. Some service is reading or writing on my disk and it's making my machine very slow. How do I find out witch service is accessing disk for rapid R/W?

22nd January 2005, 11:08 PM
It is the app called prelink (an elf prelinking utility) and is started in your cron files and runs everyday. Look up prelink on the internet for more info on it. I moved mine to run once a month or you can delete it completely. Read up on cron and should be very easy to do.

To move it is easy just goto /etc/cron.daily and move the file prelink script to /etc/cron.monthly. You should stop cron first then restart when done.

" Google the Linux way @ http://www.google.com/linux "

22nd January 2005, 11:15 PM
Nope it's not it. I killed the service and it's still doing it. Any other ideas ?

Void Main
22nd January 2005, 11:22 PM
What is the top CPU using processes (run "top")? There are a lot of things it could be but something that is doing a lot of writing will likely show up at the top of the list.

22nd January 2005, 11:23 PM
sometimes I use lsof to see what files are open, that might give you
a hint of what process is doing all the writing/reading. lsof shows what
files are open for what processes. Also try to use top, likely the io hog is
also using a lot of cpu and will rise to the top of the screen or at least
the wall clock time on the process will be a hint.

22nd January 2005, 11:24 PM
Check your processes when it is doing that and see what is hogging the cpu. Let us know what it is.

" Google the Linux way @ http://www.google.com/linux "

22nd January 2005, 11:42 PM
3345 root 15 0 86552 44m 6972 D 3.6 48.4 49:58.56 mlnet

mldonkey starts using up memory and reading / writeing to disk.
But mldonkey is set to write to other (SCSI)disk no the one that is always r/w (IDE ata100).
I'm confused :confused:

22nd January 2005, 11:47 PM
Here are the disk partitions

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 5.8G 2.9G 2.7G 53% /
/dev/hda1 97M 6.0M 86M 7% /boot
none 47M 0 47M 0% /dev/shm
/dev/sda1 4.0G 444M 3.3G 12% /home
/dev/hda5 49G 38G 9.4G 80% /home/_storage
/dev/sda2 4.5G 365M 3.9G 9% /home/_storage/Project
/dev/sdb1 8.4G 288M 7.7G 4% /home/_www

hda - the disk where rapid r/w is occured
sda1 - mldonkey storage


Void Main
22nd January 2005, 11:52 PM
Well, if you kill it does the activity stop? If so it's not configured the way you think it is.

23rd January 2005, 12:01 AM
I killed it and the activity stoped for both disks. I checked configuration again. mlnet is set in home dir and it's downlodeing to home dir (sda1). But why is it using hda? When I restarted it the activity is gone in hda, like it should be. Activity on hda starts again after a long time random. Now that i know what is the source i'll try to fix it. Thx for the help.

23rd January 2005, 02:26 AM
It may be using /tmp for temporary files.