v2 cpu.max question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a question about cgroup v2's `cpu.max` value. The documentation (https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#cpu-interface-files) says:

> cpu.max
>
>     A read-write two value file which exists on non-root cgroups. The default is “max 100000”.
>
>     The maximum bandwidth limit. It’s in the following format:
>
>     $MAX $PERIOD
>
>     which indicates that the group may consume upto $MAX in each $PERIOD duration. “max” for $MAX indicates no limit. If only one number is written, $MAX is updated.
>
"the group may consume upto $MAX in each $PERIOD duration". But $MAX what? Microseconds? Clock cycles? Arbitrary CPU scheduling units with only a relative meaning? Elephants? At the moment I don't know what values are sensible to set here.

I found the scheduler docs (https://www.kernel.org/doc/html/latest/scheduler/sched-bwc.html#management) which describe what sounds like might be a similar mechanism but for cgroup v1 - is this the same (in which case $MAX would in fact be measured in microseconds)?

Unless I'm missing something, I think the documentation should be updated to include the answer.

Thanks,

Patrick Reader

(I hope this is an appropriate forum to ask in - please direct me elsewhere if necessary).




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux