Subject: kern/13837: panic: lfs_nextseg: no clean segments
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gendalia@iastate.edu>
List: netbsd-bugs
Date: 08/30/2001 20:50:12
>Number:         13837
>Category:       kern
>Synopsis:       panic: lfs_nextseg: no clean segments
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 30 18:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tracy Di Marco White
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD lyra 1.5.1_BETA2 NetBSD 1.5.1_BETA2 (LYRA) #0: Sun Jun 10 18:35:24 CDT 2001 root@lyra:/usr/src/sys/arch/i386/compile/LYRA i386

Large RAID5, small partition.

>Description:
Running bonnie to do some benchmark testing, around 17:30 I hit ^C and did
an rm -r on bonnie's tmp file:
Aug 30 15:48:05 lyra lfs_cleanerd[1645]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:05 lyra /netbsd: pid 1645 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:06 lyra /netbsd: pid 1650 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:05 lyra lfs_cleanerd[1650]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:06 lyra lfs_cleanerd[1651]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:06 lyra /netbsd: pid 1651 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:06 lyra /netbsd: pid 1652 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:06 lyra lfs_cleanerd[1652]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:06 lyra lfs_cleanerd[1653]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:06 lyra /netbsd: pid 1653 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:07 lyra lfs_cleanerd[1654]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:07 lyra /netbsd: pid 1654 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:07 lyra lfs_cleanerd[1655]: mmap_segment: malloc failed: Cannot allocate memory
Aug 30 15:48:07 lyra /netbsd: pid 1655 (lfs_cleanerd), uid 0: exited on signal 11 (core dumped)
Aug 30 15:48:07 lyra lfs_cleanerd: /mnt3: cleanerd looping, exiting
Aug 30 15:48:07 lyra lfs_cleanerd: /mnt3: cleanerd looping, exiting
Aug 30 15:54:37 lyra /netbsd: lfs_fits: no fit: db = 128, uinodes = 1, needed = 225, avail = 195
Aug 30 15:54:37 lyra /netbsd: lfs_reserve: waiting for 128 (bfree = 1016030, est_bfree = 864763)
Aug 30 17:38:28 lyra /netbsd: lfs_fits: no fit: db = 32, uinodes = 0, needed = 129, avail = 66
Aug 30 17:38:28 lyra /netbsd: lfs_availwait: out of available space, waiting on cleaner
Aug 30 17:38:31 lyra /netbsd: lfs_fits: no fit: db = 192, uinodes = 2, needed = 289, avail = 34
Aug 30 17:38:31 lyra /netbsd: lfs_reserve: waiting for 192 (bfree = 1015997, est_bfree = 864691)
<panic, rebooted>
Aug 30 19:45:18 lyra savecore: reboot after panic: lfs_nextseg: no clean segments
Aug 30 19:45:18 lyra savecore: reboot after panic: lfs_nextseg: no clean segments

I have a core, bt only shows:
#0  0xc02ccd68 in db_last_command ()
#1  0x3fc1000 in ?? ()
#2  0xc02458f7 in cpu_reboot ()
#3  0xc0118759 in db_sync_cmd ()
#4  0xc0118380 in db_command ()
#5  0xc0118522 in db_command_loop ()
#6  0xc011b2b6 in db_trap ()
#7  0xc0243810 in kdb_trap ()
#8  0xc0249dcc in trap ()
#9  0xc0100d09 in calltrap ()
#10 0xc02248da in lfs_writefile ()
#11 0xc02247a1 in lfs_segwrite ()
#12 0xc02292ce in lfs_sync ()
#13 0xc01a2924 in sys_sync ()
#14 0xc01a1854 in vfs_shutdown ()
#15 0xc02458cf in cpu_reboot ()
#16 0xc01874ed in panic ()
#17 0xc0225a7d in lfs_newseg ()
#18 0xc0225736 in lfs_initseg ()
#19 0xc02264e4 in lfs_writeseg ()
#20 0xc0225061 in lfs_gatherblock ()
#21 0xc0225236 in lfs_gather ()
#22 0xc02249c8 in lfs_writefile ()
#23 0xc02247a1 in lfs_segwrite ()
#24 0xc02292ce in lfs_sync ()
#25 0xc01af597 in sync_fsync ()
#26 0xc01af2c9 in sched_sync ()

>How-To-Repeat:
fill up an LFS file system, I assume
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: