Koozali.org: home of the SME Server

Cluster size

terabyte

Cluster size
« on: March 01, 2002, 05:02:12 AM »
I noticed that all files take 1 meg of space on the drive is ther any way to make the cluster size on the drive something along the lines of 64K?  This is really anoying as I have a lot of very small file for websites and the such on the server.

NickR

Re: Cluster size
« Reply #1 on: March 01, 2002, 10:18:32 PM »
What does df tell you the block-size is? This is mine (15Gb disk)

[root@mailgate /root]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda6             14492488    743048  13013264   6% /
/dev/hda1                15522      2600     12121  18% /boot

Filippo Carletti

Re: Cluster size
« Reply #2 on: March 02, 2002, 12:55:49 PM »
Linux ext2 filesystem has block size and it usually is 4096 bytes.
1024 bytes on small fs
SME uses 1k for /boot and 4k for /
4k is an ideal size because it matches Pentium page size.

To verify:
tune2fs -l /dev/hda1 | grep "Block size"