LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   View processes that are currently writing to disk? (https://www.linuxquestions.org/questions/linux-software-2/view-processes-that-are-currently-writing-to-disk-679554/)

crontab 10-28-2008 09:37 AM

View processes that are currently writing to disk?
 
Suppose your hard drive light was blinking constantly and there's still plenty of free memory on the system. There is also no swap in use. Is there a program that can list what processes are writing to the hard drives? Something similar to lsof, only for block devices?

There are no copy/move/rsync operations going, no cronjobs, no VMs running and no samba shares, which is what makes me curious.

Junior Hacker 10-29-2008 02:33 AM

Not sure about Linux, but in Windows, random/constant hard drive activity is usually caused by processes running in the background like update managers, reminders, etc. checking (reading) the drive for various reasons. If anything is being written it would probably be logs.
Sometimes the distribution's update manager is checking for OS updates also on a regular basis depending on settings.

syg00 10-29-2008 02:50 AM

syslog, ext3 with atime and/or diratime options, gnome ... sure to be other possibilities.
Try blktrace - used to need a fair bit of setup, but I think it's made it into the mainline now.


All times are GMT -5. The time now is 06:16 PM.