job.answiz.com
  • 4
Votes
name
name Punditsdkoslkdosdkoskdo

Find out what procedures are writing to hard drive

On my Lenovo T400 and Ubuntu, the light for hard drive writing keeps flashing. I was wondering if in Linux it is possible to find out what processes are doing I/O to the hard drive? Just like by top, you can find out what processes are using most CPU and memory.

name
  • 0
iotop -bktoqqq -d .5

where: -b     is batch mode
       -k     is kilobytes/s
       -t     adds timestamp
       -o     only show processes or threads actually doing I/O
       -qqq   removes output headers
       -d .5  updates every .5 seconds

Once you have the process id, you can also find the files with

 lsof -p $PID
  • 0
Reply Report