![](https://img.51dongshi.com/20250108/wz/18378504452.jpg)
u盤usb2030寫入()今年5月,飛凌嵌入式推出了基于瑞薩RZ/G2L處理器研發設計的FET-G2LD-C核心板及配套的OK-G2LD-C開發板。產品發布后小編就針對這套板卡的穩定性、功耗和啟動等方面進行了快速上手評測,為大家答疑解惑。今天小編如約為大家帶來了【第二期評測】——針對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=fsync500+0 records in500+0 records out524288000 bytes (524 MB)copied, 7.81532s, 67.1MB/s讀取測試:root@okg2l:~# dd if=/test of=/dev/null bs=1M count= 500 conv=fsync500+0 records in500+0 records out524288000 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:~# dd if=/dev/zero of=/run/media/mmcblk1p1/test bs=1M count=500 conv=fsync \oflag=direct500+0 records in500+0 records out524288000 bytes (524 MB) copied, 107.154s, 4.9MB/s讀取測試:root@okg2l:~# dd if=/run/media/mmcblk1p1/test of=/dev/null bs=1M iflag=direct500+0 records in500+0 records out524288000 bytes (524 MB) copied, 14.7009s, 35.7MB/s通過以上測試可以看到,TF卡的寫入速度為4.9 MB/s,讀取速度為35.7 MB/s。3.USB 2.0讀寫測試OK-G2LD-C支持兩個USB2.0接口,用戶可以在任何一個板載USB HOST接口上連接USB鼠標、USB鍵盤、U盤等設備,并且支持以上設備的熱插拔。這里我們以讀寫USB2.0接口的U盤為例。寫入測試:root@okg2l:~# dd if=/dev/zero of=/run/media/sda1/test bs=1M count=50 conv = fsync \oflag=direct50+0 records in50+0 records out52428800 bytes (52 MB) copied, 8.81593s, 5.9MB/s讀取測試:root@okg2l:~# dd if=/run/media/sda1/test of=/dev/null bs=1M iflag=direct50+0 records in50+0 records out52428800 bytes (52 MB) copied, 1.46226s, 35.9MB/s通過以上測試結果可以看到,USB2.0的寫入速度為5.9 MB/s,讀取速度為35.9MB/s。4.DDR帶寬測試執行測試操作root@okg2l:~# memory_bandwidth.sh打印信息如下:OK-G2LD-C的DDR4帶寬如上圖所示,讀取帶寬2765Mb/s,讀入帶寬約為891Mb/s。網絡測試網絡打流測試OK-G2LD-C開發板搭載兩個千兆網口,小編使用iperf3打流測試其實際網絡帶寬。root@okg2l:~# iperf3 -c 192.168.0.2 -i 5 -t 60Connecting to host 192.168.0.2, port 5201[5] local 192.168.0.232 port 39804 connected to 192.168.0.2 port 5201[ ID] IntervalTransferBitrateRetrCwnd[5] 0.00-5.00 sec 38.3 MBytes64.3 Mbits/sec1736 1.41 KBytes[5] 5.00-10.00sec44.2 MBytes74.2 Mbits/sec1785 4.24 KBytes[5]10.00-15.00sec67.7 MBytes 114 Mbits/sec2741 2.83 KBytes[5]15.00-20.00sec26.0 MBytes43.6 Mbits/sec1043 1.41 KBytes[5]20.00-25.00sec53.2 MBytes89.2 Mbits/sec2054 2.83 KBytes[5]25.00-30.00sec42.4 MBytes71.2 Mbits/sec2030 2.83 KBytes[5]30.00-35.00sec44.1 MBytes74.0 Mbits/sec2085 5.66 KBytes[5]35.00-40.00sec32.3 MBytes54.2 Mbits/sec1528 1.41 KBytes[5]40.00-45.00sec33.6 MBytes56.4 Mbits/sec1671 11.3 KBytes[5]45.00-50.00sec45.1 MBytes75.6 Mbits/sec2151 1.41 KBytes[5]50.00-55.00sec28.1 MBytes47.1 Mbits/sec1388 1.41 KBytes[5]55.00-60.00sec24.7 MBytes41.5 Mbits/sec1222 2.83 KBytes- - - - - - - - - - - - - - - - - - - [ ID] Interval TransferBitrate Retr[5] 0.00-60.00sec 480 MBytes67.1 Mbits/sec21434sender[5] 0.00-60.00sec 479 MBytes67.0 Mbits/secreceiver此次測試使用OK-G2LD-C開發板和OK1028-C開發板的千兆網口進行對測,其中OK-G2LD-C開發板作為客戶端,OK1028-C開發板作為服務端。通過以上數據可以看到,千兆網口的傳輸帶寬實際約為480 MBytes。