Proxmox memory usage questions with LXC

deniax

New Member
Jan 23, 2023
15
0
1
Hi,

I have two questions based on the attached screenshot:

1) My LXC container runs out of memory and becomes almost unresponsive because of that. The memory reportage in Proxmox seems correct as in screenshot its seen that from the total 41GB of memory, whilst 0 is free, there's 36GB in cache, meaning the reported 4.41GB in use is correct.

I'm writing to RAM (/dev/shm) , but why is it showing me that there is still 30GB of memory free/available when there's clearly not
Code:
root@ibra:/opt/appdata/bazarr# df -H
Filesystem                        Size  Used Avail Use% Mounted on
/dev/mapper/ssd-vm--102--disk--0   64G   49G   12G  81% /
/dev/mapper/ssd-vm--102--disk--1  270G   33k  256G   1% /ssd
none                              504k  4.1k  500k   1% /dev
tmpfs                              68G   39G   30G  57% /dev/shm

And also why the LXC container becomes for 95% unresponsive and it doesn't use it "data in cache" which is 36GB? Or maybe thats more a question for Ubuntu that I'm running?

2) Why If I have configured 40GB of SWAP configured in Proxmox, the LXC container shows I have 8GB of swap?
 

Attachments

  • SCR-20230320-rjik.png
    SCR-20230320-rjik.png
    177.9 KB · Views: 12
Some distros (e.g. alpine) seem to have version of free/top/... that show the swap/memory info from the host, and some (e.g. debian) the memory assigned to the lxc.
 
Some distros (e.g. alpine) seem to have version of free/top/... that show the swap/memory info from the host, and some (e.g. debian) the memory assigned to the lxc.

Thanks.
I installed from the Proxmox template Debian 11/bullseye , and indeed the memory is now correct, but the SWAP seems still to be ignored, I set 39.5GB in Proxmox , but Debian LXC reports only 8.1GB (see screenshot)
 

Attachments

  • SCR-20230320-syhn.png
    SCR-20230320-syhn.png
    149.5 KB · Views: 7

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!