Subject: Re: [vserver] "free" command inside vserver
From: Herbert Poetzl <>
Date: Sat, 26 Jan 2008 15:34:36 +0100

On Fri, Jan 25, 2008 at 07:15:12PM +0100, Christian Affolter wrote:
> Hi
> >>Does anyone know why the free command inside the vserver does not report
> >>the
> >>actual size of the vserver? It reports the size of the machine's physical
> >>ram, not the limits of the vserver.

> >Set the VIRT_MEM flag,
> >which will show rss.hard - rss.soft as RAM, and the remainder as swap.
> >(Assuming Linux-VServer 2.1+)

> Does it actually start to use (real host) swap space as soon as the 
> rss.soft limit has been reached, 

no, that would be somewhat inefficient IMHO

> or does it only display as (virtualized) swap 
> (and the host will not swap until the whole RAM is used)?

yes, that is what is done, we plan on adding a
cpu penalty for being over the 'memory' limit at
some point, to kind-of emulate swap behaviour
for the guest (of course, optional and tuneable)

> Many thanks for clarifying this!

you're welcome!


> Have a great weekend
> Chris