Skip to content

mgr/ClusterState: remove debug 30 memory spike - #69325

Merged
SrinivasaBharath merged 1 commit into
ceph:mainfrom
NitzanMordhai:wip-nitzan-mgr-memory-grow-debug-high-level
Jul 28, 2026
Merged

SrinivasaBharath merged 1 commit into
ceph:mainfrom
NitzanMordhai:wip-nitzan-mgr-memory-grow-debug-high-level

Conversation

@NitzanMordhai

@NitzanMordhai NitzanMordhai commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Add early returns in update_delta_stats() and notify_osdmap() when pending_inc contains no actual updates. This avoids unnecessary calls to apply_incremental() and keeps pg_map.stamp current for delta calculations.

Remove the full pg_map JSON dump at dout(30) which was flooding the log queue with multi-MB entries on every tick. The much smaller incremental dump is retained for debugging.

Fixes: https://tracker.ceph.com/issues/64082

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@NitzanMordhai
NitzanMordhai requested a review from a team as a code owner June 8, 2026 06:17
Comment thread src/mgr/ClusterState.cc Resolved
@NitzanMordhai
NitzanMordhai force-pushed the wip-nitzan-mgr-memory-grow-debug-high-level branch from 5bd52a0 to b20a3fd Compare June 9, 2026 09:18
@github-actions github-actions Bot added the mon label Jun 9, 2026
@NitzanMordhai
NitzanMordhai requested a review from tchaikov June 9, 2026 09:18
Comment thread src/mon/PGMap.h Resolved
@NitzanMordhai
NitzanMordhai force-pushed the wip-nitzan-mgr-memory-grow-debug-high-level branch from b20a3fd to 0a45a75 Compare June 9, 2026 11:54
@NitzanMordhai
NitzanMordhai requested a review from tchaikov June 9, 2026 11:54
@NitzanMordhai
NitzanMordhai force-pushed the wip-nitzan-mgr-memory-grow-debug-high-level branch from 0a45a75 to 4e80dd3 Compare June 9, 2026 13:37
@github-actions github-actions Bot added the tests label Jun 9, 2026
@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@tchaikov i made the requested changes

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sorry for the bike shedding, but after looking into the code. i realized that the optimization is actually breaking the smoothing algorithm.

Comment thread src/mgr/ClusterState.cc Resolved
@NitzanMordhai
NitzanMordhai force-pushed the wip-nitzan-mgr-memory-grow-debug-high-level branch 2 times, most recently from 6bb8cd9 to d6cd4d4 Compare June 15, 2026 12:29
@NitzanMordhai
NitzanMordhai requested a review from tchaikov June 15, 2026 12:29
@NitzanMordhai NitzanMordhai changed the title mgr/ClusterState: optimize pg_map updates and remove debug 30 memory … mgr/ClusterState: remove debug 30 memory spike Jun 15, 2026

@tchaikov tchaikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@sseshasa

sseshasa commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Hi @NitzanMordhai, Looks like there were some changes made after the PR was picked up for QA run. In addition, the make check appears to have a related failure. Therefore, can you please check this and then run this PR through QA again?

QA run: https://tracker.ceph.com/issues/77368

@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

Once the issue is resolved, please add the needs-qa flag.

@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

jenkins test make check

Remove the full pg_map JSON dump at dout(30) which was flooding the
log queue with multi-MB entries on every tick. The much smaller
incremental dump is retained for debugging.

Fixes: https://tracker.ceph.com/issues/64082
Signed-off-by: Nitzan Mordechai <[email protected]>
@NitzanMordhai
NitzanMordhai force-pushed the wip-nitzan-mgr-memory-grow-debug-high-level branch from d6cd4d4 to 0bac6af Compare June 28, 2026 10:56
@sseshasa

Copy link
Copy Markdown
Contributor

@SrinivasaBharath
SrinivasaBharath merged commit a514142 into ceph:main Jul 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants