提高IO性能

noatime - 不更新文件系统上 inode 访问记录,可以提升性能
[root@ok etc]# cat /etc/fstab |grep noatime
/dev/mapper/vg_ok-lv_root /                       ext4    defaults,noatime        1 1
/dev/mapper/vg_ok-lv_swap swap                    swap    defaults,noatime        0 0
atime 是最近访问文件的时间,每当访问文件时,底层文件系统必须记录这个时间戳。因为系统管理员很少使用 atime,禁用它可以减少磁盘访问时间
修改设置后只需要重新挂载文件系统、不需要重启就可以应用新设置:
[root@ok etc]# mount -o remount /
[root@ok etc]# mount
/dev/mapper/vg_ok-lv_root on / type ext4 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_ok-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
原文地址:https://www.cnblogs.com/bass6/p/5792724.html