Skip to content

Conversation

@ilyam8
Copy link
Member

@ilyam8 ilyam8 commented Nov 21, 2025

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.

  • Migration
    • If you rely on PSS-based estimates, enable it with --pss (e.g., --pss 5m) in netdata.conf.
    • Previously default was 5m; now it’s off. Only RSS charts are shown when PSS is disabled.

Written for commit afa0fb0. Summary will update automatically on new commits.

Copy link
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 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_period from 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.

@ilyam8 ilyam8 requested a review from stelfrag November 21, 2025 08:18
stelfrag
stelfrag previously approved these changes Nov 21, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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 &quot;Chart behavior&quot; 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

@ilyam8 ilyam8 merged commit 74623ba into netdata:master Nov 21, 2025
117 of 118 checks passed
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Nov 21, 2025
Co-authored-by: Copilot <[email protected]>
(cherry picked from commit 74623ba)
@stelfrag stelfrag mentioned this pull request Nov 21, 2025
Ferroin pushed a commit that referenced this pull request Nov 21, 2025
Co-authored-by: Copilot <[email protected]>
(cherry picked from commit 74623ba)
@ilyam8 ilyam8 deleted the apps-disable-pss-by-default branch November 25, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/collectors Everything related to data collection area/docs collectors/apps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Apps.plugin - High CPU usage

2 participants