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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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

Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
Value selected based on top usage in tests. Highest observed number of
packet buffers was 10.

Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
int "Packet buffer pool size"
default 11
help
Total number of packet buffers.
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we can describe it a little bit more. For example, describe the purposes for which those packet buffers will be used.

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.

4 participants