[ltp] Discovering reading/writing processes

Florian Knobloch linux-thinkpad@linux-thinkpad.org
Fri, 20 Aug 2004 17:42:22 +0200


hello!

as root:
echo 1 > /proc/sys/vm/block_dump

und then check dmesg.

here it was

cupsd (had ssl enabled. generated a new certificate ever minute or so) and
cron (which had a job every 5 minutes or so)

it was easy to find the culprit part...

cu, flo

Loic Minier wrote:
>      Hi,
> 
>  I would like to see which processes are preventing my HD to spindown or
>  are bringing it up when it should sleep.
> 
>  Right now, I'm using :
>  watch -n 0 --differences=cumulative "lsof /boot / | awk '/COMMAND/
>  {print}; { if (\$5 ~ /REG/) if (\$4 ~ /[0-9]/) print }'"
> 
>  an dit helped identifying most processes writing to log files or
>  updating some state on disk.
> 
>  But I'm still searching for _the_ culprit, and I can't put my hand on
>  it...
> 
>  How do you track suck a process?
> 
>  (I know most people are running ext2 in laptop mode here, I personally
>  never tried laptop mode, and I'm using XFS.)
> 
>    Regards,
>