-
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
BLKIO weight device fails to set in /sys with 3.18.8 kernel #140
Comments
For testing purpose, I've added template_test.go for adding block device support, this time it fails.. |
Ubuntu comes with deadline I/O scheduler as default, due to which blkio weight device is not writing to /sys. |
As per Kernel code, cfq-iosched.c, weight device works for CFQ.. |
@rajasec From the kernel documentation here https://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt
|
@rajasec blkio weight can't be used on deadline scheduler, and the solution should be on kernel side. All Docker can do is give a more specific message, current one is not that friendly. |
Closing this issue as it is current design from Kernel to support cfq only for blkio subsystem of cgroups |
@hqhq , hello, 请问cgroup没有挂载到clkio.weight等(如下图)应该如何做才能挂载。 and also, why the group/user is 15 not root? |
I modified the config.json file under resources
"blkioWeightDevice": "500"
After starting the container
it fails to start the container, Error thrown out
Container start failed: [8] System error: write /sys/fs/cgroup/blkio/user/1000.user/c2.session/runc/blkio.weight_device: invalid argument
cgroups/fs/blkio_test.go
Even the blkio_test.go is setting the weight device value in /tmp folder as destination which is the reason for passing the tests. If the destination is /sys tests would have been failed.
Kernel : 3.18.8
Machine : Ubuntu
The text was updated successfully, but these errors were encountered: