Date: Thu, 25 Oct 2001 09:24:25 -0500 (CDT) From: Chris Dillon <cdillon@wolves.k12.mo.us> To: Juha Saarinen <juha@saarinen.org> Cc: David Malone <dwmalone@maths.tcd.ie>, Anatoliy Dmytriyev <tolid@plab.ku.dk>, "freebsd-stable@freebsd.org" <freebsd-stable@FreeBSD.ORG> Subject: Re: UFS_DIRHASH - your opinion Message-ID: <Pine.BSF.4.32.0110250913510.7364-100000@mail.wolves.k12.mo.us> In-Reply-To: <Pine.LNX.4.33.0110251238420.1929-100000@vimfuego.saarinen.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 25 Oct 2001, Juha Saarinen wrote: > On Wed, 24 Oct 2001, Chris Dillon wrote: > > > 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. > > Thanks. Are there any good hints and tips for running Squid under > FreeBSD? On Linux, a file system like ReiserFS is supposedly the > best, as it's good with lots of little files. I'm not sure that ReiserFS would really be any better than UFS+softupdates in this case. This is generally the case no matter what OS you use, but try to spread your cache directories out on their own filesystems, each on its own physical disk. As of Squid 2.4, use diskd as the cachedir type. On large cache filesystems, you may actually want to decrease the number of inodes available on the filesystem, and follow the tuning guidelines in the tuning(7) manpage. I've got 7GB filesystems spread across four disks for my Squid cache, and each is only using 25% of the inodes available. Using half the inodes would have worked in my case and still have plenty of room to breathe. Mount them noatime, too. -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.32.0110250913510.7364-100000>