Subject: Re: [vserver] default ulimits
From: Corin Langosch <corinl@gmx.de>
Date: Wed, 23 Sep 2009 09:31:57 +0200
Wed, 23 Sep 2009 09:31:57 +0200
On 23.09.2009 00:58, Herbert Poetzl wrote:
> On Wed, Sep 23, 2009 at 12:05:51AM +0200, Corin Langosch wrote:
>   
>> I'd like to change/increase the default ulimits for a vserver.
>>     
>> According to the docs I created a file like this:
>>     
>> root@r15717:/# cat /etc/vservers/vs15780/ulimits/nofile
>> 8192
>>     
> what kernel/patch and util-vserver version?
>   
Standard debian AMD64, Versions:
Kernel: 2.6.26-2-vserver-amd64
VS-API: 0x00020303
util-vserver: 0.30.216-pre2772; Dec 13 2008, 04:56:19

>> I restarted the vserver but ulimit -n still shows 1024 and I can't
>> increase it with ulimit -n 8192:
>>     
> make sure that your guest startup or logon doesn't
> set them (/etc/security/limits.conf comes to my mind)
>   
This file exists on the host and guest, but everything in it is 
commented out (default file).

>> What's wrong? :)
>>     
> probably nothing :)
>   

So what can I do to make it work? :)

Corin



On 23.09.2009 00:58, Herbert Poetzl wrote:
On Wed, Sep 23, 2009 at 12:05:51AM +0200, Corin Langosch wrote:
  
I'd like to change/increase the default ulimits for a vserver.
    
According to the docs I created a file like this:
    
root@r15717:/# cat /etc/vservers/vs15780/ulimits/nofile
8192
    
what kernel/patch and util-vserver version?
  
Standard debian AMD64, Versions:
Kernel: 2.6.26-2-vserver-amd64
VS-API: 0x00020303
util-vserver: 0.30.216-pre2772; Dec 13 2008, 04:56:19

I restarted the vserver but ulimit -n still shows 1024 and I can't
increase it with ulimit -n 8192:
    
make sure that your guest startup or logon doesn't
set them (/etc/security/limits.conf comes to my mind)
  
This file exists on the host and guest, but everything in it is commented out (default file).

What's wrong? :)
    
probably nothing :)
  

So what can I do to make it work? :)

Corin