What's using the disk so much?

2006-10-25 Thread Patrik Jansson

Hi,
vmstat reports that quite a few processes are waiting for io (disk access)
so I ran gstat to see how much the drive is working and it says more or
less 100% constantly.
How can I determine which process (if it's mostly one single process) is
using the disk so much? top says the CPU is mostly idle.

Thanks,
-Patrik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's using the disk so much?

2006-10-25 Thread Nikos Vassiliadis
On Wednesday 25 October 2006 15:03, Patrik Jansson wrote:
 Hi,
 vmstat reports that quite a few processes are waiting for io (disk access)
 so I ran gstat to see how much the drive is working and it says more or
 less 100% constantly.
 How can I determine which process (if it's mostly one single process) is
 using the disk so much? top says the CPU is mostly idle.

use top -m io

Nikos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's using the disk so much?

2006-10-25 Thread Bill Moran
In response to Patrik Jansson [EMAIL PROTECTED]:

 Hi,
 vmstat reports that quite a few processes are waiting for io (disk access)
 so I ran gstat to see how much the drive is working and it says more or
 less 100% constantly.
 How can I determine which process (if it's mostly one single process) is
 using the disk so much? top says the CPU is mostly idle.

In top, hit the 'm' key and it will switch to an IO view that shows
per-process IO usage.

This feature of top was added some time after 4.X.

-- 
Bill Moran
Collaborative Fusion Inc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's using the disk so much?

2006-10-25 Thread Jonathan Arnold

Patrik Jansson wrote:

Hi,
vmstat reports that quite a few processes are waiting for io (disk access)
so I ran gstat to see how much the drive is working and it says more or
less 100% constantly.
How can I determine which process (if it's mostly one single process) is
using the disk so much? top says the CPU is mostly idle.


Check out the port sysutils/lsof

--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
http://freebsd.amazingdev.com/blog/

UNIX is user-friendly. It's just a bit picky about who its friends are.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What's using the disk so much?

2006-10-25 Thread Patrik Jansson



Hi,
vmstat reports that quite a few processes are waiting for io (disk access)
so I ran gstat to see how much the drive is working and it says more or
less 100% constantly.
How can I determine which process (if it's mostly one single process) is
using the disk so much? top says the CPU is mostly idle.


use top -m io

I have completly missed that option, thanks.
I will also checkout sysustils/lsof which J.A. recommended.

-Patrik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]