Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Apr 2007 16:26:06 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS: kmem_map too small panic again
Message-ID:  <20070427142606.GK49413@garage.freebsd.pl>
In-Reply-To: <20070426223535.GC45366@garage.freebsd.pl>
References:  <20070426213347.C3A7C5B58@mail.bitblocks.com> <20070426223535.GC45366@garage.freebsd.pl>

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

--GU3/x65mZ6MFE8p3
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Apr 27, 2007 at 12:35:35AM +0200, Pawel Jakub Dawidek wrote:
> On Thu, Apr 26, 2007 at 02:33:47PM -0700, Bakul Shah wrote:
> > An update:
> >=20
> > I reverted sources to to Apr 24 16:49 UTC and rebuilt the
> > kernel and the bug goes away -- I was able to restore 53GB
> > (840K+ inodes) and do a bunch of du with no problems.
> >=20
> > But the bug remains on a kernel with the latest zfs changes.
> > All I have to do run du a couple of times in the restored
> > tree to crash the system.  There is no crash with multiple du
> > on a similarly sized UFS2, only on ZFS.  This is on a
> > Athlon64 X2 Dual Core Processor 3800+ running in 32 bit mode.
> > The exact message is:
> >=20
> > panic: kmem_malloc(98304): kmem_map too small: 335478784 total allocated
>=20
> I can reproduce it and I'm working on it.

The problem is that kern.maxvnodes are tuned based on vnode+UFS_inode
size. In case of ZFS, the size of vnode+ZFS_znode_dnode+dmu_buf is
larger. As a work-around just decrease kern.maxvnodes to something like
3/4 of the current value.

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

--GU3/x65mZ6MFE8p3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGMgf+ForvXbEpPzQRAlQyAKDWu+xBxhb90u8ZEFHgNRoVmBX8QQCgh0Qi
qn5odWRwjoRJo5B1vZS/494=
=ZWMr
-----END PGP SIGNATURE-----

--GU3/x65mZ6MFE8p3--



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