微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

centos – dd oflag =直接5倍速

在这个规格的服务器中有Centos 6.2:
2xcpu 16 Core AMD Opteron 6282 SE
64GB RAM
Raid controller H700 1GB cache NV
- 2HD 74GB SAS 15Krpm RAID1 stripe 16k (OS Centos 6.2) sda
- 4HD 146GB SAS 15Krpm RAID10 stripe 16k (ext4 bs 4096,no barriers) sdb -> /vol01
Raid controller H800 1GB cache nv
- MD1200 12HD 300GB SAS 15Krpm RAID10 stripe 256k (For DB Postgres 8.3.18) (ext4 bs 4096,stride 64,stripe-width 384,no barriers) sdc -> /vol02

我正在使用dd对IO速度进行基准测试,如果在RAID10 12磁盘执行中,请查看:

dd if=/dev/zero of=DD bs=8M count=10000 oflag=direct
10000+0 records in
10000+0 records out
83886080000 bytes (84 GB) copied,126,03 s,666 MB/s

但如果我删除“oflag = direct”选项获得大约80 MB / s.
在阅读基准测试中,结果类似:

dd of=/dev/null if=DD bs=8M count=10000 iflag=direct
10000+0 records in
10000+0 records out
83886080000 bytes (84 GB) copied,79,5918 s,1,1 GB/s

如果删除iflag = direct获得150MB / s ……

我不明白这个巨大的差异,在其他机器上你没有这种行为.

我可以将一些内核参数配置错误吗?

谢谢!

最后问题是Bios配置错误.
我在BIOS上将“Power Management”设置为“Maximum Performance”配置文件
DELL best practices in power management

使用此设置,dd具有相同的性能,有或没有oflag = direct

原文地址:https://www.jb51.cc/centos/373477.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。