OpenVZ Memory

  • Thread starter Thread starter mefiX
  • Start date Start date
M

mefiX

Guest
Hi folks,

I'm a bit confused about the allocation of memory to OpenVZ-Guests.
My Host (the machine actually running proxmox ve) has 2GB of ram.
I assigned 1024MB of ram to one of my OpenVZ-guests via the web-interface.
But within the OpenVZ-Guest /proc/meminfo actually shows:
Code:
MemTotal:      2053328 kB          
MemFree:       1096164 kB
free -m also confirms this:
Code:
             total       used       free     shared    buffers     cached
Mem:          2005        930       1074          0          0          0
-/+ buffers/cache:        930       1074
Swap:            0          0          0
So, what happens, if 1024MB are exceeded? Will the guest start to swap, or will VE be tolerant and spend more ram?

greets,
mefiX
 
Hi folks,

I'm a bit confused about the allocation of memory to OpenVZ-Guests.
My Host (the machine actually running proxmox ve) has 2GB of ram.
I assigned 1024MB of ram to one of my OpenVZ-guests via the web-interface.

Looks you assigned 1GB RAM and 1GB SWAP? - so you can use 2GB.