Linux示範 dd測試IO

來源:互聯網
上載者:User

標籤:style   blog   color   io   檔案   資料   ar   問題   div   

dd測試IO,經常會用到,用來簡單測試某個目錄的讀寫效能。

本次測試環境:自己電腦的ubuntu系統~其他Unix/Linux系統也可以用dd.

Tips:dd操作需要三思而行,搞清楚確認沒問題再進行操作!一旦方向搞反了資料就沒有了。

① /var目錄寫速度測試,在/var目錄下寫入一個約800M大小的iotest檔案用時測試

# dd if=/dev/zero of=/var/iotest bs=8k count=102400102400+0 records in102400+0 records out838860800 bytes (839 MB) copied, 3.50779 s, 239 MB/s# 

② /var目錄讀速度測試,讀取/var目錄下這個iotest檔案用時測試

# dd if=/var/iotest of=/dev/null1638400+0 records in1638400+0 records out838860800 bytes (839 MB) copied, 4.44191 s, 189 MB/s#

③ /var目錄讀寫速度綜合測試,讀取/var目錄下iotest檔案,寫入到/var目錄下的rwtest檔案。

# dd if=/var/iotest of=/var/rwtest1638400+0 records in1638400+0 records out838860800 bytes (839 MB) copied, 11.0764 s, 75.7 MB/s#

 

Linux示範 dd測試IO

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.