From owner-freebsd-stable@FreeBSD.ORG Wed Aug 28 09:49:06 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3759877D for ; Wed, 28 Aug 2013 09:49:06 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BC56A29A8 for ; Wed, 28 Aug 2013 09:49:05 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VEcMy-0000KV-Gg for freebsd-stable@freebsd.org; Wed, 28 Aug 2013 11:48:56 +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 ; Wed, 28 Aug 2013 11:48:56 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Aug 2013 11:48:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Subject: Re: Suggest changing dirhash defaults for FreeBSD 9.2. Date: Wed, 28 Aug 2013 11:48:43 +0200 Lines: 65 Message-ID: References: <521C9E85.4060801@UToledo.edu> <521D7552.5080008@UToledo.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2TFUBVIQGHKUAUIOTNOCI" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130322 Thunderbird/17.0.4 In-Reply-To: <521D7552.5080008@UToledo.edu> X-Enigmail-Version: 1.5.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 09:49:06 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2TFUBVIQGHKUAUIOTNOCI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 28/08/2013 05:58, Robert Burmeister wrote: >=20 > On 8/27/2013 9:40 AM, Sergey Kandaurov wrote: >> On 27 August 2013 16:41, Robert Burmeister >> wrote: >>> I have been experimenting with dirhash settings, and have scoured the= >>> internet for other peoples' experience with it. >>> (I found the performance improvement in compiling has forestalled the= >>> need to add an SSD drive. ;-) >>> >>> I believe that increasing the following values by 10 would benefit >>> most FreeBSD users without disadvantage. >>> >>> vfs.ufs.dirhash_maxmem: 2097152 to 20971520 >>> >>> vfs.ufs.dirhash_reclaimage: 5 to 50 or 60 >> vfs.ufs.dirhash_maxmem is further autotuned based on available >> physical memory. >> See r214359 for details. >> > [Spock Eyebrow of Thought] >=20 > I'm running FreeBSD i386 9.2, that allows a max of 4 Gigs of RAM. To what value does the algorithm tune in your case? On my 16 GB machine, it's ~~ 25 MB: vfs.ufs.dirhash_maxmem: 26968064 > I think the algorithm is still overly conservative for 32 bit systems, > which are more likely to be using UFS. >=20 > As 64 bit platforms tend to have more RAM and use ZFS, > is the same tuning algorithm appropriate for both? The policy is to use fractions of the installed RAM (though in a roundabout way), so it should scale reasonably well to both systems with large and small memories. I'll bump vfs.ufs.dirhash_reclaimage to 60, it's worth it. ------enig2TFUBVIQGHKUAUIOTNOCI 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.19 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIdx3sACgkQ/QjVBj3/HSwqAwCfYUa6VKsM+xKlyx9DIxKjjDPT u/cAnRYdBxuUFsY/yj3DBPw62mdOmBl5 =MuBK -----END PGP SIGNATURE----- ------enig2TFUBVIQGHKUAUIOTNOCI--