没有固态硬盘,普通硬盘和卡,卡真弱,也没有千兆网,欢迎提供
方法1:
sudo hdparm -t /dev/sda1
测试结果
1虚-Timing buffered disk reads: 418 MB in 3.01 seconds = 138.91 MB/sec 2卡-Timing buffered disk reads: 62 MB in 3.00 seconds = 20.65 MB/sec 3实-Timing buffered disk reads: 512 MB in 2.50 seconds = 204.59 MB/sec
方法2:
time dd if=/dev/zero of=~/test.dat bs=1M count=512
测试结果(写)
1虚-536870912 bytes (537 MB, 512 MiB) copied, 3.41994 s, 157 MB/s 5368709120 bytes (5.4 GB, 5.0 GiB) copied, 23.7681 s, 226 MB/s 2卡-536870912 bytes (537 MB) copied, 231.788 s, 2.3 MB/s 3实-536870912 bytes (537 MB) copied, 0.278789 s, 1.9 GB/s 5368709120 bytes (5.4 GB) copied, 23.4228 s, 229 MB/s 53687091200 bytes (54 GB) copied, 236.581 s, 227 MB/s time dd if=~/test.dat of=/dev/null bs=1M
测试结果(读)
1虚-5368709120 bytes (5.4 GB, 5.0 GiB) copied, 22.9912 s, 234 MB/s 2卡-536870912 bytes (537 MB) copied, 24.172 s, 22.2 MB/s 3实-5368709120 bytes (5.4 GB) copied, 0.631668 s, 8.5 GB/s 53687091200 bytes (54 GB) copied, 256.552 s, 209 MB/s
加测(100M网)
time sudo dd if=/dev/zero of=/mnt/test.dat bs=1M count=512 536870912 bytes (537 MB) copied, 46.0375 s, 11.7 MB/s time sudo dd if=/mnt/test.datt of=/dev/null bs=1M 536870912 bytes (537 MB) copied, 46.1256 s, 11.6 MB/s