[lxc-users] Limits kind of not working
Serge E. Hallyn
serge at hallyn.com
Mon Sep 11 20:24:34 UTC 2017
Quoting Pavol Cupka (pavol.cupka at gmail.com):
> Hello list!
>
> I am running LXD on gentoo, but without systemd (with openrc). I have
> trouble setting limits.cpu, limits.memory and disk size (using btrfs). I
> haven't tried the network and io limits yet. The values for limits.cpu can
> be found in /sys/fs/cgroup/cpuset/lxc/c1/cpuset.cpus for example, but
> /proc/cpuinfo inside the container still shows all the processors.
/proc/cpuinfo isn't virtualized to show only the cpus you have
available. For that you have to use lxcfs, which is a fuse filesystem
that overmounts /proc and filters the results.
github.com/lxc/lxcfs
> LXC 2.0.8
> LXD 2.16
> CGMANAGER 0.41
>
> Thank you for any pointers.
> Pavol
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list