use memory and cpuset croups as base for resource calculation
|Category:||Drivers - Monitor|
The recent linux distributions use cgroup for memory and cpu separation when a cgroup is in use, like 'machine.slice' or similar (configurable?) use size in the cgroup and the count of CPUs in the relevant cgroups.
Currently we have a script to query and calculate the values for RESERVED_* variables per each host: https://github.com/OpenNebula/addon-storpool/blob/master/misc/reserved.sh