]> git.proxmox.com Git - pve-container.git/commitdiff
set memory.kmem.limit_in_bytes
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 19 Nov 2015 09:19:46 +0000 (10:19 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 20 Nov 2015 06:12:12 +0000 (07:12 +0100)
Memcg/kmem reclaim support has been merged since kernel 4.1,
so it makes sense to include this.

Closes #820

src/PVE/LXC.pm

index aa705c8f9aaa93b97ff171e02ddb704573a1a65b..a326e748f46f7d3ffff091f1952ec446ccf78e23 100644 (file)
@@ -1094,6 +1094,7 @@ sub update_lxc_config {
 
     my $lxcmem = int($memory*1024*1024);
     $raw .= "lxc.cgroup.memory.limit_in_bytes = $lxcmem\n";
+    $raw .= "lxc.cgroup.memory.kmem.limit_in_bytes = $lxcmem\n";
 
     my $lxcswap = int(($memory + $swap)*1024*1024);
     $raw .= "lxc.cgroup.memory.memsw.limit_in_bytes = $lxcswap\n";