project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.43k stars 1.99k forks source link

Matter RAM Requirements #9261

Open doru91 opened 3 years ago

doru91 commented 3 years ago

On NXP K32W061 (Thread + BLE) I reached a high level of RAM consumption, around 141.5K (Thread FTD). This is distributed as follows:

.heap 61440 bss 75240 .data 1796

HEAP

image

image

BSS

here are the main consumers:

SECTION: .bss SECTION: .bss 100% 75240 total ├── 18% 13280 _ZN2ot12gInstanceRawE ├── 14% 10371 memp_memory_PBUF_POOL_base ├── 6% 4620 rwip_heap_non_ret ├── 5% 4096 au8PDM_InternalFlashDataBuffer ├── 5% 4096 au8PDM_SegmentDataBuffer ├── 4% 3080 _ZN4chip3app23sInteractionModelEngineE ├── 4% 2960 _ZN12_GLOBAL__N_18gFabricsE ├── 3% 2128 memHeap ├── 3% 2120 _ZN12_GLOBAL__N_19gSessionsE

  1. Is there a minimum recommended size for the numbers of buffers if the device is an SED?
  2. Same question if the device is an FTD.

In the end, I believe that the current minimal RAM requirements are pretty high for a Matter device and we need to understand better where each byte of memory is consumed.

tcarmelveilleux commented 3 years ago
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.