Thank you, i got it. I traced the vlimit command. Valid keywords are:
(cpu, fsize, data, stack, core, rss, nproc, nofile, memlock, as, locks)
with a suffix (.soft, .hard, .min)

To set a hardlimit of 256 for the number of processes use:
echo 256 >/etc/vservers/<vserver-name>/rlimits/nproc.hard

To verify the result:

cat /proc/virtual/<xid>/limit
PROC:            1               4             256           0
VM:           1285            2914              -1           0
VML:             0               0              -1           0
RSS:           515            1779              -1           0
FILES:    29            29              -1           0
SOCK:            1               1              -1           0

best regards
Holger

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 4. Februar 2005 16:40
An: [email protected]
Betreff: Re: [Vserver] Limits


On 2005.02.04 13:20:02 +0100, [EMAIL PROTECTED] wrote:
> I run VServers on an SuSE 9.2 with Kernel 2.6.10-vs1.9.3.17 and 
> util-vserver 0.30.196
> 
> There're several flags e.g. sched_hard, hide_mount, hide_netif, 
> virt_mem, virt_uptime etc. to limit vservers. Is there any 
> documentation for all flags, i only found Thorstens Mini Howto for cpu 
> limits in this mailinglist.
> 
> For the ulimits i need some help. I found a really good documentation 
> at 
> http://www-user.tu-chemnitz.de/~ensc/util-vserver/doc/conf/configuration
> .html
> but currently i'm not able to configure ulimits.

As that page says, ulimits only apply to 2.4 kernels. For 2.6 kernels use 
rlimits instead to limit the whole context. ulimits work 'as usual' within the 
context and limit processes.

HTH
Bj�rn
_______________________________________________
Vserver mailing list
[email protected] 
http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to