Skip to contentSkip to conversation

Rlimit

DISCUSSION sej 4 participants 4 messages May 15, 2006 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

sej

author
#2 lore raw

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

Quoted 10 lines
Quoted 5 lines

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

#3 lore raw
In reply to a message not in the archive

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

Quoted 10 lines
Quoted 5 lines

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

#4 lore raw
Quoted 5 lines · sej.kernel

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

#5 lore raw
In reply to sej.kernel
Quoted 7 lines

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_.

Quoted 1 line
Quoted 1 line

man setrlimit

Jan Engelhardt