On Sun, Apr 20, 2008 at 03:35:13PM -0400, Chris Zakelj wrote:
> Matthew Weigel wrote:
It's a bit of an overestimate for the default block and fragment
sizes. The main factor for fsck memory needs is the number of inodes
in the fileystem being checked. I have a 4TB test filesystem here
using the max block and fragment sizes of both 64k. The filesystem has
about 17M inodes, and needs about 75M of mem to fsck. Another
filesystem (size 48M, using 16k block and 2k fragments) has about 6.5M
inodes and needs about 30M of memory.
The inode -> mem usage factor is linear: if you double the inodes,
you'll need twice the memory. Soon you will hit the maximum data size
a process can have.