Skip to content

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Jan 4, 2021

relates to moby/moby#41252 (comment)

These options were deprecated and removed in the Linux kernel v5.0 and up in;

- Description for the changelog

- Deprecate blkio-weight options with cgroups v1

@thaJeztah
Copy link
Member Author

@AkihiroSuda perhaps you could have a look; I'm somewhat confused what's deprecated, and what not (and/or if this has already been removed?). Looking at https://github.com/torvalds/linux/blob/fb5772cbfe48575711bf789767d561582376f7f1/Documentation/cgroup-v1/blkio-controller.txt#L91-L97 these are still listed

Are they still functional? Only with v2, or also with v1, or have they been fully removed?

Do we need to update the checks we use to print the warnings (as shown in docker/for-linux#1175)?

@thaJeztah
Copy link
Member Author

Do you also know which kernel version this was deprecated / removed in?

@AkihiroSuda
Copy link
Collaborator

blkio.weight was removed in kernel 5.0: torvalds/linux@f382fb0

cgroup v2 still has io.weight which can be converted from blkio.weight


Specifying blkio weight (`docker run --blkio-weight` and `docker run --blkio-weight-device`)
is now marked as deprecated when using cgrous v1, because the corresponding features
were marked [deprecated in the Linux kernel](https://github.com/torvalds/linux/commit/f382fb0bcef4c37dc049e9f6963e3baf204d815c).
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/deprecated/removed/

@thaJeztah
Copy link
Member Author

blkio.weight was removed in kernel 5.0: torvalds/linux@f382fb0

Should it be removed from this page? https://github.com/torvalds/linux/blob/23aa16489c06e6739c7c99e9fdccf723d2691a5d/Documentation/admin-guide/cgroup-v1/blkio-controller.rst#proportional-weight-policy-files or is that expected to still be there (and converted to io.weight) ?

@thaJeztah
Copy link
Member Author

cgroup v2 still has io.weight which can be converted from blkio.weight

Do we need to make changes on our side to perform that conversion? (Haven't checked)

These options were deprecated and removed in the Linux kernel v5.0 and up in;

- torvalds/linux@f382fb0
- torvalds/linux@fb5772c
- torvalds/linux@23aa164

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

updated; PTAL (hope the description of the io.weight part is correct, happy to update otherwise

@codecov-io
Copy link

Codecov Report

Merging #2908 (fb2ea09) into master (2291f61) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2908   +/-   ##
=======================================
  Coverage   57.05%   57.05%           
=======================================
  Files         297      297           
  Lines       18653    18653           
=======================================
  Hits        10643    10643           
  Misses       7151     7151           
  Partials      859      859           

@AkihiroSuda
Copy link
Collaborator

Should it be removed from this page? https://github.com/torvalds/linux/blob/23aa16489c06e6739c7c99e9fdccf723d2691a5d/Documentation/admin-guide/cgroup-v1/blkio-controller.rst#proportional-weight-policy-files

Seems yes

conversion

Conversion is done by runc, not by kernel nor Moby

@thaJeztah
Copy link
Member Author

Conversion is done by runc, not by kernel nor Moby

Thanks Akihiro! (sorry for all the questions 😅)

@thaJeztah thaJeztah added this to the 20.10.3 milestone Jan 7, 2021
@thaJeztah
Copy link
Member Author

@silvin-lubecki PTAL

@tiborvass tiborvass merged commit c6493c7 into docker:master Jan 7, 2021
@thaJeztah thaJeztah deleted the deprecate_blkio_weight branch January 7, 2021 19:27
Copy link
Collaborator

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

**Deprecated in Release: v20.10**

Specifying blkio weight (`docker run --blkio-weight` and `docker run --blkio-weight-device`)
is now marked as deprecated when using cgrous v1 because the corresponding features
Copy link
Contributor

Choose a reason for hiding this comment

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

little typo: cgrous cgroups

Copy link
Member Author

Choose a reason for hiding this comment

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

arf, thx

@thaJeztah thaJeztah modified the milestones: 20.10.3, 20.10.4 Feb 2, 2021
@thaJeztah thaJeztah modified the milestones: 20.10.4, 21.xx Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants