From owner-freebsd-fs@FreeBSD.ORG Fri Apr 27 14:26:35 2007 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3568516A401 for ; Fri, 27 Apr 2007 14:26:35 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id CF0A313C455 for ; Fri, 27 Apr 2007 14:26:34 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 50E7448800; Fri, 27 Apr 2007 16:26:33 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 7E313487F3; Fri, 27 Apr 2007 16:26:27 +0200 (CEST) Date: Fri, 27 Apr 2007 16:26:06 +0200 From: Pawel Jakub Dawidek To: Bakul Shah Message-ID: <20070427142606.GK49413@garage.freebsd.pl> References: <20070426213347.C3A7C5B58@mail.bitblocks.com> <20070426223535.GC45366@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GU3/x65mZ6MFE8p3" Content-Disposition: inline In-Reply-To: <20070426223535.GC45366@garage.freebsd.pl> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS: kmem_map too small panic again X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 14:26:35 -0000 --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--