Skip to content

Commit

Permalink
doc: matter: add section on packet buffer pool size configuration
Browse files Browse the repository at this point in the history
Mention `CONFIG_CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE` Kconfig option.

Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie authored and ArekBalysNordic committed Dec 20, 2024
1 parent d3f30a5 commit 4e452f3
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,14 @@ The static size is determined by the :kconfig:option:`CONFIG_CHIP_MALLOC_SYS_HEA
To use a dynamic heap size on your Matter device, set them both to ``n``.

The static heap size means that you can define the maximum heap size for your application by setting the :kconfig:option:`CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE` Kconfig value.
You can also adjust the heap dedicated for MbedTLS purposes by setting the :kconfig:option:`CONFIG_MBEDTLS_HEAP_SIZE` Kconfig option value.
You can also adjust the heap dedicated for Mbed TLS purposes by setting the :kconfig:option:`CONFIG_MBEDTLS_HEAP_SIZE` Kconfig option value.

Packet buffer pool size
-----------------------

The Matter application uses a fixed-size pool for packet buffer memory management.
The pool size is determined by the :kconfig:option:`CONFIG_CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE` Kconfig option.
You can adjust the pool size to reduce the memory usage of your application, but that can have a negative effect on the performance of the application.

.. note::
The Thread protocol has a separate configuration for memory allocation.
Expand Down

0 comments on commit 4e452f3

Please sign in to comment.