Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2007 18:01:48 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Martijn Plak <martijn@plak.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS kmem_map too small.
Message-ID:  <20071107170147.GN15618@garage.freebsd.pl>
In-Reply-To: <5ED261E6-A85A-4D7D-A01A-4688802FECB9@plak.net>
References:  <20071005000046.GC92272@garage.freebsd.pl> <20071008121523.GM2327@garage.freebsd.pl> <20071105215035.GC26730@heff.fud.org.nz> <2e77fc10711051531k41e7224dq6aaedb35cad8d9f2@mail.gmail.com> <6214AB9C-9F9B-4B9D-8B05-0B3DF5F6C16D@SARENET.ES> <20071106100015.GB5268@garage.freebsd.pl> <9A147CEC-D5E6-4117-8C69-16E40DB45B22@SARENET.ES> <20071106125552.GO5268@garage.freebsd.pl> <5ED261E6-A85A-4D7D-A01A-4688802FECB9@plak.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Nov 07, 2007 at 08:46:35AM +0100, Martijn Plak wrote:
> My 7.0-BETA2 (+ updates) system is crashing regularly on a kmem_map  
> too small panic too.
> Yesterday I applied the vm_kern.c.2.patch patch and turned off all of  
> my sysctl tweaks.
> 
> At first, the system was stable for a day. During that day, I ran   
> make -j4 buildworld several times without trouble.
> 
> Then started a network transfer. This was a usenet download, on 4 TCP  
> channels, for a total of 10Mbps, from a server at a 'ping distance'  
> of about 20ms, using hellanzb.py. My guess was that this sort of  
> transfer puts some memory pressure on the kernel space.  Running that  
> in parallel with the buildworld crashed the system again.
> 
> I hope this helps the investigation. Let me know if I can run other  
> tests.
[...]
> === cat /boot/loader.conf
> # Load ZFS and load root system from the RAID-Z array.
> zfs_load="YES"
> vfs.root.mountfrom="zfs:raid/sys/root"
> 
> # Tune ZFS and VM parameters.
> #vfs.zfs.arc_max="64M"
> #kern.maxvnodes="50000"
> #vm.kmem_size_max="512M"
> #vm.kmem_size="512M"
> === sysctl vm | grep kmem
> vm.kmem_size_scale: 3
> vm.kmem_size_max: 335544320
> vm.kmem_size_min: 0
> vm.kmem_size: 335544320

The only tuning that is needed (and ZFS will warn now about this) is
vm.kmem_size/vm.kmem_size_max. Can you set those back to 512M and retry?

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHMe97ForvXbEpPzQRArDuAJ45U0Vm7EkW7Pt3jMyOzkuBdPNMHQCg9HuB
zQ9URLta+KPLekOREBLBX6U=
=OB5C
-----END PGP SIGNATURE-----
help

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