Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

genet0 speeds under NetBSD/aarch64 on Rpi4 8 GB using UEFI/ACPI v1.17 firmware



Something is odd with your context? Or things have changed since
I installed from armbsd.org back in late May or so? (I've updated
uefi software but not NetBSD.) RPi4 8 GiByte RAM model against a
FreeBSD iperf3 server (a threadripper system), just the -R
direction:

# iperf3 -R -c 192.168.1.120 --get-server-output --repeating-payload -t 20 -O 5
Connecting to host 192.168.1.120, port 5201
Reverse mode, remote host 192.168.1.120 is sending
[  5] local 192.168.1.131 port 65529 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  70.2 MBytes   589 Mbits/sec                  (omitted)
[  5]   1.00-2.00   sec  79.9 MBytes   671 Mbits/sec                  (omitted)
[  5]   2.00-3.00   sec  56.2 MBytes   471 Mbits/sec                  (omitted)
[  5]   3.00-4.01   sec  44.1 MBytes   365 Mbits/sec                  (omitted)
[  5]   4.01-5.01   sec  43.2 MBytes   362 Mbits/sec                  (omitted)
[  5]   0.00-1.00   sec  28.5 MBytes   239 Mbits/sec                  
[  5]   1.00-2.00   sec  54.4 MBytes   456 Mbits/sec                  
[  5]   2.00-3.01   sec  38.0 MBytes   315 Mbits/sec                  
[  5]   3.01-4.00   sec  55.4 MBytes   469 Mbits/sec                  
[  5]   4.00-5.00   sec  56.3 MBytes   472 Mbits/sec                  
[  5]   5.00-6.01   sec  45.0 MBytes   374 Mbits/sec                  
[  5]   6.01-7.00   sec  70.1 MBytes   594 Mbits/sec                  
[  5]   7.00-8.00   sec  53.6 MBytes   450 Mbits/sec                  
[  5]   8.00-9.01   sec  49.4 MBytes   410 Mbits/sec                  
[  5]   9.01-10.01  sec  36.4 MBytes   305 Mbits/sec                  
[  5]  10.01-11.00  sec  40.2 MBytes   341 Mbits/sec                  
[  5]  11.00-12.00  sec  71.0 MBytes   597 Mbits/sec                  
[  5]  12.00-13.00  sec  37.4 MBytes   314 Mbits/sec                  
[  5]  13.00-14.01  sec  42.2 MBytes   350 Mbits/sec                  
[  5]  14.01-15.00  sec  15.5 MBytes   132 Mbits/sec                  
[  5]  15.00-16.01  sec  20.7 MBytes   172 Mbits/sec                  
[  5]  16.01-17.01  sec  23.0 MBytes   193 Mbits/sec                  
[  5]  17.01-18.00  sec  45.8 MBytes   388 Mbits/sec                  
[  5]  18.00-19.00  sec  55.0 MBytes   461 Mbits/sec                  
[  5]  19.00-20.00  sec  25.4 MBytes   213 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-20.21  sec   869 MBytes   361 Mbits/sec  4604             sender
[  5]   0.00-20.00  sec   863 MBytes   362 Mbits/sec                  receiver

