Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2006 22:17:07 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        Kostik Belousov <kostikbel@gmail.com>, freebsd-stable@freebsd.org
Subject:   Re: vmstat 'b' (disk busy?) field keeps climbing ...
Message-ID:  <20060624221556.O30039@woozle.rinet.ru>
In-Reply-To: <20060624145432.A1114@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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...


Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060624221556.O30039>