OpenVZ Forum


Home » General » Support » Problem with RAM and swap (VPS don't swap)
Re: Problem with RAM and swap [message #40930 is a reply to message #40922] Tue, 26 October 2010 13:35 Go to previous messageGo to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
nubio wrote on Mon, 25 October 2010 15:27
So i a VPS have 512Mo of memory it could be RAM or SWAP ? But it's not possible to give some extra swap ?


As it was already said by xemul when you set up a "privvmpages" limit for a Container, it means that the Container will be able to allocate that number of Virtual Memory. And you cannot say for sure how many of those pages will be in real physical memory and many of them will be in swap (on the Hardware Node!) just because it depends on the memory amount available on Hardware Node itself. If there is enough memory on the Hardware Node then all the memory allocated by Container will be in physical node RAM. If not - some pages will be swapped out.

nubio wrote on Mon, 25 October 2010 15:27
For example apache2 need swap to working fine ..
I will see the server swaping when all my memory physic will be full used ?


That fake swap entry was done to be shown inside a Container especially for those silly applications which check the swap presence on start or installation stage. So the Swap at the moment is only REPORTED inside a CT, you'll never see it is reported as "used" inside a CT.
And yes - in case the whole Hardware Node lacks the physical RAM, it will use swap and memory pages (both allocated by Hardware Node itself and by Containers) may be swapped out.

Hope that helps.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Network Card Bonding, additional IP range
Next Topic: very odd error caused by a particular VE
Goto Forum:
  


Current Time: Fri Aug 01 05:49:48 GMT 2025

Total time taken to generate the page: 0.36228 seconds