From owner-freebsd-current@FreeBSD.ORG Wed May 27 11:13:29 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17A1B1065687 for ; Wed, 27 May 2009 11:13:29 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id BA1258FC14 for ; Wed, 27 May 2009 11:13:28 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id B83F69CB04C; Wed, 27 May 2009 13:12:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aR+pztprPmeb; Wed, 27 May 2009 13:12:38 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 89C0C9CB270; Wed, 27 May 2009 13:12:38 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n4RBCcto002266; Wed, 27 May 2009 13:12:38 +0200 (CEST) (envelope-from rdivacky) Date: Wed, 27 May 2009 13:12:38 +0200 From: Roman Divacky To: Nick Barkas Message-ID: <20090527111238.GA2000@freebsd.org> References: <20090527103648.GA61454@ebi.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <20090527103648.GA61454@ebi.local> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: vm_lowmem event handler for dirhash 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: Wed, 27 May 2009 11:13:29 -0000 --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 27, 2009 at 12:36:49PM +0200, Nick Barkas wrote: > I sent this out to fs@ last night, but it was suggested that I send it > here for more eyes and potential testers. >=20 > Hello > Some time during the next week or so, I plan on committing the attached > patch. It adds a vm_lowmem event handler to the dirhash code in UFS2 so > that dirhashes will be deleted when the system is low on memory. This > allows one to increase the maximum amount of memory available for > dirhash on machines that have memory to spare (via the > vfs.ufs.dirhash_maxmem sysctl), and hopefully just improving behaviour > in low memory situations. I worked on this last year for the summer of > code with David Malone as my mentor. cool! do you have any performance numbers? graphs? :) what value do you rec= ommend for the dirhash_maxmem sysctl? thnx! roman --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkodICUACgkQLVEj6D3CBEzxZwCfb9df4E/E0BpYOHuQccLDyFQS slgAn1gTzcOMgcrTLSzZdHn/khOYbmON =93av -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--