Skip to content

squid: mds: scrub pins more inodes than the mds_cache_memory_limit - #67818

Merged
batrick merged 1 commit into
ceph:squidfrom
sajibreadd:wip-71167-squid
Oct 26, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
sajibreadd:wip-71167-squid

Conversation

@sajibreadd

Copy link
Copy Markdown
Member

For scrubbing dirfrag we are pushing children back into the scrub stack. Instead we can follow the same
strategy for scrub directory and pushing children front of the scrub stack, and in kick_off_scrubs always
start scrubbing from the front of the stack. It will prevent ScrubStack to pinning whole level of the file-system
tree.

Fixes: https://tracker.ceph.com/issues/71167
Signed-off-by: Md Mahamudur Rahaman Sajib <[email protected]>
(cherry picked from commit 5815655)

Conflicts:
	src/mds/ScrubStack.cc
@github-actions github-actions Bot added the cephfs Ceph File System label Mar 16, 2026
@github-actions github-actions Bot added this to the squid milestone Mar 16, 2026
@sajibreadd
sajibreadd requested review from ifed01 and vshankar and removed request for ifed01 March 16, 2026 15:22
@sajibreadd sajibreadd changed the title mds: scrub pins more inodes than the mds_cache_memory_limit squid: mds: scrub pins more inodes than the mds_cache_memory_limit Mar 16, 2026
@sajibreadd

Copy link
Copy Markdown
Member Author

jenkins test api

@sajibreadd

Copy link
Copy Markdown
Member Author

jenkins test api

@joscollin

Copy link
Copy Markdown
Member

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@yuriw

yuriw commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri7-testing-20261007.155121-squid.

@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Oct 20, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. labels Oct 20, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 20, 2026

@vshankar vshankar 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.

@vshankar

Copy link
Copy Markdown
Contributor

jenkins retest this please

@vshankar

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Oct 23, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @vshankar.

View workflow run

@batrick batrick closed this Oct 26, 2026
@batrick batrick reopened this Oct 26, 2026
@batrick batrick modified the milestones: squid, v19.2.8 Oct 26, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #67818 SOURCE PR SOURCE STATUS
3370f11 mds: scrub pins more inodes than the mds_cache_memory_limit PR #65858 5815655 mds: scrub pins more inodes than the mds_cache_memory_limit

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 3370f11 (cherry-pick of 5815655)

Affected File(s)

Range Diff

Click to expand
--- Original (58156558)
+++ Backport (3370f112)
@@ -7,3 +7,7 @@
 
 Fixes: https://tracker.ceph.com/issues/71167
 Signed-off-by: Md Mahamudur Rahaman Sajib <[email protected]>
+(cherry picked from commit 581565585ecf8bc85707dc44dff14e130be51188)
+
+Conflicts:
+	src/mds/ScrubStack.cc

================================================================================
RANGE DIFF
================================================================================

1:  581565585ec ! 1:  3370f112390 mds: scrub pins more inodes than the mds_cache_memory_limit
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/71167
         Signed-off-by: Md Mahamudur Rahaman Sajib <[email protected]>
    +    (cherry picked from commit 581565585ecf8bc85707dc44dff14e130be51188)
    +
    +    Conflicts:
    +            src/mds/ScrubStack.cc
     
      ## src/mds/ScrubStack.cc ##
     @@ src/mds/ScrubStack.cc: void ScrubStack::kick_off_scrubs()
    @@ src/mds/ScrubStack.cc: void ScrubStack::kick_off_scrubs()
            }
          } else {
            ceph_assert(0 == "dentry in scrub stack");
    -@@ src/mds/ScrubStack.cc: void ScrubStack::identify_remote_link_damage(CDentry *dn) {
    -   }
    +@@ src/mds/ScrubStack.cc: void ScrubStack::scrub_dir_inode_final(CInode *in)
    +   return;
      }
      
     -void ScrubStack::scrub_dirfrag(CDir *dir, bool *done)
    @@ src/mds/ScrubStack.cc: void ScrubStack::scrub_dirfrag(CDir *dir, bool *done)
     -	_enqueue(dnl->get_inode(), header, false);
     +  *added_children = true;
     +	_enqueue(dnl->get_inode(), header, true);
    -       } else if (dnl->is_remote() || dnl->is_referent_remote()) {
    -         identify_remote_link_damage(dn);
    +       } else if (dnl->is_remote()) {
    + 	// TODO: check remote linkage
            }
     
      ## src/mds/ScrubStack.h ##

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 26, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 26, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick
batrick merged commit 73bbc9e into ceph:squid Oct 26, 2026
30 of 33 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.

6 participants