Skip to content
Discussion options

You must be logged in to vote

Here is my experience:

Every TLS session takes about 40kb-45kb, esp-wifi takes around 50kb-60kb.
Add to that the various buffers used in every web task.
Embassy tasks could also take a significant memory for the tasks (which can be to some extent optimized but not a lot).
Also need enough space for the stack.
etc.

This piles up pretty quickly and memory is exhausted very fast.

If you can switch to esp32-s3, you can use PSRAM for most things. ESP-WIFI will always need the internal RAM, and so does the stack. TLS for now require internal RAM but could move to PSRAM in the future and all the rest I push to the heap in PSRAM.

So eventually the major internal memory bottleneck is esp-mbedtls w…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@burumdev
Comment options

@ivmarkov
Comment options

Answer selected by burumdev
Comment options

You must be logged in to vote
1 reply
@burumdev
Comment options

Comment options

You must be logged in to vote
2 replies
@burumdev
Comment options

@yanshay
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants