Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested on ESP32-S3, IDF v5.5, server example with Ed25519 host key.
Flash Size (
idf.py size-components)Binary size: 1,057 KB (31% of partition free)
Key components:
For reference, largest non-SSH components: libnet80211.a (WiFi, 143 KB), liblwip.a (72 KB),
libc.a (67 KB), libwpa_supplicant.a (64 KB).
Runtime Memory (Heap)
Heap consumption during an SSH session lifecycle:
ssh_init()ssh_init()ssh_bind_accept()ssh_init()itself is cheap (~2.6 KB); the key exchange + session setup is the expensive part (~20 KB)Runtime Memory (Stack)
Main task stack (
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192):ssh_init()ssh_bind_accept()Peak stack usage is ~4.7 KB, leaving ~3.5 KB headroom with the default 8 KB stack.
Task List (during active session)
No additional tasks are spawned by libssh or mbedtls. All work runs in the main task.
CONFIG_MBEDTLS_THREADING_PTHREAD=yonly adds mutex protection — it does not create threads.