[pkg-lxc-devel] LXC cgroup problem in Bullseye
Ervin Hegedüs
airween at gmail.com
Sat Jun 19 22:34:52 BST 2021
Hi there,
I really hope this is the right forum for my question :).
I've been using LXC for a long time, since about Debian 8. A few days ago I
installed a Bullseye, and now I want to install the containers, as I did it
on other machines.
Everything seems to work as well, except the cgroup limits. I can't set the
CPU nor memory limitation. Here is how I try:
lxc.cgroup.cpuset.cpus = 0-3
lxc.cgroup.memory.soft_limit_in_bytes = 4294967296
lxc.cgroup.memory.limit_in_bytes = 4294967296
but when I step into the container, I see:
cat /proc/cpuinfo
...
processor : 7
so I see all CPU's that exist on the host. The memory limit is similar,
here is the output:
# free
total used free shared buff/cache
available
Mem: 16341404 80492 16255104 132 5808
16260912
This config works as well on many Debian 10 system: I can set the limit for
memory or CPU. (Just my 2 cents: in most cases I use lxc.cgroup.blkio for
all disks. This isn't set yet in this container, but I assume that also
does not work.)
What am I doing wrong? Is there any documentation for LXC 4 resource
limitation? (Especially for Debian 11...)
Many thanks,
a.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20210619/090f992a/attachment.htm>
More information about the Pkg-lxc-devel
mailing list