swappiness on container

fropa

Member
Dec 12, 2017
14
1
8
33
Hi, I use Proxmox version '5.1-38'. I've 30 containers and VM-s. I want to change swappiness variable from 60 to 15 on several containers and it says 'sysctl: setting key "vm.swappiness": Read-only file system'. I think I should to change this on node but I don't want. Can I change it on only containers I want?
 
Also I found something 'lxc-cgroup -n CTnum memory.swappiness= ' command and '/sys/fs/cgroup/memory/lxc/CTnum/memory.swappiness' file
and the command sayed 'tools/lxc_cgroup.c: main: 139 failed to retrieve value of 'memory.swappiness=2' for '/var/lib/lxc:' . I can change file but from container "sysctl vm.swappiness" shows 60 anyway.