Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 May 2011 16:32:30 +0200
From:      Olaf Seibert <O.Seibert@cs.ru.nl>
To:        freebsd-stable@freebsd.org
Subject:   Automatic reboot doesn't reboot
Message-ID:  <20110502143230.GW6733@twoquid.cs.ru.nl>

next in thread | raw e-mail | index | archive | help
Hi,

I have a FreeBSD/amd64 8.2 server that has a few ZFS file systems served
over NFS.  It has 8 GB of memory. There are 6 disks of 1,5 TB each
forming a pool with raidz2.

>From time to time it crashes with some stack backtrace (included below).
This already happened before the upgrade to 8.2.

Now a crash of a file server is annoying, but if it reboots
automatically, there is just a few minutes of downtime (most of it is
even spent by the BIOS before it gets to boot the OS).

However, it doesn't automatically reboot in 15 seconds, as promised.
It just sits there the whole weekend, until I log onto the IPMI console
and press the virtual reset button.

This was visible before I did that (4-finger copy):

panic: kmem_alloc(131072): kmem_map too small: 3428782080 total allocated
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff805f4e0e at kdb_backtrace+0x5e
#1 0xffffffff805c2d07 at panic+0x187
#2 0xffffffff80816830 at kmem_alloc+0
#3 0xffffffff8080e3ba at uma_large_malloc+0x4a
#4 0xffffffff805b0167 at malloc+0xd7
#5 0xffffffff80e87849 at zil_lwb_write_start+0x289
#6 0xffffffff80e87b92 at zil_commit+0x242
#7 0xffffffff80ea035d at zfs_sync+0xcd
#8 0xffffffff8065431a at sync_fsync+0x16a
#9 0xffffffff806524be at sync_vnode+0x15e
#10 0xffffffff806527b1 at sched_sync+0x1d1
#11 0xffffffff805994f8 at fork_exit+0x118
#11 0xffffffff8089547e at fork_trampoline+0xe
Uptime: 11d12h56m20s
Cannot dump. Device not defined or unavailable.
Automatic reboot in 15 seconds - press a key on the console to abort

and that is where it sat all weekend...

Why doesn't the promised reboot happen?


The kernel was still the GENERIC one as distributed with 8.2.
Because of the reboot it will now be the stripped down one that I
compiled myself.

There is some tuning in /boot/loader.conf from previous attempts tune to
avoid crashes.

vm.kmem_size="16G"
vfs.zfs.arc_max="4G"

Is that still useful, or does it harm by now? Real memory is 8 GB.
I note that if I look with sysctl, I see

vm.kmem_size: 3739230208
vfs.zfs.arc_max: 2665488384

which doesn't seem to match these attempted settings.

-Olaf.
-- 
Pipe rene = new PipePicture(); assert(Not rene.GetType().Equals(Pipe));



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