[Ocfs2-users] ocfs2/small files problem

Sunil Mushran Sunil.Mushran at oracle.com
Mon Nov 6 09:40:24 PST 2006


512 blocksize is almost never recommended. :)
Use atleast 1K. The FAQ has the explanation of
the terms blocksize and clustersize.

tao.ma wrote:
> Brian Sieler wrote:
>
>> I have an ocfs2 file system with 4K blocks and 128K clusters--using it
>> as a general-purpose clustered file system.
>>
>> Problem: Large number of small files (300 bytes or less) appear to
>> take much more space on ocfs2 than on ext2/3.
>>
>> Will altering the block/cluster size on the ocfs2 file system improve
>> the situation?
>
> yes. Normally a file will occupy a cluster for its content.
> Since your file  are 300 bytes or less, you may choose 512 as block 
> size and 4K as cluster size.
>
>>
>> Suggestions?
>>
>
>
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users



More information about the Ocfs2-users mailing list