Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2006 16:56:52 +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:  <20060625164752.H52500@woozle.rinet.ru>
In-Reply-To: <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> <20060624152525.D1114@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> 'k, stupid question then ... what am I searching for?
MGF> > MGF>
MGF> > MGF> # ps axlww | awk '{print $9}' | sort | uniq -c | sort -nr
MGF> > 
MGF> > Well, try
MGF> > 
MGF> > ps axlww | awk '$10 ~ /^D[^L]/'
MGF> > 
MGF> > which should give you a list of blocked-in-uninterruptible-syscall
MGF> > processes
MGF> > excluding kernel threads...
MGF> 
MGF> Nadda:
MGF> 
MGF> pluto# ps axlww | awk '$10 ~ /^D[^L]/'

Errm... It seems I turn you to the wrong side... Normal disk-locked processes 
have DL (DL+) state...  Well, then try something like

ps ax -O ppid,flags,mwchan | awk '($6 ~ /^D/ || $6 == "STAT") && $3 !~ /^20.$/'


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?20060625164752.H52500>