linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ext2 optimal partition size
@ 2005-05-15 16:00 DervishD
  2005-05-15 16:43 ` Helge Hafting
  0 siblings, 1 reply; 4+ messages in thread
From: DervishD @ 2005-05-15 16:00 UTC (permalink / raw)
  To: Linux-kernel

    Hi all :)

    Let's assume I want to partition a hard disk so the partition
size is optimal for a given block size and bytes per inode ratio in
an ext2/ext3 filesystem. By 'optimal' I mean that no space in the
partition is wasted, that is, the metadata and the data blocks fit
perfectly in the partition, and no space is left unused because that
space is less than a data block.

    For example, if disk structures occupy 1024 bytes and each data
block is 1024 bytes too, the partition size must be a multiple of
1024: if I allocate 2049 bytes for the partition, then one byte will
be lost because ext2/3 cannot have blocks smaller than the block
size.

    So: which is the optimal partition size for a given block size
and a given bytes per inode ratio? Can it be easily calculated?

    Thanks a lot in advance :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-16 21:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-15 16:00 ext2 optimal partition size DervishD
2005-05-15 16:43 ` Helge Hafting
2005-05-15 17:14   ` DervishD
2005-05-16 22:01     ` Helge Hafting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).