From owner-freebsd-current@FreeBSD.ORG Fri Apr 13 08:43:05 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D91616A476 for ; Fri, 13 Apr 2007 08:43:05 +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 9662B13C4DD for ; Fri, 13 Apr 2007 08:43:01 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id AAE9F487F2; Fri, 13 Apr 2007 10:42:59 +0200 (CEST) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A4B6E4569A; Fri, 13 Apr 2007 10:42:53 +0200 (CEST) Date: Fri, 13 Apr 2007 10:42:38 +0200 From: Pawel Jakub Dawidek To: Hidetoshi Shimokawa Message-ID: <20070413084238.GA3859@garage.freebsd.pl> References: <868xcyusp5.wl%simokawa@FreeBSD.ORG> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <868xcyusp5.wl%simokawa@FreeBSD.ORG> 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=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-current@freebsd.org Subject: Re: ZFS vnode starvation with large kmem_size X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2007 08:43:05 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 12, 2007 at 01:23:18PM +0900, Hidetoshi Shimokawa wrote: > Hi Pawel, >=20 > I observed vnode starvation with large kmem_size in loader.conf. > It seems that even if zfs eats vnodes up to maxvnodes, > vnodes cannot be reclaimed and vnlru kthread will give up. > As far as I understand, the problem comes from difference > of name cache mechanism. I attached a patch for a workaround. >=20 > How to repeat: > arch: amd64 or i386 > physical memory: 512MB > vm.kmem_size=3D671088640 > ( In this setting: > kern.maxvnodes: 35077 > vfs.zfs.dnlc.ncsize: 33095 ) >=20 > Create zfs filesystem and extract ports.tar.gz(many files) on it. > After a while you can see that the system is not responsive because of > vnode starvation. Good catch! Thanks for the report. I just committed a fix, can you try it and confirm it works for you? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGH0J+ForvXbEpPzQRApDiAJ9WnsD2sGoCfBHZvDrCH3s23Uzk8QCdEMbC jWg/pFjNs0+BvMoOhKFm2Kk= =KkXd -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--