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

[nrf toup] Reduce Packet Buffer Pool size to 11 #507

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

adigie
Copy link
Member

@adigie adigie commented Nov 5, 2024

No description provided.

@@ -48,7 +48,7 @@ struct ChipDeviceEvent;
#define CHIP_SYSTEM_CONFIG_USE_SOCKETS 1

#ifndef CONFIG_ARCH_POSIX
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 15
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this selected based on the top usage in tests?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please fill in this info in the commit description :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is not yet targeted for 2.8.0 and we have a bit of time - what do you think to introduce a KConfig for this configuration?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is not yet targeted for 2.8.0 and we have a bit of time - what do you think to introduce a KConfig for this configuration?

Good idea.

Is this selected based on the top usage in tests?

Yes, highest observed pool usage was 10. I updated commit description.

@adigie adigie force-pushed the optimize-memory-usage branch from 5f3a9cb to 94ebf53 Compare November 19, 2024 14:18
@adigie adigie added this to the 3.0.0 milestone Dec 4, 2024
@adigie adigie force-pushed the optimize-memory-usage branch from 94ebf53 to fc8dc9b Compare December 12, 2024 09:50
Copy link
Contributor

@ArekBalysNordic ArekBalysNordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Please squash commits before merging.

Add `CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE` Kconfig for packet buffer pool
size configuration.

Signed-off-by: Adrian Gielniewski <[email protected]>

[nrf toup] config: Reduce packet buffer pool size to 11

Value selected based on top usage in tests. Highest observed number of
packet buffers was 10.

Signed-off-by: Adrian Gielniewski <[email protected]>
@adigie adigie force-pushed the optimize-memory-usage branch from fc8dc9b to 61a07ec Compare December 12, 2024 11:53
@jukkar jukkar merged commit d218a95 into nrfconnect:master Dec 13, 2024
8 checks passed
@adigie adigie deleted the optimize-memory-usage branch December 13, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants