From owner-freebsd-stable@FreeBSD.ORG Tue Nov 4 17:03:46 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E88E5106564A; Tue, 4 Nov 2008 17:03:46 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mx.egr.msu.edu (surfnturf.egr.msu.edu [35.9.37.164]) by mx1.freebsd.org (Postfix) with ESMTP id BCA6D8FC2F; Tue, 4 Nov 2008 17:03:46 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from localhost (localhost [127.0.0.1]) by mx.egr.msu.edu (Postfix) with ESMTP id 25A1B71FD2D; Tue, 4 Nov 2008 11:47:32 -0500 (EST) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mx.egr.msu.edu ([127.0.0.1]) by localhost (surfnturf.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xWtZtZusDQgN; Tue, 4 Nov 2008 11:47:32 -0500 (EST) Received: from [35.9.44.65] (daemon.egr.msu.edu [35.9.44.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mcdouga9) by mx.egr.msu.edu (Postfix) with ESMTPSA id 0346D71FD2B; Tue, 4 Nov 2008 11:47:32 -0500 (EST) Message-ID: <49107CA1.5090309@egr.msu.edu> Date: Tue, 04 Nov 2008 11:47:29 -0500 From: Adam McDougall User-Agent: Thunderbird 2.0.0.17 (X11/20080926) MIME-Version: 1.0 To: Eduardo Meyer References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@freebsd.org, questions@freebsd.org Subject: Re: Disk top usage PIDs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 17:03:47 -0000 Eduardo Meyer wrote: > Hello, > > I have some serious issue. Sometimes something happens and my disk > usage performance find its limit quickly. I follow with gstat and > iostat -xw1, and everything usually happens just fine, with %b around > 20 and 0 to 1 pending i/o request. Suddely I get 30, 40 pending > requests and %b is always on 100% (or more than this). > > fstat and lsof gives me no hint, because the type of programs as well > as the amount of 'em is just the same. > > How can I find the PID which is hammering my disk? Is there an "iotop" > or "disktop" tool or something alike? > > Its a mail server. I have pop3, imap, I also have maildrop and > sometimes, httpd, working around the busiest mount point. > > I have also started AUDIT, however all I can get are the top PIDs > which issue read/write requests. Not the requests which take longer to > perform (the busiest ones), or should I look for some special audit > class or event other than open, read and write? > > Thank you in advance. > > top -mio