From aa671054bd80753277522ae87c0915d7c1331529 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Sun, 19 Jan 2025 00:32:44 +0530 Subject: [PATCH] samples: wifi: sta: Add Zperf overlay This overlay is used to run Zperf benchmarks, the network buffer and heap paramters are not overridden to make it easier to collect memory footprints. Signed-off-by: Chaitanya Tata --- samples/wifi/sta/README.rst | 10 ++++++++++ samples/wifi/sta/overlay-zperf.conf | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 samples/wifi/sta/overlay-zperf.conf diff --git a/samples/wifi/sta/README.rst b/samples/wifi/sta/README.rst index 7066f24b526a..3a6eb15132c1 100644 --- a/samples/wifi/sta/README.rst +++ b/samples/wifi/sta/README.rst @@ -224,6 +224,16 @@ The average current consumption in an idle case can be around ~1-2 mA in the nRF See :ref:`app_power_opt` for more information on power management testing and usage of the PPK2. +Performance testing +******************* + +The sample can be used to test the performance of the Wi-Fi connection. +The performance tuning is done to achieve a trade-off between memory usage and performance. + +The overlay file is located at :file:`overlay-zperf.conf` to run the performance test. +Default build without the overlay is used to memory footprint testing and analysis. +The overlay should be enabled to run the performance test corresponding to the memory footprint. + Dependencies ************ diff --git a/samples/wifi/sta/overlay-zperf.conf b/samples/wifi/sta/overlay-zperf.conf new file mode 100644 index 000000000000..895b0db02552 --- /dev/null +++ b/samples/wifi/sta/overlay-zperf.conf @@ -0,0 +1,18 @@ + +CONFIG_NET_ZPERF=y +# Mimic real-world conditions +CONFIG_NET_ZPERF_MAX_PACKET_SIZE=1500 +CONFIG_NRF70_QSPI_LOW_POWER=n +# Debug +CONFIG_NRF70_UTIL=y +CONFIG_SHELL=y +CONFIG_SHELL_STACK_SIZE=4600 +CONFIG_NET_SHELL=y +CONFIG_SHELL_GETOPT=y +CONFIG_SHELL_CMDS_RESIZE=n +CONFIG_NRF70_UTIL=y +CONFIG_NET_L2_WIFI_SHELL=y +CONFIG_NET_STATISTICS=y +CONFIG_NET_STATISTICS_WIFI=y +CONFIG_NET_STATISTICS_USER_API=y +CONFIG_SYS_HEAP_RUNTIME_STATS=y