What denotes a 'blocked' process?

Kostik Belousov kostikbel at gmail.com
Mon Jun 26 20:05:24 UTC 2006


On Mon, Jun 26, 2006 at 12:44:17PM -0300, Marc G. Fournier wrote:
> On Mon, 26 Jun 2006, Marc G. Fournier wrote:
> 
> >
> >Just upgraded to June 15th sources, started up all the processes, and am 
> >already at 29 blocked processes ...
> >
> >I've checked for states D, E and L ... nothing ...
> >
> >Actually, let's go one better ... attached is a complete list of my 
> >process table (MWCHAN, STATE, COMMAND) ... right now, vmstat is showing:
> >
> >1 33 0 6381952 177944 1695   0   0   0 1601   0   1   0  416 50012 1657 14 
> >14 72
> >1 33 2 6376440 181744 2013   0   0   0 2172   0   3   0  448 68528 1629 17 
> >15 68
> >4 33 0 6385484 178364 1944   0   3   0 1758   0   8   0  420 57698 1221 17 
> >14 69
> >23 46 0 6463664 149528 5294  29   4   2 4659   0  37   0  505 44758 3040 
> >27 28 45
> >4 34 1 6424904 169660 4216  16   7   0 4047   0 211   0 1002 47502 5769 42 
> >30 28
> >1 35 0 6453992 167388 2414   0   9   0 2265   0  44   0  535 62932 3160 18 
> >18 64
> >7 33 0 6443672 168100 1642   0   0   0 1652   0   5   0  448 51974 2163 15 
> >15 70
> >
> >So, according to this, there should be 33 processes blocked somewhere ... 
> >STATEs D/E/L all show nothing ... even state R (long shot) is showing 3-4 
> >processes, and that's it ...
> >
> >This kernel is actually worse then the last, in that the last, on a 
> >reboot, I'd see 4-5 blocked, and then it would slowly rise over the course 
> >of 24 hours, not start at 33 and rise from there ...
> 
> Wow, in less then 1 hour, I'm up to 60 blocked, barely 1 runnable:
> 
>  0 60 0 7016076 187424 2527   0   0   0 1722   0   5   0  320 7921 2140 24 
>  19 57
>  0 60 0 7027436 185124  581   0   1   0 428   0   9   0  303 3214 2425  5  
>  9 86
>  0 60 0 7053368 183060  217   4   1   0 130   0  71   0  453 1748 1157  6  
>  4 90
>  1 60 1 7050848 183556    4   0   0   7  27   0  21   0  307  965 857  1  4 
>  94
>  0 60 2 7050860 183652    2   0   0   0   6   0   0   0  256  829 1030  2  
>  3 95
>  0 60 0 7051028 183348   28   1   2   0  11   0   3   0  307  944 855  3  3 
>  95
>  0 60 1 7056876 182248  136   0   0   0  66   0   8   0  285 1190 945  1  4 
>  95
> 
> And nadda in ps:
> 
> pluto# ps ax -O ppid,flags,mwchan | awk '$6 ~ /^D/ || $6 == "STAT"' ; ps 
> aux | wc -l
>   PID  PPID       F MWCHAN  TT  STAT      TIME COMMAND
>     2     0     204 -       ??  DL     0:00.45 [g_event]
>     3     0     204 -       ??  DL     0:04.87 [g_up]
>     4     0     204 -       ??  DL     0:06.19 [g_down]
>     5     0     204 -       ??  DL     0:00.00 [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:00.68 [yarrow]
>    25     0     204 psleep  ??  DL     0:00.70 [pagedaemon]
>    26     0     204 psleep  ??  DL     0:00.00 [vmdaemon]
>    27     0     20c pgzero  ??  DL     0:14.43 [pagezero]
>    28     0     204 psleep  ??  DL     0:00.14 [bufdaemon]
>    29     0     204 vlruwt  ??  DL     0:00.15 [vnlru]
>    30     0     204 syncer  ??  DL     0:10.29 [syncer]
>    31     0     204 sdflus  ??  DL     0:00.68 [softdepflush]
>    32     0     204 -       ??  DL     0:03.28 [schedcpu]
>     1170
> pluto# ps ax -O ppid,flags,mwchan | awk '$6 ~ /^E/ || $6 == "STAT"' ; ps 
> aux | wc -l
>   PID  PPID       F MWCHAN  TT  STAT      TIME COMMAND
>     1174
> pluto# ps ax -O ppid,flags,mwchan | awk '$6 ~ /^L/ || $6 == "STAT"' ; ps 
> aux | wc -l
>   PID  PPID       F MWCHAN  TT  STAT      TIME COMMAND
>    12     0     20c Giant   ??  LL     0:08.16 [swi4: clock]
>     1170
> pluto#
> 
> Something *has* to be leaking here somewhere ... :(

Dumb unmotivated question: do you have nfs exports on this machine ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060626/2fd3cb15/attachment.pgp


More information about the freebsd-stable mailing list