Skip to content
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

Add --blkio-weight option to run subcommand #509

Merged
merged 2 commits into from
Nov 12, 2021

Conversation

pippolo84
Copy link
Contributor

The PR aims to add the --blkio-weight option to nerdctl run, exposing the same behaviour as docker run --blkio-weight

Both cgroup v1 and cgroup v2 are supported. Besides, since the bfq IO scheduler exposes a different weight knob, a specific check is added for that.
Just like in docker, if the underlying kernel does not support blkio weight, a warning is generated and the weight is reset to 0.

Updates #215

Signed-off-by: Akihiro Suda <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks.

Pushed commit compose: support blkio_config as a follow-up

@AkihiroSuda AkihiroSuda merged commit 0f3e1e6 into containerd:master Nov 12, 2021
@AkihiroSuda AkihiroSuda mentioned this pull request Nov 12, 2021
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants