linux下測試硬碟讀寫速度

來源:互聯網
上載者:User

linux下測試硬碟讀寫速度

買了個ssd硬碟,就想著跟普通的機械盤做個比較,因為案頭裝的是ubuntu系統,所以就想用linux的命令簡單測一下好了

下面是ssd的效能資料:

測試寫:

xxx@WaitFish:~ > time dd if=/dev/zero bs=1024 count=1000000 of=1Gb.file1000000+0 records in1000000+0 records out1024000000 bytes (1.0 GB) copied, 3.78724 s, 270 MB/sreal    0m3.789suser    0m0.839ssys     0m2.527s

從null讀資料到檔案,塊大小1024 數量1000000

測試讀:

xxx@WaitFish:~ >time dd of=1Gb.file if=/dev/zero bs=1024 count=10000001000000+0 records in1000000+0 records out1024000000 bytes (1.0 GB) copied, 3.84934 s, 266 MB/sreal    0m4.009suser    0m0.852ssys     0m2.698s
從檔案讀資料到null,測試讀效能

下面是機械盤的速度:

寫效能:

sudo time dd if=/dev/zero bs=1024 count=1000000 of=1Gb.file1000000+0 records in1000000+0 records out1024000000 bytes (1.0 GB) copied, 69.5384 s, 14.7 MB/s1.62user 13.84system 1:09.56elapsed 22%CPU (0avgtext+0avgdata 704maxresident)k72inputs+0outputs (2major+221minor)pagefaults 0swaps
讀效能: 
xxx@WaitFish:/media/xx/新加卷 > sudo time dd of=1Gb.file if=/dev/zero bs=1024 count=10000001000000+0 records in1000000+0 records out1024000000 bytes (1.0 GB) copied, 71.2378 s, 14.4 MB/s1.66user 14.34system 1:11.34elapsed 22%CPU (0avgtext+0avgdata 700maxresident)k0inputs+0outputs (0major+224minor)pagefaults 0swaps
看來差的還不是一點點啊,哈哈哈

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.