Skip to content

Conversation

@ashokbytebytego
Copy link

@ashokbytebytego ashokbytebytego commented Oct 27, 2025

Testing Min’s Fix (#intel#1002)

To reduce the memory footprint when processing perf script output, data is now read as a stream, on an as-needed basis, rather than loading the entire dataset into memory.

Overview
A significant memory optimization was rolled out on October 26, 2025, for the gprofiler_agent, addressing long-standing memory spikes observed during processing of perf script output. This document summarizes the implemented change, results observed post-deployment, and evidence from monitoring dashboards.

Deployed: October 26, 2025 (cherry-picked and rolled out to production)

Deployment:
Agent side : Cherry picked Min’s changes and merged with gprofiler-agent code of pinterest/gprofiler.
Gprofiler-Build :Created a branch out of master and used this branch to trigger a build.
Triggered a build using jenkins and deployed gprofiler-agent on different Machines (on test environment)

Memory usage before and after the fix was tracked using our internal dashboards for the gprofiler_agent.
Before the Fix (October 24) - 2025-10-24 17:22:49
Frequent spikes and high volatility in memory usage.
Sawtooth patterns and overall increasing memory allocations.
After the Fix (Post-October 26) - 025-10-26 06:59:47
Memory usage is now stable and flat.

Screenshot 2025-10-27 at 4 30 25 PM Screenshot 2025-10-27 at 4 29 14 PM

…o streaming

Signed-off-by: Min Yeol Lim <min.yeol.lim@intel.com>
@ashokbytebytego ashokbytebytego marked this pull request as ready for review October 29, 2025 00:27
@ashokbytebytego ashokbytebytego merged commit 7c79b90 into master Oct 29, 2025
13 of 35 checks passed
@ashokbytebytego ashokbytebytego mentioned this pull request Nov 19, 2025
8 tasks
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.

4 participants