Description
Describe the bug
I am running Zperf loopback test (TX only: drop at loopback driver) https://github.com/zephyrproject-rtos/zephyr/blob/main/samples/net/zperf/overlay-loopback.conf#L6 and see a dip in performance on nRF5340 from 90-->78Mbps.
Triaged to e337b7b, building with CONFIG_TIMESLICE_SIZE=0
fixes the problem, i.e., gives 90M
Regression
- This is a regression.
Steps to reproduce
Steps to repro on nRF5340DK
- Modify
samples/net/zperf/overlay-loopback.conf
as below
# Enable for testing TX only
CONFIG_NET_LOOPBACK_SIMULATE_PACKET_DROP=y
CONFIG_NET_ZPERF_UDP_REPORT_RETANSMISSION_COUNT=0
- Build using:
west build -p -b nrf7002dk/nrf5340/cpuapp samples/net/zperf/ -d samples/net/zperf/build_53dk -- -DEXTRA_CONF_FILE="overlay-loopback.conf" -DCONFIG_PICOLIBC_USE_MODULE=y
west flash -d samples/net/zperf/build_53dk
- Run zperf loopback test
zperf udp download 5001
zperf udp upload 127.0.0.1 5001 10 1K 300M
~78Mbps would be the result which is a regression from 90M, now build with CONFIG_TIMESLICE_SIZE=0
and you will see 90M.
Relevant log output
Impact
Functional Limitation – Some features not working as expected, but system usable.
Environment
Zephyr main e22ca6b1328
.
Additional Context
In our regular resting on nRF7002DK too we had seen weird behaviour when running Zperf esp. async, the driver Q is getting full easily which wasn't the case earlier, this could be the issue, I will try with the revert and see if that restores old beheaviour.