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

[ESP-WIFI-MESH] Too much Heap used in ESP-WIFI-Mesh Root node (IDFGH-13302) #14229

Closed
3 tasks done
andy-danieal opened this issue Jul 22, 2024 · 2 comments
Closed
3 tasks done
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@andy-danieal
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

ESP32-S2 available RAM size is 154KB. and ESP-WIFI-MESH API takes up approx 88KB. and my other tasks will need another 16KB.
That leaves just 50KB of heap space.

As per the attached logs,
gw-heap-log.txt

I've been having an issue where each child node in the ESP-IDF Mesh stack uses 2KB of heap memory once it's connected to the root node. This doesn't seem right and is causing memory issues for me.

This is important for me to know to ensure 100 devices have enough memory to connect Root node. Thanks!

@espressif-bot espressif-bot added the Status: Opened Issue is new label Jul 22, 2024
@github-actions github-actions bot changed the title [ESP-WIFI-MESH] Too much Heap used in ESP-WIFI-Mesh Root node [ESP-WIFI-MESH] Too much Heap used in ESP-WIFI-Mesh Root node (IDFGH-13302) Jul 22, 2024
@zhangyanjiaoesp
Copy link
Collaborator

@andy-danieal
The max connection of the softAP is 10, the 2KB heap memory is only for the STAs that are diectly connected. If there are 100 devices in the mesh network, other nodes can share the memory pressure.

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Aug 5, 2024
@zhangyanjiaoesp
Copy link
Collaborator

@andy-danieal Can we close this issue?

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: In Progress Work is in progress labels Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

3 participants