From owner-freebsd-stable Fri Sep 28 15:12: 9 2001 Delivered-To: freebsd-stable@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-153.dsl.lsan03.pacbell.net [63.207.60.153]) by hub.freebsd.org (Postfix) with ESMTP id 2988E37B40B for ; Fri, 28 Sep 2001 15:12:05 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 6DD9866E30; Fri, 28 Sep 2001 15:12:04 -0700 (PDT) Date: Fri, 28 Sep 2001 15:12:04 -0700 From: Kris Kennaway To: Nate Williams Cc: Kris Kennaway , Alessandro de Manzano , Sean Chittenden , stable@FreeBSD.ORG Subject: Re: dirpref gives massive performance boost Message-ID: <20010928151204.A16750@xor.obsecurity.org> References: <20010928141246.A15515@xor.obsecurity.org> <20010928232009.A29187@libero.sunshine.ale> <20010928142611.A15946@xor.obsecurity.org> <20010928143016.H29974@rand.tgd.net> <20010928233800.B29391@libero.sunshine.ale> <20010928144146.A16221@xor.obsecurity.org> <15284.62680.507872.259266@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15284.62680.507872.259266@nomad.yogotech.com>; from nate@yogotech.com on Fri, Sep 28, 2001 at 04:08:24PM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 28, 2001 at 04:08:24PM -0600, Nate Williams wrote: > > > > > Well, you need to wipe the disk so that when you restore it can l= ay > > > > > things out optimally from the start. > > > >=20 > > > > But turning on soft-updates should be sufficient to get these perfo= rmance=20 > > > > boosts from this point on, correct? -sc > > >=20 > > > AFAIK SU is not related to the physical layout of data on disk, this = is > > > the work of UFS_DIRHASH. > >=20 > > No, that's something different. > >=20 > > # Directory hashing improves the speed of operations on very large > > # directories at the expense of some memory. > > # Warning: this is experimental code! > > options UFS_DIRHASH > >=20 > > The changes to dirpref are an improved on-disk layout policy for > > directories (and files?) It's enabled by default because there's no > > downside. >=20 > Again, I thought DIRHASH was an in-core data structure that helps with > cache lookups for large directories, and had no effect on the on-disk > layout. (Hence the reason why it is 'safe' to use in -stable.) Yes, like I said in the text you quoted, they *are* different things. Kris --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7tPWzWry0BWjoQKURApoZAKCADpFcjySE99eXEiQue/dDlWFD5QCgloNc 8Np3Eqe/rms9jIWgZwsRxRY= =HFag -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message