Replies: 4 comments 6 replies
-
Only on the original ESP32 and only if you activate esp-wifi's It would be possible (but unimplemented) to reclaim some of the memory when not using BT-classic and all of it when not using BT anymore (e.g. using BT for provisioning). However, the reclaimed memory would only be available as heap, not for the stack |
Beta Was this translation helpful? Give feedback.
-
I'm on esp32s3, it seems like esp-wifi takes around 51Kb or maybe more (heap, see below). This is my heap memory map when there's just one TLS session. Jul 31 18:37:24 External | ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | Used: 14% (Used 311764 of 2097152, free: 1785388) This is when another TLS session is added, so it looks like TLS takes (72796-33544) + (65324-61176) = 43,400. Jul 31 18:38:43 External | █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | Used: 16% (Used 355820 of 2097152, free: 1741332) So it seems like esp-wifi takes around 51320 (before adding TLS). So are you saying it could be possible to reclaim some of that if not using BT at all but not implemented currently? |
Beta Was this translation helpful? Give feedback.
-
Do you need a fix for 0.23.1 or are you willing to upgrade to pull in memory usage improvements? I'm thinking one can convince both esp-wifi and/or esp-mbedtls (this might be easier) to use PSRAM instead of internal RAM. |
Beta Was this translation helpful? Give feedback.
-
Another thing: currently esp-wifi allocated more than needed from internal RAM - I wanted to revisit that but not sure when I will get to that. We definitely don't backport anything however |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm still on 0.23.1, title pretty much says it all.
I'm in desperate need for internal RAM, so looking for any way to reduce internal RAM usage which mostly goes now to esp-wifi/esp-mbedtls .
Beta Was this translation helpful? Give feedback.
All reactions