Subject: Problems with MFS in 1.6 ?
To: 'port-macppc@NetBSD.org' <port-macppc@NetBSD.org>
From: Sylvain Fontaine <sfontaine@hyperchip.com>
List: port-macppc
Date: 12/03/2002 14:14:52
I use MFS to mount a ~100M ram disk.

I get a strange behavior in 1.6, which I dont see in 1.5.3,
that doubles the memory consumtion on MFS.

I do:
> mount_mfs -s 190000 swap /sandbox
> dd if=/dev/zero of=/sandbox/toto.zero count=184060
> top
 Memory: 197M Act, 452K Wired, 2376K Exec, 97M File, 24M Free 
 Swap: 1025M Total, 1025M Free
...

> rm /sandbox/toto.zero
> top
Memory: 107M Act, 452K Wired, 2376K Exec, 7712K File, 114M Free
Swap: 1025M Total, 1025M Free
...

> umount /sandbox
> top
Memory: 14M Act, 436K Wired, 2376K Exec, 7712K File, 207M Free
Swap: 1025M Total, 1025M Free
...


Results: 
By creatin a MFS drive of ~ 100M, creating a file in it of ~100M, I end up 
using ~200M....

Is this Normal?

Thanks,
Sylvain