Server output:
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.131, port 65530
[  5] local 192.168.1.120 port 5201 connected to 192.168.1.131 port 65529
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  55.0 MBytes   461 Mbits/sec  162   28.3 KBytes       (omitted)
[  5]   1.00-2.00   sec  79.5 MBytes   667 Mbits/sec  156   38.3 KBytes       (omitted)
[  5]   2.00-3.00   sec  57.3 MBytes   480 Mbits/sec  214   14.3 KBytes       (omitted)
[  5]   3.00-4.00   sec  56.9 MBytes   478 Mbits/sec  245   19.8 KBytes       (omitted)
[  5]   4.00-5.00   sec  39.2 MBytes   329 Mbits/sec  154   19.8 KBytes       (omitted)
[  5]   0.00-1.01   sec  28.6 MBytes   238 Mbits/sec  162   21.4 KBytes       
[  5]   1.01-2.00   sec  46.3 MBytes   391 Mbits/sec  207   32.7 KBytes       
[  5]   2.00-3.00   sec  51.8 MBytes   435 Mbits/sec  328   11.4 KBytes       
[  5]   3.00-4.00   sec  40.3 MBytes   338 Mbits/sec  157   24.1 KBytes       
[  5]   4.00-5.00   sec  69.1 MBytes   577 Mbits/sec  317   14.3 KBytes       
[  5]   5.00-6.00   sec  43.8 MBytes   369 Mbits/sec  184   17.0 KBytes       
[  5]   6.00-7.00   sec  57.6 MBytes   483 Mbits/sec  224   42.7 KBytes       
[  5]   7.00-8.00   sec  54.7 MBytes   459 Mbits/sec  294   15.6 KBytes       
[  5]   8.00-9.00   sec  55.5 MBytes   466 Mbits/sec  266   26.9 KBytes       
[  5]   9.00-10.01  sec  44.2 MBytes   367 Mbits/sec  234   8.55 KBytes       
[  5]  10.01-11.00  sec  27.2 MBytes   230 Mbits/sec  205   29.8 KBytes       
[  5]  11.00-12.00  sec  69.4 MBytes   582 Mbits/sec  415   18.5 KBytes       
[  5]  12.00-13.00  sec  37.8 MBytes   317 Mbits/sec  200   17.0 KBytes       
[  5]  13.00-14.00  sec  56.5 MBytes   474 Mbits/sec  274   28.4 KBytes       
[  5]  14.00-15.00  sec  14.8 MBytes   123 Mbits/sec   85   11.4 KBytes       
[  5]  15.00-16.00  sec  21.9 MBytes   185 Mbits/sec  173   38.4 KBytes       
[  5]  16.00-17.00  sec  18.9 MBytes   159 Mbits/sec  123   19.8 KBytes       
[  5]  17.00-18.00  sec  35.8 MBytes   300 Mbits/sec  227   4.24 KBytes       
[  5]  18.00-19.00  sec  55.1 MBytes   462 Mbits/sec  277   25.5 KBytes       
[  5]  19.00-20.00  sec  35.4 MBytes   297 Mbits/sec  230   19.9 KBytes       
[  5]  20.00-20.21  sec  4.60 MBytes   184 Mbits/sec   22   7.13 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-20.21  sec   869 MBytes   361 Mbits/sec  4604             sender


iperf Done.

For reference:

# uname -ap
NetBSD NBSDRPi4 9.99.64 NetBSD 9.99.64 (GENERIC64) #1: Sun May 31 01:41:16 UTC 2020  root@NBSDRPi4:/usr/obj/sys/arch/evbarm/compile/GENERIC64 evbarm aarch64

But I will note that I've gotten faster performance from NetBSD
via USB3 Ethernet devices. But I've also had crashes from such
at other times. Ignoring the crashes for a bit . . .
(I'll note these are extractions from an E-mail sequence
with someone else at the time.)

ure0:

iperf3 -R -c 192.168.1.120 --get-server-output -B 192.168.1.143 :
Connecting to host 192.168.1.120, port 5201
Reverse mode, remote host 192.168.1.120 is sending
[  5] local 192.168.1.143 port 65530 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   106 MBytes   893 Mbits/sec                  
[  5]   1.00-2.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   2.00-3.00   sec   111 MBytes   929 Mbits/sec                  
[  5]   3.00-4.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   4.00-5.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   5.00-6.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   6.00-7.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   7.00-8.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   8.00-9.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   9.00-10.00  sec   111 MBytes   930 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.62  sec  1.08 GBytes   873 Mbits/sec  249             sender
[  5]   0.00-10.00  sec  1.08 GBytes   926 Mbits/sec                  receiver

Server output:
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.143, port 65531
[  5] local 192.168.1.120 port 5201 connected to 192.168.1.143 port 65530
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  38.7 MBytes   325 Mbits/sec    0   65.0 KBytes       
[  5]   1.00-2.00   sec   110 MBytes   926 Mbits/sec   34   96.8 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   930 Mbits/sec   30    129 KBytes       
[  5]   3.00-4.00   sec   111 MBytes   929 Mbits/sec   24    162 KBytes       
[  5]   4.00-5.00   sec   111 MBytes   930 Mbits/sec   26    193 KBytes       
[  5]   5.00-6.00   sec   111 MBytes   930 Mbits/sec   23    194 KBytes       
[  5]   6.00-7.00   sec   111 MBytes   930 Mbits/sec   25    193 KBytes       
[  5]   7.00-8.00   sec   111 MBytes   930 Mbits/sec   25    193 KBytes       
[  5]   8.00-9.00   sec   111 MBytes   930 Mbits/sec   25    194 KBytes       
[  5]   9.00-10.00  sec   111 MBytes   930 Mbits/sec   37    193 KBytes       
[  5]  10.00-10.62  sec  68.5 MBytes   932 Mbits/sec    0    193 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.62  sec  1.08 GBytes   873 Mbits/sec  249             sender


