Freebsd – Identify which process is responsible for heavy disk i/o under FreeBSD

command-line-interfacefreebsdhard driveiotop

I wonder how I can monitor which process takes out all my IO bandwith.
The only command i know is gstat but it shows cumulative info.
Is there any tools i can use to inspect the running processes for their io usage?
The system is FreeBSD 8.3

Thank you

Best Answer

You can use FreeBSD top to achieve this.

While running top interactively, press m.

According to top man page :


       m      Toggle the display between 'cpu' and 'io' modes.

Of course, this tip won't work under linux as linux top and bsd top are different programs.