本篇文章基于飞凌嵌入式OK-G2LD-C开发板,针对其存储读写速度和千兆网带宽进行测试。相信能够帮助各位工程师小伙伴更加深入地了解这套板卡。
存储读写速度测试
1.eMMC读写测试
OK-G2LD-C平台的eMMC默认运行于HS200 模式,工作位宽为8。下面简单测试eMMC的读写速度,这里我们以读写ext4 文件系统为例。
写入测试:
root@okg2l:~# dd if=/dev/zero of=/test bs=1M count= 500 conv=fsync
500+0 records in
500+0 records out
524288000 bytes (524 MB)copied, 7.81532s, 67.1MB/s
读取测试:
root@okg2l:~# dd if=/test of=/dev/null bs=1M count= 500 conv=fsync
500+0 records in
500+0 records out
524288000 bytes (524 MB)copied, 6.49422s,80.7MB/s
通过以上可以看到,eMMC的写入速度为67.1MB/s,读取速度为80.7 MB/s。
2.TF卡读写测试
OK-G2LD-C平台的TF卡默认运行于SDR104模式,工作位宽为4,下面简单测试TF卡的读写速度,我们仍然以读写ext4文件系统为例。
写入测试:
root@okg2l:~# d