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
osd/backfill: give deletion ops a cost when performing backfill #14912
osd/backfill: give deletion ops a cost when performing backfill #14912
Conversation
Fixes: http://tracker.ceph.com/issues/18875 Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
@@ -11178,6 +11178,8 @@ uint64_t PrimaryLogPG::recover_backfill( | |||
assert(pbi.begin == check); | |||
|
|||
to_remove.push_back(boost::make_tuple(check, pbi.objects.begin()->second, bt)); | |||
// Give deletion ops a cost in backfill, removing objects is not free. | |||
++ops; |
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.
Have you tested this? If we don't get replies for the deletes are you sure we'll get woken up again?
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.
thanks Sages, I'm not sure about that, I will try to test it
Hi, @liewegas . I read code carefully today to test this PR. Here is my understand. I'm not sure whether it's correct. please take a look. The modified function called
Now, I want to know who use
The simplified code
and function
There are
I also notice that [1]: recovery_ops_* variables Line 978 in fcd64d7
[2]: PrimaryLogPG::start_recovery_ops https://github.com/ceph/ceph/blob/master/src/osd/PrimaryLogPG.cc#L10654 [3]: reset started in start_recovery_ops https://github.com/ceph/ceph/blob/master/src/osd/PrimaryLogPG.cc#L10589 [4]: OSD::do_recovery https://github.com/ceph/ceph/blob/master/src/osd/OSD.cc#L8799 |
well, I've known this is a incomplete PR. I need to add more code that |
jenkins test this please |
What worries me is if we don't get acks for removes we don't know when it is "done"... I think that would require adding a reply message, which it would be nice to avoid. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
While I'd still love to see deletions get a cost, it looks like everybody agrees this PR is incomplete, so I'm closing it. |
Fixes: http://tracker.ceph.com/issues/18875
Signed-off-by: liuchang0812 liuchang0812@gmail.com