[pve-devel] [PATCH container 3/7] config: cpuunits: update default description

Fiona Ebner f.ebner at proxmox.com
Fri Oct 7 14:41:43 CEST 2022


to reflect that it depends on the cgroup version.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---

In qemu-server, it's already like this.

 src/PVE/LXC/Config.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 48e0a6e..b32eff6 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -507,7 +507,7 @@ my $confdesc = {
 	description => "CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs.",
 	minimum => 0,
 	maximum => 500000,
-	default => 1024,
+	default => 'cgroup v1: 1024, cgroup v2: 100',
     },
     memory => {
 	optional => 1,
-- 
2.30.2






More information about the pve-devel mailing list