[lxc-users] memory.limit_in_bytes works, but not memory.memsw.limit_in_bytes and cpuset.cpus
Yonsy Solis
yonsy.s.p at gmail.com
Tue Apr 28 19:46:09 UTC 2015
Hi.
I setup some containers (lxc 1.1.2 ubuntu-lxc-git-stable-1_1 ppa) and i
can configure memory with memory.limit_in_bytes, but i have two
problems:
- if i try to setup the swap memory limit with
memory.memsw.limit_in_bytes (in config or with lxc-cgroup), don't work
aparently, this is a minor problem now, the servers works only with
real memory, swap is only for minimal use in general.
- if i setup the cpus with cpuset.cpus and the cores are consecutive
(lxc-cgroup -n $container cpuset.cpus 2,3) this appear inside the
container (/proc/cpuinfo show two cores) but, if are non-cosecutive
(lxc-cgroup -n $container cpuset.cpus 2,6) then in /proc/cpuinfo only
appear one core (with top/htop too) but if i do:
stress -c 8 --timeout 5s
in the container, outside in the host (with htop for example) that
correctly the cores 2 and 6 are stressed. The failure is cosmetic, but
in the container only will report one cpu.
Yonsy Solis
More information about the lxc-users
mailing list