2006-05-15 15:09:48

by sej.kernel

[permalink] [raw]
Subject: Rlimit

Hello,
How can I set Rlimit for 1 or more programs started in user mode (not
suser) ?
Is there a config file or a little source that can do this ?
Regards,
sej


2006-05-15 15:13:51

by Jan Engelhardt

[permalink] [raw]
Subject: Re: Rlimit

>
> Hello,
> How can I set Rlimit for 1 or more programs started in user mode (not suser) ?
> Is there a config file or a little source that can do this ?
> Regards,
> sej

man setrlimit


Jan Engelhardt
--

2006-05-15 15:49:48

by sej

[permalink] [raw]
Subject: Re: Rlimit

Of course !!
But if you want to increase mlock size you can't do it !
setrlimit can only decrease process limits !
I repeat my question : How to set mlock process for non-root process ?
sej



>> Hello,
>> How can I set Rlimit for 1 or more programs started in user mode (not suser) ?
>> Is there a config file or a little source that can do this ?
>> Regards,
>> sej
>
> man setrlimit
>
>
> Jan Engelhardt

2006-05-15 15:57:35

by sej.kernel

[permalink] [raw]
Subject: Re: Rlimit

Of course !!
But if you want to increase mlock size you can't do it !
setrlimit can only decrease process limits !
I repeat my question : How to set mlock process for non-root process ?
sej



>> Hello,
>> How can I set Rlimit for 1 or more programs started in user mode (not suser) ?
>> Is there a config file or a little source that can do this ?
>> Regards,
>> sej
>
> man setrlimit
>
>
> Jan Engelhardt


2006-05-15 16:24:10

by Lee Revell

[permalink] [raw]
Subject: Re: Rlimit

On Mon, 2006-05-15 at 17:57 +0200, sej.kernel wrote:
> Of course !!
> But if you want to increase mlock size you can't do it !
> setrlimit can only decrease process limits !
> I repeat my question : How to set mlock process for non-root process ?
> sej

Add to /etc/security/limits.conf:

* memlock hard unlimited

or whatever

Lee

2006-05-15 19:00:32

by Jan Engelhardt

[permalink] [raw]
Subject: Re: Rlimit

>
> Of course !!
> But if you want to increase mlock size you can't do it !
> setrlimit can only decrease process limits !
> I repeat my question : How to set mlock process for non-root process ?
> sej
>
By running setrlimit from a root process. Even the
limits from /etc/secuirty/limits.conf must be set _somehow_.

>> man setrlimit


Jan Engelhardt
--