-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
os/bluestore: implement object content recompression/defragmentation when scrubbing #57631
base: main
Are you sure you want to change the base?
Changes from all commits
8b4fd7c
6a46bce
c2e62f1
23373fc
41de238
8aaf3dd
d3f6930
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,10 @@ const char *Compressor::get_comp_mode_name(int m) { | |
case COMP_PASSIVE: return "passive"; | ||
case COMP_AGGRESSIVE: return "aggressive"; | ||
case COMP_FORCE: return "force"; | ||
case COMP_PASSIVE_LAZY: return "passive_lazy"; | ||
case COMP_AGGRESSIVE_LAZY: return "aggressive_lazy"; | ||
case COMP_FORCE_LAZY: return "force_lazy"; | ||
|
||
default: return "???"; | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The separate discussion should be if we shouldn't give different There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, from purist's perspective we might need a completely different set of compression settings for lazy/background mode. Whether we really need that - I'm not sure... |
||
|
@@ -65,6 +69,12 @@ Compressor::get_comp_mode_type(std::string_view s) { | |
return COMP_AGGRESSIVE; | ||
if (s == "passive") | ||
return COMP_PASSIVE; | ||
if (s == "force_lazy") | ||
return COMP_FORCE_LAZY; | ||
if (s == "aggressive_lazy") | ||
return COMP_AGGRESSIVE_LAZY; | ||
if (s == "passive_lazy") | ||
return COMP_PASSIVE_LAZY; | ||
if (s == "none") | ||
return COMP_NONE; | ||
return {}; | ||
|
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.
I think we need following combination of compressions for regular operation and for scrub.
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.
oh... So you think we might need a separate lazy_compression_mode parameter (none/passive/aggressive/force) for background compression, right? Wouldn't that be an overkill for users?