Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

kernel: enable group scheduling in CFQ#157

Closed
devimc wants to merge 1 commit into
kata-containers:masterfrom
devimc:topic/enableIOSched
Closed

kernel: enable group scheduling in CFQ#157
devimc wants to merge 1 commit into
kata-containers:masterfrom
devimc:topic/enableIOSched

Conversation

@devimc
Copy link
Copy Markdown

@devimc devimc commented Aug 28, 2018

With group scheduling we can specify a block IO weight
for all devices or a specific device. This change is to support
docker options --blkio-weight and --blkio-weight-device

fixes #156

Signed-off-by: Julio Montes julio.montes@intel.com

@devimc
Copy link
Copy Markdown
Author

devimc commented Aug 28, 2018

@jcvenegas @jodh-intel @kata-containers/packaging @Weichen81 @Pennyzct please take a look

@jcvenegas
Copy link
Copy Markdown
Member

looks good , could you bump the file kernel/kata_config_version

With group scheduling we can specify a block IO weight
for all devices or a specific device. This change is to support
docker options `--blkio-weight` and `--blkio-weight-device`

fixes kata-containers#156

Signed-off-by: Julio Montes <julio.montes@intel.com>
@devimc devimc force-pushed the topic/enableIOSched branch from 6b3fb88 to 67db067 Compare August 28, 2018 19:09
@devimc
Copy link
Copy Markdown
Author

devimc commented Aug 28, 2018

@jcvenegas done, thanks

Copy link
Copy Markdown
Contributor

@mcastelino mcastelino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devimc this confuses me a little bit. So we plan to enforce inside the VM vs setting this up on the host?

Enforcing inside the VM may help, but you really want to constrain it on the host side

@mcastelino
Copy link
Copy Markdown
Contributor

@devimc expanding this a little more. Per spec

By default, all containers get the same proportion of block IO bandwidth (blkio). This proportion is 500. To modify this proportion, change the container’s blkio weight relative to the weighting of all other running containers using the --blkio-weight flag.

So this is proportional to the other containers running on the host.

Am I reading the spec correctly here.

@amshinde
Copy link
Copy Markdown
Member

@mcastelino Yes, I think the weighs in the docker case applies to all containers running on the host. So for docker, it would make more sense to apply the constraints on the host side.
@devimc Have you looked at the equivalent option for kubernetes and how the blkio-weights are applied there?

@devimc
Copy link
Copy Markdown
Author

devimc commented Aug 28, 2018

@mcastelino from a compatible (runc) perspective I think the constraint should be applied in the VM, in that way the constraint is honoured and visible for the container (/sys/fs/cgroup/...). From a performance perspective I don't have idea, @grahamwhaley any thoughts ?

@amshinde afaik for kubernetes there are only two kind of resources: cpu and memory https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-types

@amshinde
Copy link
Copy Markdown
Member

@devimc In case of docker, there is just one container running inside the VM. Its not quite useful to have this constraint applied to a single container.

@devimc
Copy link
Copy Markdown
Author

devimc commented Aug 28, 2018

@amshinde yes, I think the same
closing PR

@devimc devimc closed this Aug 28, 2018
@egernst egernst removed the review label Aug 28, 2018
@jcvenegas
Copy link
Copy Markdown
Member

jcvenegas commented Aug 28, 2018

@mcastelino @amshinde I agree with @devimc we should apply inside of the VM when possible the main reason that we are different with the spec is that the VM is a pod for us.

@jcvenegas
Copy link
Copy Markdown
Member

commented after refresh, that is a good point @amshinde.

@grahamwhaley
Copy link
Copy Markdown
Contributor

Now we've discussed and agreed - can we check and add this info to the limitations doc if necessary please.

@devimc devimc deleted the topic/enableIOSched branch April 8, 2019 16:14
jcvenegas pushed a commit that referenced this pull request Jul 2, 2019
Update Makefile so that build artifacts are actually tracked as make
targets. This is to enforce a strict prerequisite ordering and better
handle parallel builds.

Fixes: #157

Signed-off-by: Marco Vedovati <mvedovati@suse.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kernel: support block IO weights

6 participants