mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
Change default resource partition to /machine
After discussions with systemd developers it was decided that a better default policy for resource partitions is to have 3 default partitions at the top level /system - system services /machine - virtual machines / containers /user - user login session This ensures that the default policy isolates guest from user login sessions & system services, so a mis-behaving guest can't consume 100% of CPU usage if other things are contending for it. Thus we change the default partition from /system to /machine Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
a71ec98841
commit
aed4986322
@ -537,7 +537,7 @@ virCgroupPtr virLXCCgroupCreate(virDomainDefPtr def, bool startup)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!(res->partition = strdup("/system"))) {
|
||||
if (!(res->partition = strdup("/machine"))) {
|
||||
virReportOOMError();
|
||||
VIR_FREE(res);
|
||||
goto cleanup;
|
||||
|
@ -236,7 +236,7 @@ int qemuInitCgroup(virQEMUDriverPtr driver,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!(res->partition = strdup("/system"))) {
|
||||
if (!(res->partition = strdup("/machine"))) {
|
||||
virReportOOMError();
|
||||
VIR_FREE(res);
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user