[Users] Can't create directory /sys/fs/cgroup/memory/machine.slice/ Cannot allocate memory
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Jan 28 10:36:27 MSK 2021
Hi Joe,
i'd suggest to check memory limits for root and "machine.slice" memory cgroups
/sys/fs/cgroup/memory/*limit_in_bytes
/sys/fs/cgroup/memory/machine.slice/*limit_in_bytes
All of them should be unlimited.
If not - search who limit them.
--
Best regards,
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
On 01/27/2021 10:28 PM, Joe Dougherty wrote:
> I'm running into an issue on only 1 of my OpenVZ 7 nodes where it's unable to create a directory on /sys/fs/cgroup/memory/machine.slice due to "Cannot allocate memory" whenever
> I try to start a new container or restart and existing one. I've been trying to research this but I'm unable to find any concrete info on what could cause this. It appears to be
> memory related because sometimes if I issue "echo 1 /proc/sys/vm/drop_caches" it allows me to start a container (this only works sometimes) but my RAM usage is extremely low
> with no swapping (swappiness even set to 0 for testing). Thank you in advance for your help.
>
>
> Example:
> *# vzctl start 9499*
> *Starting Container ...*
> *Mount image: /vz/private/9499/root.hdd*
> *Container is mounted*
> *Can't create directory /sys/fs/cgroup/memory/machine.slice/9499: Cannot allocate memory*
> *Unmount image: /vz/private/9499/root.hdd (190)*
> *Container is unmounted*
> *Failed to start the Container*
>
>
> Node Info:
> *Uptime: 10 days*
> *OS: Virtuozzo 7.0.15*
> *Kernel: 3.10.0-1127.18.2.vz7.163.46 GNU/Linux*
> *System Load: 3.1*
> */vz Usage: 56% of 37T*
> *Swap Usage: 0%*
> *RAM Free: 84% of 94.2GB*
> *
> *
> *# free -m*
> * total used free shared buff/cache available*
> *Mem: 96502 14259 49940 413 32303 80990*
> *Swap: 32767 93 32674*
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20210128/de3867d1/attachment.html>
More information about the Users
mailing list