瑞薩RZ/G2L ARM開發(fā)板存儲(chǔ)讀寫速度與網(wǎng)絡(luò)實(shí)測

本篇文章基于飛凌嵌入式OK-G2LD-C開發(fā)板,針對(duì)其存儲(chǔ)讀寫速度和千兆網(wǎng)帶寬進(jìn)行測試。相信能夠幫助各位工程師小伙伴更加深入地了解這套板卡。

存儲(chǔ)讀寫速度測試

1.eMMC讀寫測試

OK-G2LD-C平臺(tái)的eMMC默認(rèn)運(yùn)行于HS200 模式,工作位寬為8。下面簡單測試eMMC的讀寫速度,這里我們以讀寫ext4 文件系統(tǒng)為例。

寫入測試:

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平臺(tái)的TF卡默認(rèn)運(yùn)行于SDR104模式,工作位寬為4,下面簡單測試TF卡的讀寫速度,我們?nèi)匀灰宰x寫ext4文件系統(tǒng)為例。

寫入測試:

root@okg2l:~# dd if=/dev/zero of=/run/media/mmcblk1p1/test bs=1M count=500 conv=fsync \oflag=direct

500+0 records in

500+0 records out

524288000 bytes (524 MB) copied, 107.154s, 4.9MB/s

讀取測試:

root@okg2l:~# dd if=/run/media/mmcblk1p1/test of=/dev/null bs=1M iflag=direct

500+0 records in

500+0 records out

524288000 bytes (524 MB) copied, 14.7009s, 35.7MB/s

通過以上測試可以看到,TF卡的寫入速度為4.9 MB/s,讀取速度為35.7 MB/s。

3.USB2.0讀寫測試

OK-G2LD-C支持兩個(gè)USB2.0接口,用戶可以在任何一個(gè)板載USB HOST接口上連接USB鼠標(biāo)、USB鍵盤、U盤等設(shè)備,并且支持以上設(shè)備的熱插拔。這里我們以讀寫USB2.0接口的U盤為例。

寫入測試:

root@okg2l:~# dd if=/dev/zero of=/run/media/sda1/test bs=1M count=50 conv = fsync \oflag=direct

50+0 records in

50+0 records out

52428800 bytes (52 MB) copied, 8.81593s, 5.9MB/s

讀取測試:

root@okg2l:~# dd if=/run/media/sda1/test of=/dev/null bs=1M iflag=direct

50+0 records in

50+0 records out

52428800 bytes (52 MB) copied, 1.46226s, 35.9MB/s

通過以上測試結(jié)果可以看到,USB2.0的寫入速度為5.9 MB/s,讀取速度為35.9MB/s。

4.DDR帶寬測試

執(zhí)行測試操作

root@okg2l:~# memory_bandwidth.sh

打印信息如下:

OK-G2LD-C的DDR4帶寬如上圖所示,讀取帶寬2765Mb/s,讀入帶寬約為891Mb/s。

網(wǎng)絡(luò)測試

網(wǎng)絡(luò)打流測試

OK-G2LD-C開發(fā)板搭載兩個(gè)千兆網(wǎng)口,小編使用iperf3打流測試其實(shí)際網(wǎng)絡(luò)帶寬。

root@okg2l:~# iperf3 -c 192.168.0.2 -i 5 -t 60

Connecting 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] Interval? Transfer? Bitrate? Retr? Cwnd

[? 5]? 0.00-5.00? sec? 38.3 MBytes? 64.3 Mbits/sec? 1736? 1.41 KBytes

[? 5]? 5.00-10.00? sec? 44.2 MBytes? 74.2 Mbits/sec? 1785? 4.24 KBytes

[? 5]? 10.00-15.00? sec? 67.7 MBytes? 114 Mbits/sec? 2741? 2.83 KBytes

[? 5]? 15.00-20.00? sec? 26.0 MBytes? 43.6 Mbits/sec? 1043? 1.41 KBytes

[? 5]? 20.00-25.00? sec? 53.2 MBytes? 89.2 Mbits/sec? 2054? 2.83 KBytes

[? 5]? 25.00-30.00? sec? 42.4 MBytes? 71.2 Mbits/sec? 2030? 2.83 KBytes

[? 5]? 30.00-35.00? sec? 44.1 MBytes? 74.0 Mbits/sec? 2085? 5.66 KBytes

[? 5]? 35.00-40.00? sec? 32.3 MBytes? 54.2 Mbits/sec? 1528? 1.41 KBytes

[? 5]? 40.00-45.00? sec? 33.6 MBytes? 56.4 Mbits/sec? 1671? 11.3 KBytes

[? 5]? 45.00-50.00? sec? 45.1 MBytes? 75.6 Mbits/sec? 2151? 1.41 KBytes

[? 5]? 50.00-55.00? sec? 28.1 MBytes? 47.1 Mbits/sec? 1388? 1.41 KBytes

[? 5]? 55.00-60.00? sec? 24.7 MBytes? 41.5 Mbits/sec? 1222? 2.83 KBytes

- - - - - - - - - - - - - - - - - - -

[ ID] Interval? Transfer? Bitrate? Retr

[? 5]? 0.00-60.00? sec? 480 MBytes? 67.1 Mbits/sec? 21434? ? sender

[? 5]? 0.00-60.00? sec? 479 MBytes? 67.0 Mbits/sec? ? ? ? ? ? ? receiver

此次測試使用OK-G2LD-C開發(fā)板和OK1028-C開發(fā)板的千兆網(wǎng)口進(jìn)行對(duì)測,其中OK-G2LD-C開發(fā)板作為客戶端,OK1028-C開發(fā)板作為服務(wù)端。通過以上數(shù)據(jù)可以看到,千兆網(wǎng)口的傳輸帶寬實(shí)際約為480 MBytes。

以上就是小編為大家?guī)淼腛K-G2LD-C開發(fā)板存儲(chǔ)讀寫速度和千兆網(wǎng)口實(shí)際帶寬的測試,希望能夠?qū)Ω魑还こ處熜』锇橛兴鶐椭?/p>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容