Constantsยง
- V1_
CPU_ ๐PERIOD_ PATH - V1_
CPU_ ๐QUOTA_ PATH - Default constant Cgroup paths and hierarchy.
- V2_
CPU_ ๐LIMIT_ PATH
Functionsยง
- get_
container_ ๐cpu_ limit - Returns the CPU limit of the container.
- get_
cpu_ limit_ v1 - Returns the CPU limit when cgroup v1 is utilised.
- get_
cpu_ limit_ v2 - Returns the CPU limit when cgroup v2 is utilised.
- get_
system_ cpu - Returns the total system cpu.
- total_
cpu_ available - Returns the total number of cpu available as a float.