-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
libcontainer/cgroups/fs/blkio: support BFQ weight[_device] #3010
libcontainer/cgroups/fs/blkio: support BFQ weight[_device] #3010
Conversation
669c539
to
71fb791
Compare
Hi @AkihiroSuda, There's something essential that I should have brought up earlier:
That is, this patch will fix Without this patch adjusting
|
71fb791
to
cdfadb6
Compare
Interesting... we support getting stats from BFQ since PR #2407, but never got to set the parameters for it :) |
I am looking at a similar code for cgroup v2. In there, we also have a fallback (implemented in commit 8c7ece1). There's a weight conversion needed though. Do we need some kind of conversion here as well? One other thing is, I think we need an integration test for this. It seems that for BFQ we need kernel 5.x, but since this is cgroup v1, our Fedora is not good. Do we need to add a recent Debian or Ubuntu-based test? Or reboot the same Fedora image with cgroup v1 (modify kernel parameters with something like |
cdfadb6
to
9fd77d7
Compare
Good question. The situation is:
I considered two options:
Maybe adding a new platform to run all tests would be a good topic for another PR? |
9fd77d7
to
feceacc
Compare
@askervin thank you for a detailed reply! I agree that in this case no conversion is probably the best thing to do. I also agree that testing can be discussed separately -- but without the test we can't be sure if the whole thing works or not (even if there is not too much code). |
- Update the blkio cgroup to support the BFQ I/O Scheduler, that has replaced CFQ in the Linux kernel. - BFQ is controlled through blkio.bfq.weight[_device] instead of CFQ's blkio.weight[_device] in cgroups v1. - BFQ does not support blkio.leaf_weight[_device], so that behavior remains untouched. - Do not change behavior on legacy CFQ systems. - Enable using blkio weights on BFQ systems. Signed-off-by: Antti Kervinen <antti.kervinen@intel.com>
feceacc
to
6339d8a
Compare
@kolyshkin , Thanks for your feedback on unit tests, too! I updated these tests so that they cover
|
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.
LGTM, and thanks!
Ah, this is why I wanted a test case:
Fix is coming |
replaced CFQ in the Linux kernel.
CFQ's blkio.weight[_device] in cgroups v1.
remains untouched.
Signed-off-by: Antti Kervinen antti.kervinen@intel.com