From fa77f6868c7472b3f1a42dc19fc301aecfd2dcf0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 21 Jul 2021 23:49:11 +0200 Subject: [PATCH] cgroup: Add footnote to io.weight. --- content/posts/cgroup v2 by hand.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/posts/cgroup v2 by hand.adoc b/content/posts/cgroup v2 by hand.adoc index 384d4f1..d287f5a 100644 --- a/content/posts/cgroup v2 by hand.adoc +++ b/content/posts/cgroup v2 by hand.adoc @@ -102,7 +102,7 @@ the example do, exactly? - *cpu.weight* is the relative amount of CPU cycles the cgroup is getting under load. The CPU cycles are distributed by adding up the weights of all _active_ children and giving each the fraction matching the ratio of its weight against - the sum.footnote:[link:{url-kernel-doc}#weights[Kernel documentation on + the sum.footnote:weight[link:{url-kernel-doc}#weights[Kernel documentation on Control Group v2, section “Resource Distribution Models” → “Weights”]] It has a range from 1 to 10,000. If one process has a weight of 3,000 and the only other active process has a weight of 7,000, the former will get 30% and the @@ -189,9 +189,9 @@ echo "$$" > cgroup.procs -------------------------------------------------------------------------------- - *io.weight* specifies the relative amount of IO time the cgroup can use in - relation to its siblings and has a range from 1 to 10,000. The priority can - be overridden for individual devices with the major:minor syntax, like “8:0 - 90”. The default is value is 100. + relation to its siblings and has a range from 1 to 10,000.footnote:weight[] + The priority can be overridden for individual devices with the major:minor + syntax, like “8:0 90”. The default is value is 100. - *io.max* limits bytes per second (_rbps/wbps_) and/or IO operations per second (_riops/wiops_).