How to optimize ext3/ext4 file system performance?

Eric Sandeen sandeen at
Thu Jun 11 14:34:34 UTC 2009

lakshmi pathi wrote:
> Hi,
> I want to create ext3FS or ext4FS with it's maximum performace.

You left out the part about what workload you want to maximize...

> I thought about below points (If i'm wrong please let me know ) :
> 1)Using writeback mode .

Acceptable and helpful in some situations, but be aware of data
integrity issues here if you crash - files may end up with wrong data in
them, either your own wrong data, or someone else's.

> 2)Use larger block size (8K)

Only possible if you have 8K or greater pages, and if you're on
x86/x86_64 etc you're limited to 4K.

> 3)Enable noaccess time, in fstab.

noatime can make a difference.

> I'm not sure about below option,but i read,its about directory optimization.
> 4)e2fsck -D -f /dev/sda

-D is only useful/applicable on aged filesystems, it won't make any
difference on a new fs.

> Anyother tips to optimize the file system?  I'm planning to spend
> sometime with "Linux From scratch" in comings days.
> So I want "my" system to have better performace  :)

By and large, the defaults provide the best performance for "normal"
situations.  That's why they're defaults.  :)


More information about the Ext3-users mailing list