From owner-freebsd-fs@FreeBSD.ORG Mon Oct 17 08:50:42 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9179A106566B for ; Mon, 17 Oct 2011 08:50:42 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 1C66E8FC0C for ; Mon, 17 Oct 2011 08:50:40 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RFiu7-0001HU-91 for freebsd-fs@freebsd.org; Mon, 17 Oct 2011 10:50:39 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Oct 2011 10:50:39 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Oct 2011 10:50:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Ivan Voras Date: Mon, 17 Oct 2011 10:50:17 +0200 Lines: 50 Message-ID: References: <4E97FEDD.7060205@quip.cz> <4E982C0E.2060900@quip.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig77B17ED0F6D5B60FA9E29D3C" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111004 Thunderbird/7.0.1 In-Reply-To: <4E982C0E.2060900@quip.cz> X-Enigmail-Version: 1.1.2 Subject: Re: dirhash and dynamic memory allocation 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: Mon, 17 Oct 2011 08:50:42 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig77B17ED0F6D5B60FA9E29D3C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14/10/2011 14:33, Miroslav Lachman wrote: >=20 >=20 > Ivan Voras wrote: >> On 14/10/2011 11:20, Miroslav Lachman wrote: >>> Hi all, >>> >>> I tried some tuning of dirhash on our servers and after googlig a bit= , I >>> found an old GSoC project wiki page about Dynamic Memory Allocation f= or >>> Dirhash: http://wiki.freebsd.org/DirhashDynamicMemory >>> Is there any reason not to use it / not commit it to HEAD? >> >> AFAIK it's sort-of already present. In 8-stable and recent kernels you= >> can give huge amounts of memory to dirhash via vfs.ufs.dirhash_maxmem >> (but except in really large edge cases I don't think you *need* more >> than 32 MB), and the kernel will scale-down or free the memory if not >> needed. >=20 > Is this change documented somewhere? Maybe it could be noticed on > DirhashDynamicMemory wiki page. Otherwise it seems as abandoned GSoC > project. I'm not touching the wiki page because I don't know really if the functionality was committed from the GSoC project or from somewhere else; what I did was much later and much smaller in scope. --------------enig77B17ED0F6D5B60FA9E29D3C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6b7E8ACgkQldnAQVacBcgHNQCgkhqum8SWEg2epPVLWg73sKvu MVoAnjoQ6vkH5kDl/Ac/jvh41pLSzAak =3uJw -----END PGP SIGNATURE----- --------------enig77B17ED0F6D5B60FA9E29D3C--