NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
per-process iostat?
Any tool to analyze per-process i/o statistics?
I heard my disks a lot and was wondering what caused activity.
I wrote a simple script to take a hundred samples of all my processes'
total blocks read, total blocks written, total swaps in/out, total
voluntary context switches, and pageins.
I sorted it and ran uniq and found elinks was writing to disk a lot:
PID INBLK OUBLK NSWAP NVCSW PAGEIN COMMAND
20440 447 276293 0 1155795 2685 elinks
20440 447 276300 0 1155813 2685 elinks
...
20440 447 276450 0 1156353 2685 elinks
20440 447 276457 0 1156371 2685 elinks
...
20440 447 276490 0 1156469 2685 elinks
20440 447 276497 0 1156487 2685 elinks
20440 447 276497 0 1156489 2685 elinks
I killed elinks and I will later research to see what it was doing. I
hadn't used it in a several hours.
Any suggestions for tools that can already show per-process I/O statistics
or other analysis?
(I may write an awk tool to compare increases of certain stats.)
Jeremy C. Reed
Home |
Main Index |
Thread Index |
Old Index