Giter VIP home page Giter VIP logo

Comments (8)

hqhq avatar hqhq commented on May 22, 2024 1

@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.
For not allowing to write to blkio.time, that's because it can't be written, it only for showing blkio cgroup data, you can ll /sys/fs/cgroup/blkio and find out which files are allowed to be written.

from runc.

rajasec avatar rajasec commented on May 22, 2024 1

Closing this issue as it is current design from Kernel to support cfq only for blkio subsystem of cgroups

from runc.

rajasec avatar rajasec commented on May 22, 2024

For testing purpose, I've added template_test.go for adding block device support, this time it fails..
System error: write /sys/fs/cgroup/blkio/integration/test/blkio.weight_device: invalid argument
Even the tests failed in integration directory
Overall felt that, blkio.weight_device is not allowing to write in /sys

from runc.

rajasec avatar rajasec commented on May 22, 2024

Ubuntu comes with deadline I/O scheduler as default, due to which blkio weight device is not writing to /sys.
The moment I've changed to cfq scheduler, I'm able to set the values in blkio.weight_device.
Even I've tested with noop scheduler, same failure.
Looks like, blkio weightage supports only in CFQ I/O scheduler.
Even though I modified to CFQ, few of the things blkio.time is not allowing to write

from runc.

rajasec avatar rajasec commented on May 22, 2024

As per Kernel code, cfq-iosched.c, weight device works for CFQ..
{
.name = "weight_device",
.flags = CFTYPE_NOT_ON_ROOT,
.seq_show = cfqg_print_weight_device,
.write = cfqg_set_weight_device,
},
@crosbymichael @mrunalp
Is there way to solve for deadline schedulers which comes with default value.

from runc.

mrunalp avatar mrunalp commented on May 22, 2024

@rajasec From the kernel documentation here https://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt

Currently two IO control policies are implemented. First one is proportional
weight time based division of disk policy. It is implemented in CFQ. Hence
this policy takes effect only on leaf nodes when CFQ is being used.

from runc.

rajasec avatar rajasec commented on May 22, 2024

Thanks @hqhq @mrunalp for the confirmation
For database operations which ran on the separate disks with deadline scheduler, now we are forced to switched to cfq. BLKIO for database operations can not be utilized.

from runc.

jia-zhengwei avatar jia-zhengwei commented on May 22, 2024

@hqhq , hello, 请问cgroup没有挂载到clkio.weight等(如下图)应该如何做才能挂载。
dockerd log:
image
cgroup folder/file:
image

and also, why the group/user is 15 not root?

from runc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.