-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
NuttX with Networking Flash&RAM increase past 60 days. #6721
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been working to upgrade the NuttX kernel (version ~ 10.1.0+) in PX4 to use the latest apache/incubator-nuttx one.
However in some preliminary testing I've noticed in my use-cases that my flash usage grow ~ 7KB and RAM usage ~ 1KB.
I've been trying to pinpoint what's the cause and found that most of the changes in the past 60 days.
From 6bd2d17 to 0f7da4f
Are causing this increased memory usage in both flash and ram.
For example take the teensy-4.x:netsh config (which hasnt changed in the past 7 months)
Compiling master 0f7da4f
Compiling 6bd2d17
Diving deeper it seems that the RAM usage increase mostly comes from the changes in tcp_conn_s (g_tcp_connections).
Master 0f7da4f
Compared to 6bd2d17
Looking at the changes in net/tcp.h
I think the main cause are the changes that introduced new variables in
struct tcp_conn_s
which gets statically allocated#6330 #6398
The text was updated successfully, but these errors were encountered: