From owner-freebsd-stable Wed Dec 18 21:21:55 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C346F37B401 for ; Wed, 18 Dec 2002 21:21:54 -0800 (PST) Received: from ns.itga.com.au (ns.itga.com.au [202.53.40.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6525943EA9 for ; Wed, 18 Dec 2002 21:21:53 -0800 (PST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns.itga.com.au (8.9.3/8.9.3) with ESMTP id QAA19495; Thu, 19 Dec 2002 16:21:41 +1100 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id QAA01685; Thu, 19 Dec 2002 16:21:41 +1100 (EST) Message-Id: <200212190521.QAA01685@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: Hari Bhaskaran Cc: freebsd-stable@FreeBSD.ORG Subject: Re: newfs for an fs with small files (qmail Maildir) In-reply-to: Your message of Wed, 18 Dec 2002 22:51:18 -0600. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 19 Dec 2002 16:21:40 +1100 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 > I need to create an fs to hold thousands of small files (mails) Most mail is very small. The average size of my ~600M of (un-archived, un-compressed) mail is 7350 bytes, but this is badly skewed by a few large (multi-megabyte) files. Median file size is 4100 bytes, and almost exactly 90% of them are smaller than 8192 bytes. (Yes, I'm an mh-using packrat who's had the same homedir for 15 years. So sue me). I'd be tempted to use something like "newfs -b 4096 -f 512 -i 2048". I have had a problem on my home dir (on a Solaris 2.6 box using standard Solaris 8k/1k FFS) of getting "disk full" errors, even with heaps of space free, because there were no free blocks, only fragments. Using 16k blocks on a mail spool will almost certainly cause this sort of problem, only worse. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message