linux dd iflag oflag,centos – dd oflag =直接5倍速
我在這個(gè)規(guī)格的服務(wù)器中有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對(duì)IO速度進(jìn)行基準(zhǔn)測(cè)試,如果在RAID10 12磁盤(pán)執(zhí)行中,請(qǐng)查看:
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”選項(xiàng)獲得大約80 MB / s.
在閱讀基準(zhǔn)測(cè)試中,結(jié)果類(lèi)似:
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 ……
我不明白這個(gè)巨大的差異,在其他機(jī)器上你沒(méi)有這種行為.
我可以將一些內(nèi)核參數(shù)配置錯(cuò)誤嗎?
謝謝!
總結(jié)
以上是生活随笔為你收集整理的linux dd iflag oflag,centos – dd oflag =直接5倍速的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: linux安装mq报5724,小白提问:
- 下一篇: ddos防御方法(ddos防御使用技巧)