CV-Bowen commented on PR #9297:
URL: https://github.com/apache/nuttx/pull/9297#issuecomment-1598642473

   @masayuki2009 Here are my elfs with qemu-armv8a:netnsh: 
[arm64_netnsh_test.zip](https://github.com/apache/nuttx/files/11800075/arm64_netnsh_test.zip)
   In the zip, `arm64_netnsh` and `arm64_netnsh_old` are elfs with new and old 
virtio framework respectively.
   And my test result also shows the newer is better:
   ```c
   ==========================================================
   NEW:
   wangbowen@ubuntu:/data/project/code/apache$ sudo qemu-system-aarch64 -cpu 
cortex-a53 -nographic -machine virt,virtualization=on,gic-version=3 -chardev 
stdio,id=con,mux=on -serial chardev:con -global virtio-mmio.force-legacy=false 
-device virtio-serial-device,bus=virtio-mmio-bus.0 -chardev 
socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=foo -device 
virtconsole,chardev=foo -device virtio-rng-device,bus=virtio-mmio-bus.1 -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,hostfwd=udp:127.0.0.1:15001-10.0.2.15:5001
 -device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.2 -drive 
file=./mydisk-1gb.img,if=none,format=raw,id=hd -device 
virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd -mon chardev=con,mode=readline 
-kernel ./arm64_netnsh
   telnetd [4:100]
   
   NuttShell (NSH) NuttX-12.1.0
   nsh> 
   nsh> 
   nsh> 
   nsh> uname -a
   NuttX  12.1.0 ec18c3427eb Jun 20 2023 19:49:59 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:51914
   
              Interval         Transfer         Bandwidth
   
      0.00-   1.01 sec   55440580 Bytes  439.13 Mbits/sec
      1.01-   2.02 sec   56212920 Bytes  445.25 Mbits/sec
      2.02-   3.03 sec   55776380 Bytes  441.79 Mbits/sec
      3.03-   4.04 sec   55272680 Bytes  437.80 Mbits/sec
      4.04-   5.05 sec   55037620 Bytes  435.94 Mbits/sec
   closed by the peer: 10.0.2.2:51914
   iperf exit
   nsh> QEMU: Terminated
   
   ==========================================================
   OLD:
   wangbowen@ubuntu:/data/project/code/apache$ sudo qemu-system-aarch64 -cpu 
cortex-a53 -nographic -machine virt,virtualization=on,gic-version=3 -chardev 
stdio,id=con,mux=on -serial chardev:con -global virtio-mmio.force-legacy=false 
-device virtio-serial-device,bus=virtio-mmio-bus.0 -chardev 
socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=foo -device 
virtconsole,chardev=foo -device virtio-rng-device,bus=virtio-mmio-bus.1 -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,hostfwd=udp:127.0.0.1:15001-10.0.2.15:5001
 -device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.2 -drive 
file=./mydisk-1gb.img,if=none,format=raw,id=hd -device 
virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd -mon chardev=con,mode=readline 
-kernel ./arm64_netnsh_old
   telnetd [4:100]
   
   NuttShell (NSH) NuttX-12.1.0
   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:57666
   
              Interval         Transfer         Bandwidth
   
      0.00-   1.01 sec   45236640 Bytes  358.31 Mbits/sec
      1.01-   2.02 sec   45820640 Bytes  362.94 Mbits/sec
      2.02-   3.03 sec   45563680 Bytes  360.90 Mbits/sec
      3.03-   4.04 sec   45516960 Bytes  360.53 Mbits/sec
      4.04-   5.05 sec   45318400 Bytes  358.96 Mbits/sec
   closed by the peer: 10.0.2.2:57666
   iperf exit
   nsh> unmae -a
   nsh: unmae: command not found
   nsh> uname -a
   NuttX  12.1.0 c9f610f44f2 Jun 20 2023 19:46:48 arm64 qemu-armv8a
   nsh> QEMU: Terminated
   
   ==========================================================
   GDB VERSION:
   wangbowen@ubuntu:/data/project/code/apache$ riscv64-unknown-elf-gdb --version
   GNU gdb (SiFive GDB 8.3.0-2019.08.0) 8.3
   Copyright (C) 2019 Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.
   
   ==========================================================
   QEMU VERSION:
   wangbowen@ubuntu:/data/project/code/apache$ qemu-system-aarch64 --version
   QEMU emulator version 7.2.0
   Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
   wangbowen@ubuntu:/data/project/code/apache$ 
   ```
   
   


-- 
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]

Reply via email to