iperf Done.

axen0:

iperf3 -R -c 192.168.1.120 -B 192.168.1.140 :

Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.140, port 65525
[  5] local 192.168.1.120 port 5201 connected to 192.168.1.140 port 65524
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  33.7 MBytes   282 Mbits/sec    0   33.9 KBytes       
[  5]   1.00-2.00   sec  96.0 MBytes   805 Mbits/sec    2   48.9 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   930 Mbits/sec   12   81.9 KBytes       
[  5]   3.00-4.00   sec  83.8 MBytes   703 Mbits/sec   18    114 KBytes       
[  5]   4.00-5.00   sec  83.7 MBytes   702 Mbits/sec   42    145 KBytes       
[  5]   5.00-6.00   sec  84.8 MBytes   712 Mbits/sec   50    178 KBytes       
[  5]   6.00-7.00   sec   111 MBytes   929 Mbits/sec   40    194 KBytes       
[  5]   7.00-8.00   sec  83.6 MBytes   701 Mbits/sec   40    194 KBytes       
[  5]   8.00-9.00   sec   111 MBytes   930 Mbits/sec   47    194 KBytes       
[  5]   9.00-10.00  sec   111 MBytes   927 Mbits/sec   50    193 KBytes       
[  5]  10.00-10.62  sec  68.4 MBytes   929 Mbits/sec   46    193 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.62  sec   977 MBytes   772 Mbits/sec  347             sender

and as seen on the receiver:

# iperf3 -R -c 192.168.1.120 -B 192.168.1.140
Connecting to host 192.168.1.120, port 5201
Reverse mode, remote host 192.168.1.120 is sending
[  5] local 192.168.1.140 port 65524 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  87.8 MBytes   736 Mbits/sec                  
[  5]   1.00-2.00   sec   110 MBytes   924 Mbits/sec                  
[  5]   2.00-3.00   sec  83.7 MBytes   702 Mbits/sec                  
[  5]   3.00-4.00   sec  83.6 MBytes   701 Mbits/sec                  
[  5]   4.00-5.00   sec  84.8 MBytes   711 Mbits/sec                  
[  5]   5.00-6.00   sec   111 MBytes   931 Mbits/sec                  
[  5]   6.00-7.00   sec  83.4 MBytes   700 Mbits/sec                  
[  5]   7.00-8.00   sec   111 MBytes   930 Mbits/sec                  
[  5]   8.00-9.00   sec   111 MBytes   929 Mbits/sec                  
[  5]   9.00-10.00  sec   111 MBytes   929 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.62  sec   977 MBytes   772 Mbits/sec  347             sender
[  5]   0.00-10.00  sec   977 MBytes   819 Mbits/sec                  receiver

As for the crashes . . .

ure0 example:

[  5] local 192.168.1.143 port 65532 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.01   sec  9.27 MBytes  77.0 Mbits/sec                  
[  5]   1.01-2.01   sec  0.00 Bytes  0.00 bits/sec                  
[  5]   2.01-3.01   sec  0.00 Bytes  0.00 bits/sec                  
[  5]   3.01-4.01   sec  0.00 Bytes  0.00 bits/sec                  
[  5]   4.01-5.01   sec  0.00 Bytes  0.00 bits/sec                  
[ 442565.6550425] ure0: watchdog timeout
[ 442565.6550425] panic: kernel diagnostic assertion "xfer->ux_state == XFER_BUSY" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1120 xfer 0xffff0000bef2ba50 state is 9e
[ 442565.6750425] cpu3: Begin traceback...
[ 442565.6750425] trace fp ffffc00051c35a00
[ 442565.6850424] fp ffffc00051c35a20 vpanic() at ffffc000004b0334 netbsd:vpanic+0x15c
[ 442565.6850424] fp ffffc00051c35a90 kern_assert() at ffffc000007ce26c netbsd:kern_assert+0x5c
[ 442565.6950425] fp ffffc00051c35b20 usb_insert_transfer() at ffffc00000101c84 netbsd:usb_insert_transfer+0xdc
[ 442565.7050423] fp ffffc00051c35b40 xhci_device_bulk_transfer() at ffffc000001a5144 netbsd:xhci_device_bulk_transfer+0x2c
[ 442565.7150424] fp ffffc00051c35b70 usbd_transfer() at ffffc0000010061c netbsd:usbd_transfer+0xa4
[ 442565.7250423] fp ffffc00051c35bb0 usbnet_if_start() at ffffc00000106d40 netbsd:usbnet_if_start+0x1b8
[ 442565.7350431] fp ffffc00051c35c20 usb_transfer_complete() at ffffc000001019a4 netbsd:usb_transfer_complete+0x1e4
[ 442565.7450423] fp ffffc00051c35c60 xhci_softintr() at ffffc000001a5c84 netbsd:xhci_softintr+0x19c
[ 442565.7550423] fp ffffc00051c35ce0 usb_soft_intr() at ffffc000000fdb7c netbsd:usb_soft_intr+0x24
[ 442565.7650422] fp ffffc00051c35d40 softint_dispatch() at ffffc0000047d0ac netbsd:softint_dispatch+0xec
[ 442565.7750422] fp ffffc00051c0dcc0 cpu_switchto_softint() at ffffc00000088b8c netbsd:cpu_switchto_softint+0x68
[ 442565.7850421] fp ffffc00051c0ddf8 cpu_idle() at ffffc00000089b70 netbsd:cpu_idle+0x58
[ 442565.7950421] fp ffffc00051c0de40 idle_loop() at ffffc0000045752c netbsd:idle_loop+0x16c
[ 442565.7950421] fp 0000000000000000 cpu_mpstart() at ffffc00000001a34 netbsd:cpu_mpstart+0x158
[ 442565.8050421] cpu3: End traceback...

