Memory usage inside LXC

wn6

Renowned Member
Dec 20, 2016
2
0
66
35
Hi all,

Any of my LXC containers in proxmox4.4 shows different memory usage from inside of container and in web interface.

In web interface memory usage looks good.
1.PNG
Inside of container swap always shows as 2GB capacity. Memory usage can be more than available (for example 282M/256M).
2.PNG
How can I get a correct info inside of container?
 
Last edited:
How can I get a correct info inside of container?

I think you have to wait until the problems are fixed upstream. General problem is that the container from the host perspective does need more memory than you have available inside. Do not forget the management overhead, it's less than with KVM, but it's there.
 
Hi all,

Any of my LXC containers in proxmox4.4 shows different memory usage from inside of container and in web interface.

In web interface memory usage looks good.
View attachment 4540
Inside of container swap always shows as 2GB capacity. Memory usage can be more than available (for example 282M/256M).
View attachment 4541
How can I get a correct info inside of container?

is 2GB the swap size of the host? if so, this should be fixed with the next version ( 2.0.5-pve2) of our lxcfs package (see https://git.proxmox.com/?p=lxcfs.git;a=commit;h=3b716f2b274b2d2ae26c09e6ae17aaf81b016601 )
 
Thank you for your replies.
BelCloud, I'm using proxmox4.4 from a template in soyoustart.com (OVH). You are right, the issue is related to migrated openvz containers.
fabian, yes, 2GB is the swap size of the host. Thank you.
LnxBil, thank you, really 'free' shows correct info instead of 'htop'.
 

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!