Re: [Vserver] multiple interfaces and subnets/limit resource question(rlimits)

From: Corey Wright <undefined_at_pobox.com>
Date: Fri 03 Feb 2006 - 06:30:59 GMT
Message-Id: <20060203003059.6d91c070.undefined@pobox.com>

On Thu, 02 Feb 2006 16:08:40 +0100
"J.Paechnatz" <jpaechnatz@bfe-systemhaus.de> wrote:

> I played with the rlimits, rss/as are working fine. but how could I
> limit cpu usage, for example 25% of the hosts cpu capacity? the cpu
> directive is for cpu time in seconds....how much is realistic!? and how
> it's measured?

- scheduler parameters (http://linux-vserver.org/Scheduler+Parameters)
- flags (http://linux-vserver.org/Caps+and+Flags)
- mini-howto (http://list.linux-vserver.org/archive/vserver/msg08478.html)

scheduler parameter hints

* echo sched_prio >>/etc/vservers/<vserver>/flags
* editor /etc/vservers/<vserver>/schedule
* format:
 o token fill rate (tokens/interval)
 o token fill interval (jiffies)
 o initial tokens
 o minimum tokens (timeout length)
 o maximum tokens (burst length)
 o don't care
* cat /proc/virtual/$(cat /etc/vservers/<vserver>/run)/sched

corey

-- 
undefined@pobox.com
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Feb 3 06:45:28 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 03 Feb 2006 - 06:45:49 GMT by hypermail 2.1.8