Re: [systemd-devel] [nspawn] Could you plz explain me, about resources

2020-03-06 Thread Michal Koutný
Hello.

On Sat, Feb 15, 2020 at 07:33:52PM +0300, Хиль  Эдуард  
wrote:
> Hi there! I am new for containers and i try systemd-nspawn . I created my 
> first container with
>  
> MemoryHigh=100M
> MemoryMax=100M
> MemorySwapMax=1M
>  
> but _inside_ container i see all host resources (for example — 1Gb RAM).
How do you check for the resources available inside the container?
Also, do you use the unified hierarchy?

> All i want — see inside containers actual limits for this container as
> done in LXC with lxcfs. Is this possible? And if not, could you please
> explain to me why?
You should see the configured limits on the root cgroup in the
container's namespace. The cgroup limits won't propagate into
systemd-wide interfaces such as /proc/meminfo.

Michal
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [nspawn] Could you plz explain me, about resources

2020-02-15 Thread Хиль Эдуард

Hi there! I am new for containers and i try systemd-nspawn . I created my first 
container with
 
MemoryHigh=100M
MemoryMax=100M
MemorySwapMax=1M
 
but _inside_ container i see all host resources (for example — 1Gb RAM). All i 
want — see inside containers actual limits for this container as done in LXC 
with lxcfs. Is this possible? And if not, could you please explain to me why?
--
Хиль Эдуард
 ___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel