Hi there,
may be this is not the LXC issue directly…
I’m using Debian 11 Bullseye (this is a testing release yet), which uses LXC 4 (4.0.6) and kernel 5.10.0. The system is a simple default installation.
I’ve created a container with these (relevant) settings:
lxc.cgroup.cpuset.cpus = 0-3
lxc.cgroup.memory.soft_limit_in_bytes = 4294967296
lxc.cgroup.memory.limit_in_bytes = 4294967296
The physical machine has 8 CPU and 16GB RAM.
But when I started the container and checked the limitations, I realized those are not applied:
# cat /proc/cpuinfo
processor : 0
....
processor : 7
(as you can see, all 8 CPU’s visible)
# free
total used free shared buff/cache available
Mem: 16341404 86856 16210724 0 43824 16254548
Swap: 0 0 0
Well, there are the total amount of memory.
This is the output of lxc-checkconfig
:
Cgroup v1 systemd controller: missing
Cgroup v1 freezer controller: missing
Cgroup namespace: required
May be these is the problem? If not, what would be it?
Thanks for your help,
a.