Module utils

Source

Structs§

ResourceSpec
ResourceSpec holds the static resource specifications of a node, such as CPU cores and memory capacity. These values are fixed at startup and do not change dynamically during runtime.

Functions§

get_cpus
Get the CPU core number of system, aware of cgroups.
get_sys_total_memory
Get the total memory of the system. If cgroup_limits is enabled, it will also check it.