Need to change default EXT4 mount options to tweek performance
DEFAULT EXT4 mount options (Centos 6.3):
1
2
|
[root@server ~]# cat /etc/fstab
dev/sda1 / ext4 defaults 0 1
|
… meaning …
1
2
|
[root@server ~]# cat /proc/mounts | grep ext4
/dev/sda1 / ext4 rw,relatime,acl,barrier=1,data=ordered 0 0
|
CHANGE it (/etc/fstab) to:
1
|
dev/sda1 / ext4 rw,noatime,nouser_xattr,barrier=0,data=ordered,errors=remount–ro 0 1
|
EXPLANATION:
- 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)
Recent Comments