From owner-freebsd-questions@FreeBSD.ORG Tue Nov 4 14:49:42 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB25D1065686 for ; Tue, 4 Nov 2008 14:49:42 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 9BA0C8FC1A for ; Tue, 4 Nov 2008 14:49:42 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1134818ywe.13 for ; Tue, 04 Nov 2008 06:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=RpS3XJAiHvWP0gZsYNlyW8gPZ+N+xCwsaHsnGhtzMyM=; b=dSPbNh3ZI+IJ+r3PjtrBXrt0w0n6PKQ4zkoJBr40KRL2hGEzkO7vsMmsmkZqelaQgA rGoFg4YslQmWidxeeUO9By7zb5+NCk2J2piXKphK3A7Gs3D2UfqmXyTssYcQVfoUCJaP 8JUoeBBvHtXQ5ls5sh0x1ZtXrtbuZUewSug/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=hPv/qISGxkpz+0Kw+dDGUNbglfDQ8cllFGui2FPfkIIUz0NS78GpFvARR8GPOgQSOz 0TFnEBhuakAigVbrI9H0rHZPjqLG56ei+nTghuAL6J4ypG8satK1071NKEO9BCXa68wY qwvklXTBRrmvZqUuxFvBOgOxDPTMkp5VxPPOQ= Received: by 10.142.43.7 with SMTP id q7mr831978wfq.11.1225810181267; Tue, 04 Nov 2008 06:49:41 -0800 (PST) Received: by 10.142.158.11 with HTTP; Tue, 4 Nov 2008 06:49:41 -0800 (PST) Message-ID: Date: Tue, 4 Nov 2008 12:49:41 -0200 From: "Eduardo Meyer" To: "Bill Moran" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081104091801.ff0297b0.wmoran@potentialtech.com> Cc: questions@freebsd.org Subject: Re: Disk top usage PIDs 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: Tue, 04 Nov 2008 14:49:43 -0000 On Tue, Nov 4, 2008 at 12:27 PM, Eduardo Meyer wrote: > On Tue, Nov 4, 2008 at 12:18 PM, Bill Moran wrote: >> In response to "Eduardo Meyer" : >>> >>> 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? >> >> top -m io -o total > > Great, thats exactly what I was looking for, thank you a lot Mr Moran. I see syncer (40%) and bufaemon (10%) and after that, imapd. The first ones are kernel PIDs (36 and 37). PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND 36 root 2 2 0 31 0 31 40.79% bufdaemon 37 root 2 2 0 16 0 16 21.05% syncer 71501 vmail 4 0 0 0 0 0 12.00% imapd I guess it a symptom of some hardware problems, kernel itself is not supposed to do this many I/O, right? Sometimes PID 39, softdepflush, is always on top 3. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br