Date: Fri, 13 Apr 2007 10:42:38 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Hidetoshi Shimokawa <simokawa@FreeBSD.ORG> Cc: freebsd-current@freebsd.org Subject: Re: ZFS vnode starvation with large kmem_size Message-ID: <20070413084238.GA3859@garage.freebsd.pl> In-Reply-To: <868xcyusp5.wl%simokawa@FreeBSD.ORG> References: <868xcyusp5.wl%simokawa@FreeBSD.ORG>
next in thread | previous in thread | raw e-mail | index | archive | help
--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+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070413084238.GA3859>