Skip to content

RDKEMW-15487 [Rialto][CPU] High CPU Usage of Rialto Server - Checkpoint4#465

Open
rekhap2kandhavelan wants to merge 2 commits intomasterfrom
feature/RDKEMW-15487
Open

RDKEMW-15487 [Rialto][CPU] High CPU Usage of Rialto Server - Checkpoint4#465
rekhap2kandhavelan wants to merge 2 commits intomasterfrom
feature/RDKEMW-15487

Conversation

@rekhap2kandhavelan
Copy link
Copy Markdown

Added debugs

Copilot AI review requested due to automatic review settings March 19, 2026 06:04
@github-actions
Copy link
Copy Markdown

Pull request must be merged with a description containing the required fields,

Summary:
Type: Feature/Fix/Cleanup
Test Plan:
Jira:

If there is no jira releated to this change, please put 'Jira: NO-JIRA'.

Description can be changed by editing the top comment on your pull request and making a new commit.

Copy link
Copy Markdown

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 adds additional logging around the playback-info notification path to help diagnose high CPU usage in the Rialto server.

Changes:

  • Add a debug log when entering GST_STATE_PAUSED before starting the notify-playback-info timer.
  • Add timing + cycle counting logs inside GstGenericPlayer::notifyPlaybackInfo().
  • Add debug logs when starting (or skipping start of) the NotifyPlaybackInfo timer.

Reviewed changes

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

File Description
media/server/gstplayer/source/tasks/generic/HandleBusMessage.cpp Adds a debug log when PAUSED triggers starting the playback-info timer.
media/server/gstplayer/source/GstGenericPlayer.cpp Adds instrumentation (timing/counter) to notifyPlaybackInfo() and logs timer start/duplicate-start.

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

Comment on lines +483 to +487
if ((currentCount % 1) == 0)
{
RIALTO_SERVER_LOG_INFO("notifyPlaybackInfo cycle %d took %lld us", currentCount,
static_cast<long long>(elapsed.count()));
}
Comment on lines +471 to +473
static std::atomic<int> notifyCount{0};
const int currentCount = ++notifyCount;
const auto start = std::chrono::steady_clock::now();
@github-actions
Copy link
Copy Markdown

Coverage statistics of your commit:
Lines coverage stays unchanged and is: 84.4%
Functions coverage stays unchanged and is: 92.5%

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 8, 2026


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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.

3 participants