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>

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

--SwC/mAzP11p89u4p
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 =20
> too small panic too.
> Yesterday I applied the vm_kern.c.2.patch patch and turned off all of =20
> my sysctl tweaks.
>=20
> At first, the system was stable for a day. During that day, I ran  =20
> make -j4 buildworld several times without trouble.
>=20
> Then started a network transfer. This was a usenet download, on 4 TCP =20
> channels, for a total of 10Mbps, from a server at a 'ping distance' =20
> of about 20ms, using hellanzb.py. My guess was that this sort of =20
> transfer puts some memory pressure on the kernel space.  Running that =20
> in parallel with the buildworld crashed the system again.
>=20
> I hope this helps the investigation. Let me know if I can run other =20
> tests.
[...]
> =3D=3D=3D cat /boot/loader.conf
> # Load ZFS and load root system from the RAID-Z array.
> zfs_load=3D"YES"
> vfs.root.mountfrom=3D"zfs:raid/sys/root"
>=20
> # Tune ZFS and VM parameters.
> #vfs.zfs.arc_max=3D"64M"
> #kern.maxvnodes=3D"50000"
> #vm.kmem_size_max=3D"512M"
> #vm.kmem_size=3D"512M"
> =3D=3D=3D 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?

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

--SwC/mAzP11p89u4p
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

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

--SwC/mAzP11p89u4p--



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