ZFS kmem_map too small.

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Nov 6 04:55:38 PST 2007

On Tue, Nov 06, 2007 at 11:20:34AM +0100, Borja Marcos wrote:
> On Nov 6, 2007, at 11:00 AM, Pawel Jakub Dawidek wrote:
> >>The machine has 6 hard disks configured as a raidz2 pool.
> >>
> >>Please let me know of any test anyone might need.
> >
> >If you use vm_kern.c.2.patch, can you show loader.conf and exact  
> >command
> >that can provke the panic?
> loader.conf:
> zfs_load="YES"
> vfs.root.mountfrom="zfs:pool/root"
> vm.kmem_size_max="1610612736"
> vm.kmem_size="1610612736"
> Y bumped up the vnodes as well, as suggested at the ZFS tuning Wiki.
> (/etc/sysctl.conf)
> kern.maxvnodes: 400000

The Wiki should be changed. Allow ZFS to autotune it, don't tune it by

> Anything else? (I just don't want to spam a big message with kernel  
> config, etc)

I asked about exact command to trigger the panic.

> When I did the tests I did not have a swap partition configured, but I  
> guess it shouldn't be
> related (4 GB is plenty of memory). Anyway I'm going to try again with  
> a swap partition today.
> (_Not_ on ZFS) so that I can get a kernel dump as well.

Yes, do not use swap on ZFS.

Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- 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-current/attachments/20071106/32590880/attachment.pgp

More information about the freebsd-current mailing list