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? Suggestions? -- Brian
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? >
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@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users