-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Remove socketpair in hostap to save memory #90317
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
base: main
Are you sure you want to change the base?
Remove socketpair in hostap to save memory #90317
Conversation
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Add MSG_ZEROCOPY socket flag definition so that it can be used in the code. No real functionality for supporting zerocopy via this flag is provided by this commit. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Remove Kconfig dependency to socketpair related options as the hostap now uses k_fifo to pass information between different threads. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
37f990d
to
15b13be
Compare
|
See information about memory savings in zephyrproject-rtos/hostap#86 |
Needs more testing and review so adding DNM label. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's some really fantastic memory savings!
Earlier we had socketpair to pass wifi event information from wpa_supplicant side to zephyr adaption layer. This is now replaced by k_fifo to save some RAM. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Create "wifi mem" command that can show how the heap memory is being used in hostap. The command is available if CONFIG_WIFI_NM_WPA_SUPPLICANT_DEBUG_ALLOC is enabled. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This is a temporary config to avoid allocation issues until the culprit is found. Some heap usage is not freed properly. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
Make sure to use k_fifo for IPC in hostap to save memory. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
636e8df
to
ba7a5c8
Compare
|
Replace wifi event mechanism by k_fifo. Earlier we had socketpair to pass wifi event information from wpa_supplicant side to zephyr adaption layer. This is now replaced by k_fifo to save some RAM.
This is still WIP and is missing AP mode support.