From owner-freebsd-stable Wed Oct 24 16:35:56 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.wolves.k12.mo.us (mail.wolves.k12.mo.us [207.160.214.1]) by hub.freebsd.org (Postfix) with ESMTP id A279037B43C for ; Wed, 24 Oct 2001 16:35:47 -0700 (PDT) Received: from mail.wolves.k12.mo.us (cdillon@mail.wolves.k12.mo.us [207.160.214.1]) by mail.wolves.k12.mo.us (8.9.3/8.9.3) with ESMTP id SAA97939; Wed, 24 Oct 2001 18:35:33 -0500 (CDT) (envelope-from cdillon@wolves.k12.mo.us) Date: Wed, 24 Oct 2001 18:35:32 -0500 (CDT) From: Chris Dillon To: Juha Saarinen Cc: David Malone , Anatoliy Dmytriyev , "freebsd-stable@freebsd.org" Subject: Re: UFS_DIRHASH - your opinion In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 25 Oct 2001, Juha Saarinen wrote: > On Wed, 24 Oct 2001, David Malone wrote: > > > If you have directories which contains lots of files which are > > accessed repeatedly then it may be a win for you. > > So it'd be good for a Squid volume, e.g? No, it could in fact hurt performance, if I understand correctly. Squid is smart enough to spread the thousands or millions of files it keeps under lots and lots of sub-directories. Each individual directory shouldn't have more than about 255 entries if you set things up right. Besides, even if Squid didn't spread things out, it doesn't need to get a listing of all the files in a directory (except in the event of a dirty cache that needs to be rebuilt) since it keeps its own metadata. -- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net FreeBSD: The fastest and most stable server OS on the planet - Available for IA32 (Intel x86) and Alpha architectures - IA64, PowerPC, UltraSPARC, and ARM architectures under development - http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message