[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inode density - newfs(8)



On Sun, 28 Nov 2004, Ted Unangst wrote:

> > Regardless of that, I need to increase the inode density to around 1 per
> > 6k (or 4k to be safe, i.e. what it used to be!), and I am wondering what
> > the best way to go about it is. Am I right in thinking that the
> > only/easiest way to change this is through newfs, (single user mode ->
> > dump to tape -> newfs -i 4096 -> restore) or is there another way?
> 
> you can only change inode count by running newfs.
> 
> > Are there any other optimizations I should consider for a filesystem
> > with a high ratio of inodes to data? 

Since you need that many inodes your average file size is really small. I 
would also consider to use a smaller blocksize and fragment size; the old 
defaults were -b 8192 -f 1024. That will automatically give you more 
inodes.

> i would recommend not spending too much time fiddling with newfs options.

That's true, although I'd like to mention that in 3.6 (and even better in 
-current) I committed stuff to make large block sizes work better. Certain 
combinations of block, fragment and partition sizes would lead to 
incorrect file system initialization. That is now fixed.

	-Otto (who spent quite some time fiddling with newfs ;-)



Visit your host, monkey.org