Skip to content

RDKB-63687 Code development to reduce SM app memory usage#921

Open
skarth597 wants to merge 10 commits intordkcentral:developfrom
skarth597:sm_app
Open

RDKB-63687 Code development to reduce SM app memory usage#921
skarth597 wants to merge 10 commits intordkcentral:developfrom
skarth597:sm_app

Conversation

@skarth597
Copy link
Copy Markdown
Contributor

Reason for change: To reduce the SM app memory usage
Test Procedure: Debug
Priority: P1
Risks: Low
Signed-off-by: Samyuktha Karthikeyan samyuktha_karthikeyan@comcast.com

Copilot AI review requested due to automatic review settings February 25, 2026 09:22
@skarth597 skarth597 requested a review from a team as a code owner February 25, 2026 09:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces SM app memory usage by changing client_assoc_stats from a fixed-size per-MAX_NUM_RADIOS global array to a dynamically allocated buffer sized to the runtime number of radios.

Changes:

  • Replaced client_assoc_stats[MAX_NUM_RADIOS] with a heap-allocated client_assoc_stats pointer.
  • Allocated client_assoc_stats during sm_init() using getNumberRadios() and freed it during sm_deinit().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Reason for change: To reduce the SM app memory usage
Test Procedure: Debug
Priority: P1
Risks: Low
Signed-off-by: Samyuktha Karthikeyan <samyuktha_karthikeyan@comcast.com>
Copilot AI review requested due to automatic review settings February 25, 2026 11:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Reason for change: To reduce the SM app memory usage
Test Procedure: Debug
Priority: P1
Risks: Low
Signed-off-by: Samyuktha Karthikeyan <samyuktha_karthikeyan@comcast.com>
Copilot AI review requested due to automatic review settings March 25, 2026 12:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants