From owner-freebsd-stable@FreeBSD.ORG Sat Jun 24 18:27:25 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C24FF16A4AB for ; Sat, 24 Jun 2006 18:27:25 +0000 (UTC) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11DB843D58 for ; Sat, 24 Jun 2006 18:27:25 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (mx1.hub.org [200.46.208.251]) by hub.org (Postfix) with ESMTP id 9ED03290C29; Sat, 24 Jun 2006 15:27:22 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 20710-02; Sat, 24 Jun 2006 15:27:24 -0300 (ADT) Received: from ganymede.hub.org (blk-7-151-244.eastlink.ca [71.7.151.244]) by hub.org (Postfix) with ESMTP id 26F6E290C1E; Sat, 24 Jun 2006 15:27:22 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1000) id C3398486BF; Sat, 24 Jun 2006 15:27:24 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id BCFF73C5C4; Sat, 24 Jun 2006 15:27:24 -0300 (ADT) Date: Sat, 24 Jun 2006 15:27:24 -0300 (ADT) From: "Marc G. Fournier" To: Dmitry Morozovsky In-Reply-To: <20060624221556.O30039@woozle.rinet.ru> Message-ID: <20060624152525.D1114@ganymede.hub.org> References: <20060623172557.H1114@ganymede.hub.org> <261AD16B-C3FE-4671-996E-563053508CE8@mac.com> <20060624022227.X1114@ganymede.hub.org> <20060624115505.E14669@woozle.rinet.ru> <20060624090656.GB79678@deviant.kiev.zoral.com.ua> <20060624145432.A1114@ganymede.hub.org> <20060624221556.O30039@woozle.rinet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Kostik Belousov , freebsd-stable@freebsd.org Subject: Re: vmstat 'b' (disk busy?) field keeps climbing ... 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: Sat, 24 Jun 2006 18:27:25 -0000 On Sat, 24 Jun 2006, Dmitry Morozovsky wrote: > On Sat, 24 Jun 2006, Marc G. Fournier wrote: > > MGF> > > MGF> is there a way of finding out what processes are blocked? > MGF> > > > MGF> > > Aren't they in 'D' status by ps? > MGF> > Use ps axlww. In this way, at least actual blocking points are shown. > MGF> > MGF> 'k, stupid question then ... what am I searching for? > MGF> > MGF> # ps axlww | awk '{print $9}' | sort | uniq -c | sort -nr > > Well, try > > ps axlww | awk '$10 ~ /^D[^L]/' > > which should give you a list of blocked-in-uninterruptible-syscall processes > excluding kernel threads... Nadda: pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# yet vmstat shows 4: 0 4 0 7248532 229668 545 0 0 0 735 0 5 0 365 3308 1529 15 8 78 0 4 0 7239388 222364 127 8 2 0 158 0 27 0 412 2324 1075 8 5 87 if I do it repeatedly, fairly often, I can occasionally get one or two: pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' 0 18886 1 0 96 0 10316 5968 proctr DsJ ?? 0:02.81 /usr/local/sbin/httpd 0 19673 1 0 96 0 13776 6688 proctr DsJ ?? 0:02.88 /usr/local/sbin/httpd -DSSL 0 46540 46538 1 8 0 5020 2396 ppwait Ds p4 0:00.07 -csh (csh) pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' 0 55163 55160 6 96 0 0 8 proctr DE ?? 0:00.00 uptime 0 46540 46538 1 96 0 5020 2396 proctr Ds p4 0:00.07 -csh (csh) pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' 0 46540 46538 40 8 0 5020 2396 ppwait Ds p4 0:00.08 -csh (csh) pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' pluto# ps axlww | awk '$10 ~ /^D[^L]/' But its definitely not 'a consistent 4' ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664