Re: [vserver] Memory limits not enforced

From: Mathieu Goessens <gebura_at_poolp.org>
Date: Sat 27 Aug 2011 - 18:03:00 BST
Message-ID: <4E592344.2000604@poolp.org>

On 27/08/2011 16:33, Yanek wrote:
> Hi,
>
> I've built a new vserver on a host that already has 5 guests running.
> I want to enforce memory limits on the new guest, so I just copied
> /etc/vservers/someguest/rlimits to /etc/vservers/newguest.
> rlimits contains rss.hard and rss.soft with respective values of 64000
> and 32000.
> For some reason, the limits are not enforced at all and running top
> inside the new guest still displays all the memory of the host.
> The limits are correctly enforced on all of the 5 other vservers.
>
> Any clue on what I am missing?
>
> Thanks by advance :)

Hi,

Did you add VIRT_MEM to the flags ?
Did you restart the guest ?
Did you try to apply thoses limits with vlimit ?

Regards,

-- 
Mathieu Goessens
IT consultant.
gebura@poolp.org
+ 33 6 07 91 54 87
http://gebura.eu.org
Received on Sat Aug 27 18:03:17 2011
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 27 Aug 2011 - 18:03:17 BST by hypermail 2.1.8