Skip to content
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: consider high/low mode when putting agent to sleep #7631

Merged
merged 1 commit into from Mar 15, 2016

Conversation

liewegas
Copy link
Member

If we are in low flush mode, we may only get up to max_low_ops in flight,
in which case we may never go to sleep here.

Fix it by using the max_low_ops threshold when appropriate.

Note that agent_work() might start up more than this many ops (if there
are lots of evicts to do) currently, but I think it is fine if evicts go
a bit slower if we are in low mode. (Really, the high/low shouldn't be
tied to flushing specifically.)

Reported-by: Markus Blank-Burian burian@muenster.de
Signed-off-by: Sage Weil sage@redhat.com

If we are in low flush mode, we may only get up to max_low_ops in flight,
in which case we may never go to sleep here.

Fix it by using the max_low_ops threshold when appropriate.

Note that agent_work() might start up *more* than this many ops (if there
are lots of evicts to do) currently, but I think it is fine if evicts go
a bit slower if we are in low mode.  (Really, the high/low shouldn't be
tied to flushing specifically.)

Fixes: ceph#14752
Reported-by: Markus Blank-Burian <burian@muenster.de>
Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas
Copy link
Member Author

passed rados suite

@tchaikov tchaikov self-assigned this Mar 15, 2016
athanatos added a commit that referenced this pull request Mar 15, 2016
osd: consider high/low mode when putting agent to sleep

Reviewed-by: Samuel Just <sjust@redhat.com>
@athanatos athanatos merged commit 8d10fdf into ceph:master Mar 15, 2016
@tchaikov tchaikov assigned athanatos and unassigned tchaikov Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants