[pve-devel] Reduce LXC limits: memory and root disk

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Dec 27 12:33:07 CET 2017


On Mon, Dec 25, 2017 at 09:44:52AM +0100, c.monty at web.de wrote:
> The avg. memory usage of LXC running HAProxy is 10MB according to WebUI.
> Checking the amount of free and used system memory in LXC shows:
> vm102-haproxy:~# free
>              total       used       free     shared    buffers cached
> Mem:      16344092   16109216     234876     243640 981768      10120
>
(...)
> 
> Questions:
> Can you consider to reduce the current limits for root disk (1GB) and memory
> (32MB) when defining a LXC container?
> Why is the displayed memory usage in WebUI different to output of /free/?

On alpine, free(1) uses sysinfo(2), which always shows data from the
host. In the case above it shows 16G of total memory with 234M free.




More information about the pve-devel mailing list