Tweak EXT4 mount options for performance

Need to change default EXT4 mount options to tweek performance

DEFAULT EXT4 mount options (Centos 6.3):

[root@server ~]# cat /etc/fstab

dev/sda1 / ext4 defaults 0 1

… meaning …

[root@server ~]#cat /proc/mounts | grep ext4

/dev/sda1 / ext4 rw,relatime,acl,barrier=1,data=ordered 0 0

CHANGE it (/etc/fstab) to:

dev/sda1 / ext4 rw,noatime,nouser_xattr,barrier=0,data=ordered,errors=remount-ro 0 1


  • noatime – don’t modify last access time on folders and files (not needed)
  • nouser_xattr – don’t write extended user atributes (not needed)
  • barrier=0  – turn off write barriers, improved write speed on CloudSigma SSD storage by 300% !!!
  • data=ordered – default, no change really
  • errors=remount-ro – if errors, remount FS in read only mode (not performance,  but very important)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: