Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi: Add and tweak confguration for 54L memory baseline #19981

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions samples/wifi/sta/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
************

Expand Down
17 changes: 17 additions & 0 deletions samples/wifi/sta/overlay-zperf.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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
12 changes: 6 additions & 6 deletions samples/wifi/sta/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ CONFIG_NET_UDP=y
CONFIG_NET_TCP=y
CONFIG_NET_DHCPV4=y

CONFIG_NET_PKT_RX_COUNT=8
CONFIG_NET_PKT_TX_COUNT=8
CONFIG_NET_PKT_RX_COUNT=16
CONFIG_NET_PKT_TX_COUNT=16
CONFIG_NRF70_RX_NUM_BUFS=16

# Below section is the primary contributor to SRAM and is currently
# tuned for performance, but this will be revisited in the future.
CONFIG_NET_BUF_RX_COUNT=8
CONFIG_NET_BUF_TX_COUNT=16
CONFIG_NRF70_RX_NUM_BUFS=16
CONFIG_HEAP_MEM_POOL_SIZE=120000
CONFIG_NET_BUF_RX_COUNT=16
CONFIG_NET_BUF_TX_COUNT=32
CONFIG_HEAP_MEM_POOL_SIZE=105000
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
CONFIG_NET_TC_TX_COUNT=1

Expand Down