Re: [vserver] dynamic memory limits for vserver-guests?

From: ADNET Ghislain <gadnet_at_aqueos.com>
Date: Wed 28 Oct 2009 - 22:42:53 GMT
Message-ID: <4AE8C8ED.8050301@aqueos.com>

Jarry a écrit :
> Hi,
>
> I have set up memory limits for all my vserver-guests with
> rlimits/rss.soft and rss.hard. Now sometimes I hit on memory
> limits, e.g. when compilling gcc (which I do quite frequently
> because all my guests are gentoo).
>
> But I can not increase memory limits for all vserver-guests,
> because when counted together, it would be more than physical
> memory + swap of my vserver-host.
>
> So my question is:
> Is it possible to set those limits dynamically? What I mean
> is something similar as for cpu-time: to grant a guest certain
> memory, and in addition, some common "memory-pool" from which
> any guest could grab memory, if needed. And if "memory-pool"
> is empty, a guest does not get any extra memory.
>
> Jarry
>
hi jarry,

from: http://linux-vserver.org/util-vserver:Cheatsheet

it seems that

vlimit : to change the limits of a live guest (cpu, fsize, data, stack,
core, rss, nproc,nofile, memlock, as, locks, msgqueue, nsock, openfd,
anon, shmem, semary,nsems, and dentry).

should be the tools for that.

-- 
Cordialement,
Ghislain

Received on Wed Oct 28 22:43:12 2009
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 28 Oct 2009 - 22:43:16 GMT by hypermail 2.1.8