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

[esp32] reduce default event queue size #7217

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

gjc13
Copy link
Contributor

@gjc13 gjc13 commented May 28, 2021

Problem

The event queue is way too large by default, occupying 6.4 KB.

Change overview

Reduce the default event queue size to 25. This value has teen long used in qpg and efr platforms.

Testing

Build all-cluster-app on ESP32 and pair with chip-device-ctrl. The pairing flow can still work.

@gjc13 gjc13 force-pushed the reduce-event-queue branch from 020dacd to a5204c8 Compare May 28, 2021 08:30
@gjc13 gjc13 requested a review from dhrishi May 28, 2021 09:25
src/include/platform/CHIPDeviceConfig.h Outdated Show resolved Hide resolved
@gjc13 gjc13 force-pushed the reduce-event-queue branch from a5204c8 to ada55a8 Compare May 31, 2021 07:04
@andy31415
Copy link
Contributor

Why is the event queue too large?

It is too large for QPG where it was reduced to save RAM, however if the larger devices support it, is there any reason to reduce it? Please add more details about why this change is required in the summary.

@gjc13 gjc13 changed the title [platform] reduce default event queue size [esp32] reduce default event queue size Jun 1, 2021
@gjc13 gjc13 force-pushed the reduce-event-queue branch from ada55a8 to b486ddf Compare June 1, 2021 03:56
@gjc13
Copy link
Contributor Author

gjc13 commented Jun 1, 2021

@andy31415 @tcarmelveilleux The defautl value in the platform config is left default and the value in ESP32 Kconfig is modified since we do have received complaints on heap usage.

@gjc13 gjc13 requested a review from tcarmelveilleux June 1, 2021 03:57
@woody-apple
Copy link
Contributor

/rebase

@gjc13 gjc13 force-pushed the reduce-event-queue branch from b486ddf to a8034c2 Compare June 3, 2021 03:35
@woody-apple
Copy link
Contributor

/rebase

The event queue is way too large by default, occupying 6.4 KB.
This PR reduces its size to optimize heap usage on esp32.
@woody-apple woody-apple force-pushed the reduce-event-queue branch from a8034c2 to 7339925 Compare June 5, 2021 00:18
@woody-apple woody-apple merged commit 0f0a0fb into project-chip:master Jun 7, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
The event queue is way too large by default, occupying 6.4 KB.
This PR reduces its size to optimize heap usage on esp32.
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.

8 participants