Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2006 15:43:04 -0300 (ADT)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        Dmitry Morozovsky <marck@rinet.ru>
Cc:        Kostik Belousov <kostikbel@gmail.com>, freebsd-stable@freebsd.org
Subject:   Re: vmstat 'b' (disk busy?) field keeps climbing ...
Message-ID:  <20060625154247.N1114@ganymede.hub.org>
In-Reply-To: <20060625211510.D52500@woozle.rinet.ru>
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> <20060625164752.H52500@woozle.rinet.ru> <20060625105843.O1114@ganymede.hub.org> <20060625211510.D52500@woozle.rinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Jun 2006, Dmitry Morozovsky wrote:

> On Sun, 25 Jun 2006, Marc G. Fournier wrote:
>
> MGF> > Errm... It seems I turn you to the wrong side... Normal disk-locked
> MGF> > processes
> MGF> > have DL (DL+) state...  Well, then try something like
> MGF> >
> MGF> > ps ax -O ppid,flags,mwchan | awk '($6 ~ /^D/ || $6 == "STAT") && $3 !~
> MGF> > /^20.$/'
> MGF>
> MGF> Still nothing to show 4 blocked processes (where it is sitting right now):
> MGF>
> MGF> pluto# ps ax -O ppid,flags,mwchan | awk '($6 ~ /^D/ || $6 == "STAT") && $3
> MGF> !~ /^20.$/'
> MGF>   PID  PPID       F MWCHAN  TT  STAT      TIME COMMAND
>
> Hmm, which processes are in D state at all, then?
>
> ps ax -O ppid,flags,mwchan | awk '$6 ~ /^D/ || $6 == "STAT"'

# ps ax -O ppid,flags,mwchan | awk '$6 ~ /^D/ || $6 == "STAT"'
   PID  PPID       F MWCHAN  TT  STAT      TIME COMMAND
     2     0     204 -       ??  DL     0:22.83 [g_event]
     3     0     204 -       ??  DL     3:13.81 [g_up]
     4     0     204 -       ??  DL     4:10.38 [g_down]
     5     0     204 -       ??  DL     0:00.43 [thread taskq]
     6     0     204 -       ??  DL     0:00.00 [kqueue taskq]
     7     0     204 -       ??  DL     0:00.00 [acpi_task0]
     8     0     204 -       ??  DL     0:00.00 [acpi_task1]
     9     0     204 -       ??  DL     0:00.00 [acpi_task2]
    10     0     204 ktrace  ??  DL     0:00.00 [ktrace]
    15     0     204 -       ??  DL     0:37.74 [yarrow]
    25     0     204 psleep  ??  DL     0:36.57 [pagedaemon]
    26     0     204 psleep  ??  DL     0:00.00 [vmdaemon]
    27     0     20c pgzero  ??  DL     6:20.67 [pagezero]
    28     0     204 psleep  ??  DL     0:07.66 [bufdaemon]
    29     0     204 vlruwt  ??  DL     0:22.29 [vnlru]
    30     0     204 syncer  ??  DL     7:19.03 [syncer]
    31     0     204 sdflus  ??  DL     1:02.41 [softdepflush]
    36     0     204 -       ??  DL     3:20.45 [schedcpu]
87945 30418    4002 vnread  pa  DL+    0:00.00 awk $6 ~ /^D/ || $6 == "STAT"


----
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



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