fropa

Member
Dec 12, 2017
14
1
8
32
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!