Azure Container App: /proc/meminfo Reports Incorrect Memory Allocation
I've created an Azure Container App container with Consumption-GPU-NC24-A100
workload profile.
This workload profile supports upto 220GiB of memory and 24 CPU cores. However, I have configured it to 2 cores and 24GiB RAM, as seen in this screenshot:
Despite this, running nproc
and free -h
inside the container returns the original, maximum values:
...which is completely incorrect as I have clearly provisioned the container with a fraction of the maximum resources. I am able to view the correct values in cgroup:
I believe this is a bug in Azure. We expect /proc/meminfo
to return the true memory available to my container.
Please look into this issue on priority, as it is causing all my programs to be terminated by the OOM killer because of trying to allocate more memory than is actually available.
Thank you,
Dev