<div dir="ltr">Ok, thanks for the clarification. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 6, 2023 at 10:32 PM Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">As far as I know, that's normal – /proc/meminfo always reflects the total amount of memory, regardless of cgroup limits. LXC uses lxcfs to mount a fake meminfo file there, nspawn doesn't have an equivalent.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 6, 2023, 18:55 Paulo Coghi - Coghi IT <<a href="mailto:paulocoghi@gmail.com" rel="noreferrer" target="_blank">paulocoghi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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.<br><br>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.<br><br>Is this correct? If yes, is there a way to make the container to show only the memory separated to it?<br><br>Paulo Coghi</div>
</blockquote></div>
</blockquote></div>