swap not used

Burn

New Member
Nov 24, 2009
17
0
1
I have a server with 16 Gb ram and 16 Gb swap:
Code:
~$ free -m
             total       used       free     shared    buffers     cached
Mem:         16048       1064      14984          0        258        503
-/+ buffers/cache:        302      15746
Swap:        15359          0      15359
If I understand correctly, I should be able to allocate up to 32 Gb of memory to a container. But no matter what values I use in "memory" and "swap" when creating a vm, when running top inside container, memory is capped at 16 Gb. Am I doing something wrong?
The version is
Code:
$ uname -a
Linux prox3 2.6.24-9-pve #1 SMP PREEMPT Tue Nov 17 09:34:41 CET 2009 x86_64 GNU/Linux
There is only one vm on the server now.
 
Last edited:
I guess this is just a 'display' problem (virtualizing the infos on th /proc/ filesystem is kind of a hack). You should be able to allocate the whole 32GB (although swapping out 16GB is maybe very, very, very slow).
 
my actual problem is that I have another proxmox box (4Gb Ram+4Gb swap) and I'm trying to install zimbra into openvz container. Minimum requirements are said to be 2 Gb ram, but even if I allocate all the ram and swap (=8Gb) to the container, installation still fails with "not enough memory ". Checking top on host, I see that ram is used, but swap is not. It somewhat confuses me.