在配置文件/etc/fstab中设置
例如:
/dev/xvdb1 /data xfs defaults,noatime,nodiratime,nobarrier 0 0
下面是测试结果
default
only write
所用命令:time dd if=/dev/zero of=/data/test bs=number count=number
bs=512b count=3000000 ---->96.5MB/S
bs=512b count=2000000 ---->98.4MB/S
bs=1M count=3000 ---->124MB/S
only read
所用命令:time dd if=/data/test of=/dev/null bs=number count=number
bs=1M count=30000 ---->7.4GB/S
bs=2M count=30000 ---->8.3GB/S
bs=512b count=3000 ---->833MB/S
bs=512b count=30000 ---->949MB/S
bs=512b count=300000 ---->933MB/S
write and read
所用命令:time dd if=/data/test of=/data/testtwo bs=number count=number
bs=512b count=300000 ---->414MB/S
bs=512b count=3000000 ---->149.7MB/S
bs=1M count=300000 ---->114MB/S
以下所用命令同上
default,noatime,nodiratime,nobarrier
only write
bs=512b count=3000000 ---->461MB/S
bs=512b count=2000000 ---->460MB/S
bs=1M count=3000 ---->2GB/S
only read
bs=1M count=30000 ---->8.4GB/S
bs=2M count=30000 ---->8.4GB/S
bs=512b count=30000 ---->913MB/S
bs=512b count=300000 ---->933MB/S
write and read
bs=512b count=300000 ---->402MB/S
bs=512b count=3000000 ---->396MB/S
bs=1M count=300000 ---->125MB/S
default,noatime,nodiratime
only write
bs=512b count=3000000 ---->456MB/S
bs=512b count=2000000 ---->453MB/S
bs=1M count=3000 ---->2GB/S
only read
bs=1M count=30000 ---->7.4GB/S
bs=2M count=30000 ---->8.4GB/S
bs=512b count=30000 ---->960MB/S
bs=512b count=300000 ---->986MB/S
write and read
bs=512b count=300000 ---->406MB/S
bs=512b count=3000000 ---->102MB/S
bs=1M count=300000 ---->10MB/S
本文出自 “wcf” 博客,转载请与作者联系!