-
Notifications
You must be signed in to change notification settings - Fork 6.3k
disable apps plugin pss mem by default #21330
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
Conversation
There was a problem hiding this 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 disables PSS (Proportional Set Size) memory sampling by default in the apps plugin to reduce CPU overhead on systems where more accurate memory estimation is not needed.
Key Changes:
- Changed default
pss_refresh_periodfrom 300 seconds to 0 (disabled) - Updated documentation to reflect PSS sampling is now disabled by default
- Reformatted markdown tables for better alignment and readability
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/collectors/apps.plugin/apps_plugin.c |
Changed default PSS refresh period from 300 to 0 to disable PSS sampling by default |
src/collectors/apps.plugin/README.md |
Updated documentation to reflect disabled PSS default, clarified behavior, and improved table formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 2 files
Prompt for AI agents (all 2 issues)
Understand the root cause of the following 2 issues and fix them.
<file name="src/collectors/apps.plugin/apps_plugin.c">
<violation number="1" location="src/collectors/apps.plugin/apps_plugin.c:384">
Changing the default PSS refresh period to 0 disables sampling, but the CLI help text still claims the default is 5 minutes, leaving the user-facing documentation incorrect.</violation>
</file>
<file name="src/collectors/apps.plugin/README.md">
<violation number="1" location="src/collectors/apps.plugin/README.md:281">
Document now states PSS sampling is disabled by default, but the nearby "Chart behavior" list still says the default state is PSS enabled. This contradiction leaves readers unsure which behavior to expect. Please update the chart description to match the new default.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
Co-authored-by: Copilot <[email protected]> (cherry picked from commit 74623ba)
Co-authored-by: Copilot <[email protected]> (cherry picked from commit 74623ba)
Summary
Fixes #21289
Test Plan
Additional Information
For users: How does this change affect me?
Summary by cubic
Disable PSS memory sampling in apps.plugin by default to reduce CPU overhead. Memory charts now show RSS only unless PSS is explicitly enabled.
Written for commit afa0fb0. Summary will update automatically on new commits.