Sunday, June 22, 2008

Linux open files

List open files by process

lsof -p processid

You can track which process is reading/writing the disk by doing:

echo 1 > /proc/sys/vm/block_dump

Then use 'dmesg' to tell you process is using the disk. Turn off tracking again with

echo 0 > /proc/sys/vm/block_dump

No comments: