OpenVZ Forum


Home » Mailing lists » Users » swap space?
Re: swap space? [message #16107 is a reply to message #16105] Wed, 22 August 2007 07:30 Go to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Steve Wray wrote:
> Hi there,
> I'm noticing that 'free' shows no swap space in a VE.
> 
> I had a good dig through the wiki and man pages and I can't find any 
> references to being able to configure a VE to have swap (of its own).

That's correct. You can't control VE swap space directly.
Kernel decides itself what should be preempted to swap in the system
and which data is most rarely used.
This is more efficient from overall performance point of view then having
a separate swap space assigned to each VE and used when VE goes higher some limit.

> Is this something thats abstracted away (ie the VE gets to use the hosts 
> swap as needed) or is there a way to configure swap availability for 
> each VE?

"the VE gets to use the hosts swap as needed"

You get it right. In future versions we likely will have real RAM and SWAP limits
and VE will behave like a real std server, but as I said I still wouldn't recommend
to configure it like that cause disk I/O bandwidth which is used for swapping
is a scare resource and it's not worth swapping out something when there is global
RAM available still.

Thanks,
Kirill
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: openvz naming conventions; numeric vs symbolic
Next Topic: Trouble compiling ovz028stab039.1-combined
Goto Forum:
  


Current Time: Wed Jun 25 23:47:59 GMT 2025

Total time taken to generate the page: 0.02765 seconds