Structs§
- Resource
Spec 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.