伺服器硬碟讀寫大檔案速度測試

yepkeepmoving發表於2016-10-27
針對伺服器硬碟速度讀寫測試,一般需要測試開啟cache和關閉cache的情況,這裡僅提供簡單的大檔案讀寫測試,從讀寫速度可以大概瞭解磁碟讀寫效能,具體測試內容如下:


兩伺服器硬碟讀寫測試:
首先要系統的磁碟對應的block size大小:tune2fs -l /dev/sda1 |grep 'Block size'
    檢視系統頁大小:   getconf PAGESIZE

系統1:

寫速度測試
date;dd if=/dev/zero of=/home/dbamob/tools/10GB bs=4096 count=2621440;date
Thu Oct 27 16:06:49 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 16.6973 s, 643 MB/s
Thu Oct 27 16:07:06 CST 2016

讀速度測試

date ;dd if=/home/dbamob/tools/10GB  bs=4096 of=/dev/null;date
Thu Oct 27 16:08:39 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 13.8736 s, 774 MB/s
Thu Oct 27 16:08:53 CST 2016


系統2:

寫測試

date;dd if=/dev/zero of=/home/dbamob/tools/10GB bs=4096 count=2621440;date
Thu Oct 27 16:45:46 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 223.38 s, 48.1 MB/s
Thu Oct 27 16:49:29 CST 2016

讀測試

date ;dd if=/home/dbamob/tools/10GB  bs=4096 of=/dev/null;date
Thu Oct 27 16:51:54 CST 2016
2621440+0 records in
2621440+0 records out
10737418240 bytes (11 GB) copied, 137.562 s, 78.1 MB/s
Thu Oct 27 16:54:11 CST 2016

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27067062/viewspace-2127230/,如需轉載,請註明出處,否則將追究法律責任。

相關文章