Subject: netbsd-4: processes looping in "lfsresbuf"
To: NetBSD current-users <current-users@NetBSD.org>
From: Paul Ripke <stix@stix.id.au>
List: current-users
Date: 09/28/2007 12:39:20
I'm testing out a new box, Core2 Quad, with builds on an lfs
filesystem. The filesystem hit 90% capacity, and things appear
to have gone south. This is netbsd-4 branch as of this morning,
with i386 GENERIC.MP kernel. Was running a:
  nice ./build.sh -u -j 8 release
The disk is pretty much dead idle. Known issue? Anything I
can grab?

load averages:  0.03,  0.03,  0.11                  up 0 days, 23:06   11:35:19
101 processes: 1 runnable, 99 sleeping, 1 on processor
CPU0 states:  0.0% user,  0.0% nice, 10.8% system,  5.2% interrupt, 84.0% idle
CPU1 states:  0.0% user,  0.0% nice, 14.9% system,  0.0% interrupt, 85.1% idle
CPU2 states:  0.0% user,  0.0% nice,  9.6% system,  0.0% interrupt, 90.4% idle
CPU3 states:  0.0% user,  0.0% nice,  8.1% system,  0.0% interrupt, 91.9% idle
Memory: 1074M Act, 565M Inact, 4772K Wired, 11M Exec, 1482M File, 88M Free
Swap: 4096M Total, 4096M Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
22963 stix      48   10   760K  684K lfsres/3   8:21  7.86%  7.86% as
16008 stix      48   10   764K  688K lfsres/2   8:18  7.76%  7.76% as
17366 stix      48   10   760K  684K lfsres/0   8:20  7.57%  7.57% as
  418 root       2    0  2268K 1932K select/0   4:42  4.74%  4.74% gkrellmd
 4049 stix       2   10   804K 1364K poll/1     0:11  0.98%  0.98% nbmake
  549 stix       2    0    48M   20M select/0   4:35  0.54%  0.54% screen-4.0.3
  856 root      18    0   956K 3568K RUN/0      1:18  0.39%  0.39% ntpd
  665 root     -18    0     0K   23M lfswri/0   5:15  0.24%  0.24% [lfs_writer]
   19 root     -18    0     0K   23M aiodon/0   1:09  0.05%  0.05% [aiodoned]
20597 stix       2   10    17M   17M poll/1     0:15  0.05%  0.05% nbmake
27194 stix       2   10   588K 1288K poll/3     0:15  0.05%  0.05% nbmake
   18 root      18    0     0K   23M syncer/0   4:57  0.00%  0.00% [ioflush]
  750 stix       3    0   532K 1244K ttyin/0    0:33  0.00%  0.00% sysstat
  197 stix      28    0   480K 1180K CPU/0      0:31  0.00%  0.00% top
  700 root      -2    0    20M   19M segmen/2   0:23  0.00%  0.00% lfs_cleanerd

hex:ksh$ df -k
Filesystem       1K-blocks      Used     Avail Capacity  Mounted on
/dev/wd0a           127463     36662     84428    30%    /
/dev/wd0f           127463      2965    118125     2%    /var
/dev/wd0e          2064990    336238   1625504    17%    /usr
tmpfs              5794336       684   5793652     0%    /tmp
/dev/wd0h         16440692  13374952   1419911    90%    /l
kernfs                   1         1         0   100%    /kern
zion:/export     233161422 140084280  81419072    63%    /export
zion:/usr/netbsd  29701212  16763140  11453012    59%    /usr/netbsd
zion:/usr/pkg     29701212  16763140  11453012    59%    /usr/pkg
zion:/usr/pkgsrc  29701212  16763140  11453012    59%    /usr/pkgsrc
/dev/wd0g         17137326         2  16280458     0%    /u
zion:/usr/local   29701212  16763140  11453012    59%    /usr/local

hex:ksh$ mount
/dev/wd0a on / type ffs (local)
/dev/wd0f on /var type ffs (local)
/dev/wd0e on /usr type ffs (local)
tmpfs on /tmp type tmpfs (local)
/dev/wd0h on /l type lfs (local)
kernfs on /kern type kernfs (local)
zion:/export on /export type nfs
zion:/usr/netbsd on /usr/netbsd type nfs
zion:/usr/pkg on /usr/pkg type nfs
zion:/usr/pkgsrc on /usr/pkgsrc type nfs
/dev/wd0g on /u type ffs (soft dependencies, local)
zion:/usr/local on /usr/local type nfs

hex:ksh$ ps alx | egrep 'lfs|vnl'  
    0   665     0     0 -18  0     0 23844 lfswrite DK   ?      7:06.44 [lfs_writer]
    0   700     1   807  -2  0 20464 19480 segment  Is   ?      0:23.61 /libexec/lfs_cleanerd -b -n 4 /l 
20008 26787   557     0   2  0   164   680 piperd   S+   ttyp2  0:00.00 egrep lfs|vnl 
20008  3067 10378 69529  -2 10   760   612 vnlock   DN   ttyp3  0:00.00 /l/netbsd/netbsd-4/tools.i386/lib/gcc/i386--net
20008 10998 28733 65569  -2 10   760   612 vnlock   DN   ttyp3  0:00.00 /l/netbsd/netbsd-4/tools.i386/lib/gcc/i386--net
20008 15772  7303 69529  -2 10  4856  1792 vnlock   DN   ttyp3  0:00.38 /l/netbsd/netbsd-4/tools.i386/libexec/gcc/i386-
20008 16008 27496  2429  49 10   764   688 lfsresbu SN   ttyp3 11:40.36 /l/netbsd/netbsd-4/tools.i386/lib/gcc/i386--net
20008 17366 20322  5820  28 10   760   684 lfsresbu SN   ttyp3 11:41.98 /l/netbsd/netbsd-4/tools.i386/lib/gcc/i386--net
20008 20539  5326 65794  -2 10   760   612 vnlock   DN   ttyp3  0:00.00 /l/netbsd/netbsd-4/tools.i386/lib/gcc/i386--net
20008 22963 28288  2615  49 10   760   684 lfsresbu SN   ttyp3 11:46.60 /l/netbsd/netbsd-4/tools.i386/lib/gcc/i386--net
20008 24429  9714 69529  -2 10  5120  3108 vnlock   DN   ttyp3  0:00.51 /l/netbsd/netbsd-4/tools.i386/libexec/gcc/i386-

-- 
stix