[libvirt] [PATCH 37/53] vircgroup: introduce virCgroupV2SetCpuCfsPeriod
Michal Privoznik
mprivozn at redhat.com
Fri Oct 5 09:09:48 UTC 2018
On 10/02/2018 10:44 AM, Pavel Hrdina wrote:
> In order to set CPU cfs period using cgroup v2 'cpu.max' interface
> we need to load the current value of CPU cfs quota first because
> format of 'cpu.max' interface is '$quota $period' and in order to
> change 'period' we need to write 'quota' as well. Writing only one
> number changes only 'quota'.
>
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> src/util/vircgroupv2.c | 68 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
ACK
Michal
More information about the libvir-list
mailing list