Repository navigation
squid: mds: scrub pins more inodes than the mds_cache_memory_limit - #67818
Conversation
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
|
jenkins test api |
|
jenkins test api |
|
This PR is under test in https://tracker.ceph.com/issues/76488. |
|
This PR has been added to wip-yuri7-testing-20261007.155121-squid. |
|
jenkins retest this please |
|
/audit override |
|
✅ Audit Override Applied by @vshankar. |
There was a problem hiding this comment.
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
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)
src/mds/ScrubStack.cc
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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @batrick. |
backport tracker: https://tracker.ceph.com/issues/75512
backport of #65858
parent tracker: https://tracker.ceph.com/issues/71167