常用存储设备写入速度测试

/*********************************************************************
* Author          :     lile
* Modified        :     2020年4月15日星期三  16:56:13
* Email           :     [email protected]
* HomePage        :     lile777.blog.csdn.net
* CopyRight       :     该文章版权由lile所有。
*                       保留原文出处链接和本声明的前提下,可在非商业目的下任意传播和复制。
*                       对于商业目的下对本文的任何行为需经作者同意。
*********************************************************************/

0. 测试环境

/ # dmesg | grep achine
Linux version 4.9.37 (root@hi3559av100-virtual-machine) 
(gcc version 6.3.0 (HC&C V100R002C00B027_20181107) ) #8 SMP Mon Dec 9 16:05:35 CST 2019


Machine model: Hisilicon HI3559AV100 DEMO Board
/ # 

1. TF卡

/mnt/sata # time dd if=/dev/zero of=/mnt/sata/test2G bs=1k count=2000000
2000000+0 records in
2000000+0 records out
2048000000 bytes (1.9GB) copied, 129.786986 seconds, 15.0MB/s
real    2m 9.78s
user    0m 0.59s
sys     0m 9.55s
/mnt/sata # dmesg | tail 
mmc1: tuning done! candidates 0x7FFFFFC0: 
valid phase shift [6, 30] Final Phase:18
mmc1: new ultra high speed SDR104 SDHC card at address 0001
mmcblk1: mmc1:0001 SD32G 29.0 GiB 
 mmcblk1: p1
FAT-fs (mmcblk1p1): Volume was not properly unmounted. 
Some data may be corrupt. Please run fsck.
/mnt/sata # 

2. NVMe SSD

~ # time dd if=/dev/zero of=/nvme/speedtest bs=1k count=1000000
1000000+0 records in
1000000+0 records out
1024000000 bytes (976.6MB) copied, 4.053855 seconds, 240.9MB/s
real    0m 4.06s
user    0m 0.31s
sys     0m 3.72s
~ # df -h | grep nvm
/dev/nvme0n1            880.1G      1.3G    834.1G   0% /nvme
~ # 

3. mSATA SSD

~ # time dd if=/dev/zero of=/mnt/test bs=1k count=1000000
1000000+0 records in
1000000+0 records out
1024000000 bytes (976.6MB) copied, 8.115818 seconds, 120.3MB/s
real    0m 8.12s
user    0m 0.33s
sys     0m 4.53s
~ #

4. eMMC

~ # time dd if=/dev/zero of=/www/video/test bs=1k count=1000000
1000000+0 records in
1000000+0 records out
1024000000 bytes (976.6MB) copied, 11.353019 seconds, 86.0MB/s
real    0m 11.36s
user    0m 0.29s
sys     0m 4.14s
~ # ls -lh /www/video/test 
-rw-------    1 root     root      976.6M Sep  2 15:10 /www/video/test
~ # 

你可能感兴趣的:(Linux,应用开发)