On Sun, Jan 20, 2008 at 09:46:27PM +0200, Lars Nood??n wrote: > SchC6berle DC!niel wrote: > >... > > swap /dev mfs rw,-P=/proto/dev,-s=4000,-i=1024 0 0 > > > > Now everything is ok, I'm happy and sice CF is in a new box with lots > > of memory I'm not trying to squeeze every byte out of it. > > I have -s=3000 which seems to work fine. -s=2500 seems to sometimes run > out of inodes. > > > Maybe this maximal density could be documented somehow? I glanced at > > the mkfs.c and saw that, in theory, it should warn the user when > > reducing the density but I never got a warning during my tests. > > When I try setting the inode density lower, I don't get a warning > either, but then I'm also using 4.2 i386 stable generic. > > -Lars
The density you are getting is on target. The thing that changed is that the minimum number of cylinder groups is now 4. That means more meta data overhead and less data space, hence less inodes. [EMAIL PROTECTED]:60]$ sudo mount_mfs -s 700 -i 256 swap /mnt mount_mfs: reduced number of fragments per cylinder group from 80 to 72 to enlarge last cylinder group [EMAIL PROTECTED]:62]$ df -i /mnt Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on mfs:15606 173 1 164 1% 1 637 0% /mnt [EMAIL PROTECTED]:63]$ 173k of data with 4 inodes per k resulting in 638 inodes is about right. To sqeeze more inodes out of a small file system you can use -c and smaller fragment and block size, but ir remains a bit of a black art. e.g. [EMAIL PROTECTED]:64]$ sudo mount_mfs -s 700 -c 700 -i 256 -f 512 -b 4096 swap /mnt mount_mfs: reduced number of fragments per cylinder group from 696 to 512 to enlarge last cylinder group [EMAIL PROTECTED]:65]$ df -i /mnt Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on mfs:26011 181 0 172 0% 1 1021 0% /mnt [EMAIL PROTECTED]:66]$ -Otto