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

Change back the number of available sockets on S2 ? #7271

Closed
Neradoc opened this issue Nov 28, 2022 · 6 comments
Closed

Change back the number of available sockets on S2 ? #7271

Neradoc opened this issue Nov 28, 2022 · 6 comments
Labels
esp32-s2 espressif applies to multiple Espressif chips
Milestone

Comments

@Neradoc
Copy link

Neradoc commented Nov 28, 2022

CONFIG_LWIP_MAX_SOCKETS was changed (accidentally) to 8 for all Espressif builds in the default sdkconfig #6181
Can it be the cause of potential memory issues, especially on smaller RAM builds ?
Should it be changed back (to 4) on S2 ? Or C3 ?
(ESP32 and S3 have more SRAM)

@Neradoc Neradoc added espressif applies to multiple Espressif chips esp32-s2 labels Nov 28, 2022
@anecdata
Copy link
Member

Some background here (and in the PR). It's slightly more involved than just processor variant... whether there's PSRAM, for example to take the heap. Plus, we now have the capability for reserved espidf memory in PSRAM with CIRCUITPY_RESERVED_PSRAM= in .env.

@Neradoc
Copy link
Author

Neradoc commented Nov 28, 2022

I completely missed CIRCUITPY_RESERVED_PSRAM, do we want to make the max sockets more flexible in that case ? With a higher hard limit and a separate soft limit checked in code that can be changed with an environment variable ?

@dhalbert dhalbert added this to the 8.0.0 milestone Nov 29, 2022
@dhalbert
Copy link
Collaborator

dhalbert commented Dec 5, 2022

@Neradoc have you heard of memory issues on smaller boards? We are just trying to determine the priority of fixing this.

@Neradoc
Copy link
Author

Neradoc commented Dec 5, 2022

No, I have seen nothing that seems directly linked to this. I wanted to look around at issues raised since the change but I got nothing. I think we can close this and revisit it if and when it becomes an issue.

@anecdata
Copy link
Member

anecdata commented Dec 5, 2022

Agreed. It's an edge case: lower-SRAM devices (ESP32-S2 and maybe ESP32-C3) boards with no PSRAM and trying to use an unusual amount of espidf memory.

@tannewt
Copy link
Member

tannewt commented Dec 6, 2022

Thanks for the discussion! We can open another issue if we change our minds later.

@tannewt tannewt closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
esp32-s2 espressif applies to multiple Espressif chips
Projects
None yet
Development

No branches or pull requests

4 participants