nspawn container sees total host memory instead of MemoryMax value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I used "systemctl set-property systemd-nspawn@my-container-real-name.service MemoryMax=2G", to test defining a limit on RAM usage of a nspawn container.

But after setting the limit, with the config being created at "/etc/systemd/system.control/" correctly, when I start the container and enter on it, the "free" command still shows the memory info from the host.

Is this correct? If yes, is there a way to make the container to show only the memory separated to it?

Paulo Coghi

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux