linux dd iflag oflag,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 ……
我不明白這個巨大的差異,在其他機器上你沒有這種行為.
我可以將一些內核參數配置錯誤嗎?
謝謝!
總結
以上是生活随笔為你收集整理的linux dd iflag oflag,centos – dd oflag =直接5倍速的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux安装mq报5724,小白提问:
- 下一篇: ddos防御方法(ddos防御使用技巧)