From 0ed42ef45063b667c6cddcf77fd994ee4f903989 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 17 Jul 2021 23:00:41 +0200 Subject: [PATCH] cgroup: Clarify that cpu.weight.nice is not the same as nice. --- content/posts/cgroup v2 by hand.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/posts/cgroup v2 by hand.adoc b/content/posts/cgroup v2 by hand.adoc index 45ab7ac..d8ddc8d 100644 --- a/content/posts/cgroup v2 by hand.adoc +++ b/content/posts/cgroup v2 by hand.adoc @@ -99,9 +99,9 @@ Try adding your current shell to the group with `echo "$$" > cgroup.procs`. All processes you start from this shell are now in the same cgroup. But what does the example do, exactly? -- *cpu.weight.nice* works like the link:{url-nice}[nice] command and has a range - from -20 to 19. It is an alternate interface to *cpu.weight* which has a range - from 1 to 10,000. +- *cpu.weight.nice* works like the link:{url-nice}[nice] command (but it is not + the same) and has a range from -20 to 19. It is an alternate interface to + *cpu.weight* which has a range from 1 to 10,000. - *cpu.max* sets the “maximum bandwidth limit”. We told the kernel that the processes should use at most 200,000 µs every 100,000 µs, meaning they can use the power of up to 2 cores.