From owner-freebsd-questions@FreeBSD.ORG Wed Oct 25 12:42:08 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E2EB16A417 for ; Wed, 25 Oct 2006 12:42:08 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BC2943D66 for ; Wed, 25 Oct 2006 12:42:06 +0000 (GMT) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gci4n-0005Jr-BQ for freebsd-questions@freebsd.org; Wed, 25 Oct 2006 14:41:45 +0200 Received: from c-24-147-85-158.hsd1.ma.comcast.net ([24.147.85.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Oct 2006 14:41:45 +0200 Received: from jdarnold by c-24-147-85-158.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Oct 2006 14:41:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Jonathan Arnold Date: Wed, 25 Oct 2006 08:41:35 -0400 Lines: 16 Message-ID: References: <453F5299.6060104@aleborg.se> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-24-147-85-158.hsd1.ma.comcast.net User-Agent: Thunderbird 1.5.0.5 (X11/20060804) In-Reply-To: <453F5299.6060104@aleborg.se> Sender: news Subject: Re: What's using the disk so much? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 12:42:08 -0000 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:jdarnold@buddydog.org) 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.