Subject: Re: results from playing around with the new dirpref code
To: None <tech-perform@netbsd.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-perform
Date: 09/04/2001 12:41:46
On Mon, 3 Sep 2001, Jason R Thorpe wrote:
> So, for the larger the file system you're creating, newfs_ffs bumps the
> blocksize and the cpg using some hueristic (coming up with the correct
> hueristic is left as an exercise for the reader).
Here's a heuristic I have been using:
In the per-device disklabel parameters, lie about the number of
sectors per track or tracks per cylinder (or both) in such a way that
the number of sectors per cylinder ends up being approximately equal
to the number of cylinders (and both sectors/cylinder and ncylinders
end up being reasonably close to the square root of the total sectors
on the device).
In the per-filesystem disklabel parameters for FFS filesystems, try
to pick cylinders/group and blocksize such that there will be fewer
than 100 cylinder groups.
--apb (Alan Barrett)