RE : dealing with mke2fs -T option
GARDAIS Ionel
Ionel.Gardais at tech-advantage.com
Sun May 27 18:30:14 UTC 2007
To be complete, here is the way I made my calculus :
I'm gonna write files of 32Mb each on a Xserve RAID with two "arrays" of 4.1Tb (sdd and sde).
So, let me explain :
1/ 32Mb == 32768Kb
2/ on sdd with "-T news" : 1 inode = 4Kb --> 1 32Mb file is made of 8192 inodes
3/ on sde with "-T largefile4" : 1 inode = 4Mb --> 1 32Mb file is made of 8 inodes
Then, as stated by 'df -i' :
sdd contains 549437440 inodes --> 67070 files (8192 inodes per file)
sde contains 1073120 inodes --> 134140 files (8 inodes per file)
Where am I wrong ?
Ionel
-------- Message d'origine--------
De: Bryan Kadzban [mailto:bryan at kadzban.is-a-geek.net]
Date: dim. 27/05/2007 14:04
À: GARDAIS Ionel
Cc: ext3-users at redhat.com
Objet : Re: dealing with mke2fs -T option
GARDAIS Ionel wrote:
> Then I tried this :
> $ dd if=/dev/zero of=/mount-sdx/file bs=4k count=8192
> for both /mount-sdd and /mount-sde
>
> Why don't I get "8192 inodes used"
Because the FS creates one inode per file (unless you create a hard
link, anyway), not one inode per X bytes. You only created one file
here. ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ext3-users/attachments/20070527/4ae15fbc/attachment.htm>
More information about the Ext3-users
mailing list