axen0 example:

[  5] local 192.168.1.147 port 65527 connected to 192.168.1.120 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.01   sec  1.73 MBytes  14.3 Mbits/sec                  (omitted)
[  5]   1.01-2.01   sec  0.00 Bytes  0.00 bits/sec                  (omitted)
[  5]   2.01-3.01   sec  0.00 Bytes  0.00 bits/sec                  (omitted)
[  5]   3.01-4.01   sec  0.00 Bytes  0.00 bits/sec                  (omitted)
[ 1529.8866989] axen0: watchdog timeout
[ 1529.8866989] panic: kernel diagnostic assertion "xfer->ux_state == XFER_BUSY" failed: file "/usr/src/sys/dev/usb/usbdi.c", line 1120 xfer 0xffff0000bef34e10 state is 9e
[ 1529.8966993] cpu3: Begin traceback...
[ 1529.8966993] trace fp ffffc00051c35a00
[ 1529.9066990] fp ffffc00051c35a20 vpanic() at ffffc000004b0334 netbsd:vpanic+0x15c
[ 1529.9166990] fp ffffc00051c35a90 kern_assert() at ffffc000007ce26c netbsd:kern_assert+0x5c
[ 1529.9166990] fp ffffc00051c35b20 usb_insert_transfer() at ffffc00000101c84 netbsd:usb_insert_transfer+0xdc
[ 1529.9266991] fp ffffc00051c35b40 xhci_device_bulk_transfer() at ffffc000001a5144 netbsd:xhci_device_bulk_transfer+0x2c
[ 1529.9366992] fp ffffc00051c35b70 usbd_transfer() at ffffc0000010061c netbsd:usbd_transfer+0xa4
[ 1529.9466991] fp ffffc00051c35bb0 usbnet_if_start() at ffffc00000106d40 netbsd:usbnet_if_start+0x1b8
[ 1529.9566993] fp ffffc00051c35c20 usb_transfer_complete() at ffffc000001019a4 netbsd:usb_transfer_complete+0x1e4
[ 1529.9666993] fp ffffc00051c35c60 xhci_softintr() at ffffc000001a5c84 netbsd:xhci_softintr+0x19c
[ 1529.9766992] fp ffffc00051c35ce0 usb_soft_intr() at ffffc000000fdb7c netbsd:usb_soft_intr+0x24
[ 1529.9866992] fp ffffc00051c35d40 softint_dispatch() at ffffc0000047d0ac netbsd:softint_dispatch+0xec
[ 1529.9966995] fp ffffc00051c0dcc0 cpu_switchto_softint() at ffffc00000088b8c netbsd:cpu_switchto_softint+0x68
[ 1530.0066993] fp ffffc00051c0ddf8 cpu_idle() at ffffc00000089b70 netbsd:cpu_idle+0x58
[ 1530.0166991] fp ffffc00051c0de40 idle_loop() at ffffc0000045752c netbsd:idle_loop+0x16c
[ 1530.0166991] fp 0000000000000000 cpu_mpstart() at ffffc00000001a34 netbsd:cpu_mpstart+0x158
[ 1530.0266993] cpu3: End traceback...

I have not (yet?) figured what makes the difference
between works-fine and getting such crashes. But
it is not chipset specific.

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



Home | Main Index | Thread Index | Old Index