您現在的位置是:首頁 > 棋牌

RZG2L開發板評測|儲存讀寫速度與網路實測

  • 由 飛凌嵌入式 發表于 棋牌
  • 2022-09-22
簡介83 KBytes- - - - - - - - - - - - - - - - - - -[ ID] Interval TransferBitrate Retr[5] 0

線路板rz是什麼電器元件

今年5月

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=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:~# 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.USB 2.0讀寫測試

OK-G2LD-C支援兩個USB2。0介面,使用者可以在任何一個板載USB HOST介面上連線USB滑鼠、USB鍵盤、隨身碟等裝置,並且支援以上裝置的熱插拔。這裡我們以讀寫USB2。0介面的隨身碟為例。

寫入測試:

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

透過以上測試結果可以看到,

USB2.0的寫入速度為5.9 MB/s,讀取速度為35.9MB/s

4.DDR頻寬測試

執行測試操作

root@okg2l:~# memory_bandwidth。sh

列印資訊如下:

RZG2L開發板評測|儲存讀寫速度與網路實測

RZG2L開發板評測|儲存讀寫速度與網路實測

OK-G2LD-C的DDR4頻寬如上圖所示,

讀取頻寬2765Mb/s,讀入頻寬約為891Mb/s

網路測試

網路打流測試

OK-G2LD-C開發板搭載兩個千兆網口,小編使用iperf3打流測試其實際網路頻寬。

此次測試使用OK-G2LD-C開發板和OK1028-C開發板的千兆網口進行對測,其中

OK-G2LD-C開發板作為客戶端,OK1028-C開發板作為服務端

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

透過以上資料可以看到,

千兆網口的傳輸頻寬實際約為480 MBytes。

Top