wengzhe commented on PR #9297:
URL: https://github.com/apache/nuttx/pull/9297#issuecomment-1598017460
Hi, @masayuki2009
I've tried `qemu-armv8a:netnsh` on my local QEMU 7.2.2, but got different
result:
Latest upstream
```
> ~/qemu-7.2.2/build/qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic
-machine virt,virtualization=on,gic-version=3 -chardev stdio,id=con,mux=on
-serial chardev:con -global virtio-mmio.force-legacy=false -netdev
user,id=u1,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001
-device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.0 -mon
chardev=con,mode=readline -s -kernel ./nuttx
telnetd [4:100]
NuttShell (NSH) NuttX-12.1.0
nsh> uname -a
NuttX 12.1.0 c5641b0252 Jun 20 2023 10:01:13 arm64 qemu-armv8a
nsh> iperf -s -i 1
IP: 10.0.2.15
mode=tcp-server sip=10.0.2.15:5001,dip=0.0.0.0:5001, interval=1, time=0
accept: 10.0.2.2:43166
Interval Transfer Bandwidth
0.00- 1.01 sec 67930880 Bytes 538.07 Mbits/sec
1.01- 2.02 sec 68351360 Bytes 541.40 Mbits/sec
2.02- 3.03 sec 68620000 Bytes 543.52 Mbits/sec
3.03- 4.04 sec 66552640 Bytes 527.15 Mbits/sec
4.04- 5.05 sec 67802400 Bytes 537.05 Mbits/sec
5.05- 6.06 sec 65045920 Bytes 515.22 Mbits/sec
6.06- 7.07 sec 63118720 Bytes 499.95 Mbits/sec
7.07- 8.08 sec 65466400 Bytes 518.55 Mbits/sec
8.08- 9.09 sec 66342400 Bytes 525.48 Mbits/sec
9.09- 10.10 sec 65828480 Bytes 521.41 Mbits/sec
closed by the peer: 10.0.2.2:43166
iperf exit
nsh>
```
With this PR (rebased on top of c5641b0252)
```
> ~/qemu-7.2.2/build/qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic
-machine virt,virtualization=on,gic-version=3 -chardev stdio,id=con,mux=on
-serial chardev:con -global virtio-mmio.force-legacy=false -netdev
user,id=u1,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001
-device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.0 -mon
chardev=con,mode=readline -s -kernel ./nuttx
[42949667.950000] virtio_mmio_init_device: Device Id 0
[42949667.950000] virtio_register_mmio_device: virtio_mmio_device_init
failed, ret=-22
[42949667.950000] virtio_mmio_init_device: Device Id 0
[42949667.950000] virtio_register_mmio_device: virtio_mmio_device_init
failed, ret=-22
[42949667.950000] virtio_mmio_init_device: Device Id 0
[42949667.950000] virtio_register_mmio_device: virtio_mmio_device_init
failed, ret=-22
telnetd [4:100]
NuttShell (NSH) NuttX-12.1.0
nsh> uname -a
NuttX 12.1.0 0341475570 Jun 20 2023 10:05:45 arm64 qemu-armv8a
nsh> iperf -s -i 1
IP: 10.0.2.15
mode=tcp-server sip=10.0.2.15:5001,dip=0.0.0.0:5001, interval=1, time=0
accept: 10.0.2.2:37718
Interval Transfer Bandwidth
0.00- 1.01 sec 90867480 Bytes 719.74 Mbits/sec
1.01- 2.02 sec 91169700 Bytes 722.14 Mbits/sec
2.02- 3.03 sec 91539080 Bytes 725.06 Mbits/sec
3.03- 4.04 sec 93721780 Bytes 742.35 Mbits/sec
4.04- 5.05 sec 92512900 Bytes 732.78 Mbits/sec
5.05- 6.06 sec 94091160 Bytes 745.28 Mbits/sec
6.06- 7.07 sec 93721780 Bytes 742.35 Mbits/sec
7.07- 8.08 sec 92244260 Bytes 730.65 Mbits/sec
8.08- 9.09 sec 93553880 Bytes 741.02 Mbits/sec
9.09- 10.10 sec 92747960 Bytes 734.64 Mbits/sec
closed by the peer: 10.0.2.2:37718
iperf exit
nsh>
```
I've also tried with QEMU 6.2.0 installed by apt on my Ubuntu 22.04, got
similar result.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]