Subject: Re: [vserver] "free" command inside vserver
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Fri, 25 Jan 2008 16:50:44 +0100 (CET)

Belinda Lawson wrote:
> Hello again,
>
> 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, http://linux-vserver.org/Capabilities_and_Flags
which will show rss.hard - rss.soft as RAM, and the remainder as swap.
(Assuming Linux-VServer 2.1+)

> How, then, can my processes inside the vserver know what the memory limit?
> What are they looking at to determine the amount of available memory?
>
> I'm a bit frustrated with this right now.  Do the maintainers of this
> software read this list?   If so, I'd be very grateful to hear from them
> on
> my issues.
>
>
> Thanks much,
> -Belinda

-- 
Daniel Hokka Zakrisson