masayuki2009 commented on issue #7802:
URL: https://github.com/apache/nuttx/issues/7802#issuecomment-1341856827
@anchao
I noticed that similar performance regression happens with the virtnet (e.g.
`qemu-armv8a:netnsh`)
```
After applying net/l2/l3/l4: add support of iob offload
+ /home/ishikawa/opensource/QEMU/qemu-7.1/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 -kernel ./nuttx
telnetd [4:100]
NuttShell (NSH) NuttX-10.4.0
nsh> uname -a
NuttX 10.4.0 34d2cde8a8 Dec 8 2022 10:40:53 arm64 qemu-armv8a
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK
USED FILLED COMMAND
0 0 0 FIFO Kthread N-- Ready 00000000 008144
000976 11.9% Idle Task
1 1 192 RR Kthread --- Waiting Semaphore 00000000 008096
000960 11.8% hpwork 0x402d3428
2 2 100 RR Kthread --- Waiting Semaphore 00000000 008096
000960 11.8% lpwork 0x402d3458
3 3 100 RR Task --- Running 00000000 008112
002736 33.7% nsh_main
4 4 100 RR Task --- Waiting Semaphore 00000010 008112
001616 19.9% telnetd
nsh> iperf -c 43.31.77.50 -i 1 -t 10
IP: 10.0.2.15
mode=tcp-client sip=10.0.2.15:5001,dip=43.31.77.50:5001, interval=1, time=10
Interval Transfer Bandwidth
0.00- 1.01 sec 1769472 Bytes 14.02 Mbits/sec
1.01- 2.02 sec 3604480 Bytes 14.53 Mbits/sec
2.02- 3.03 sec 5455872 Bytes 14.66 Mbits/sec
3.03- 4.04 sec 7208960 Bytes 13.89 Mbits/sec
4.04- 5.05 sec 8929280 Bytes 13.63 Mbits/sec
5.05- 6.06 sec 10731520 Bytes 14.28 Mbits/sec
6.06- 7.07 sec 12582912 Bytes 14.66 Mbits/sec
7.07- 8.08 sec 14450688 Bytes 14.79 Mbits/sec
8.08- 9.09 sec 16302080 Bytes 14.66 Mbits/sec
9.09- 10.10 sec 18137088 Bytes 14.53 Mbits/sec
0.00- 10.10 sec 18137088 Bytes 14.37 Mbits/sec
iperf exit
```
```
Before applying net/l2/l3/l4: add support of iob offload
+ /home/ishikawa/opensource/QEMU/qemu-7.1/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 -kernel ./nuttx
telnetd [4:100]
NuttShell (NSH) NuttX-10.4.0
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK
USED FILLED COMMAND
0 0 0 FIFO Kthread N-- Ready 00000000 008144
000976 11.9% Idle Task
1 1 192 RR Kthread --- Waiting Semaphore 00000000 008096
000960 11.8% hpwork 0x402d3428
2 2 100 RR Kthread --- Waiting Semaphore 00000000 008096
000960 11.8% lpwork 0x402d3458
3 3 100 RR Task --- Running 00000000 008112
002736 33.7% nsh_main
4 4 100 RR Task --- Waiting Semaphore 00000010 008112
001616 19.9% telnetd
nsh> iperf -c 43.31.77.50 -i 1 -t 10
IP: 10.0.2.15
mode=tcp-client sip=10.0.2.15:5001,dip=43.31.77.50:5001, interval=1, time=10
Interval Transfer Bandwidth
0.00- 1.01 sec 31866880 Bytes 252.41 Mbits/sec
1.01- 2.02 sec 65421312 Bytes 265.78 Mbits/sec
2.02- 3.03 sec 98975744 Bytes 265.78 Mbits/sec
3.03- 4.04 sec 129941504 Bytes 245.27 Mbits/sec
4.04- 5.05 sec 162316288 Bytes 256.43 Mbits/sec
5.05- 6.06 sec 192970752 Bytes 242.81 Mbits/sec
6.06- 7.07 sec 223592448 Bytes 242.55 Mbits/sec
7.07- 8.08 sec 256802816 Bytes 263.05 Mbits/sec
8.08- 9.09 sec 290242560 Bytes 264.87 Mbits/sec
9.09- 10.10 sec 323715072 Bytes 265.13 Mbits/sec
0.00- 10.10 sec 323715072 Bytes 256.41 Mbits/sec
iperf exit
```
--
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]