On Mon, Jan 21, 2002, Behdad Esfahbod wrote about "Re: [FU]kernel mem use -> user 
cpu/mem/proc. stack etc. usage limitations":
> It seems that you are not right Nadav:
> Have a look at /etc/security/limits.conf on a RedHat machine.

Regarding per-user limits of open files and number of processes: it appears
that you're right and setrlimit(2) and ulimit(1) *do* support them. Try
"ulimit -u 5" and you'll not be able to run anything else in that window ;)
You'll need to have the same limit applied to all the user's processes, which
is where limits.conf might indeed come in handy.
I'm guessing that what /etc/security/limits.conf does is simply to set the
"ulimit" (see setrlimit(2)) on log-in time.

For memory limits, the current ulimit interface is rather silly because
memory use is counted per-process, not per user.
I'm not aware of any system call or any other kernel interface to say that
"user 704 should be limited to a total of 200MB of memory", or
"user 313 should be limited to a 10% of the CPU time", which is what I
thought the original poster was after.


-- 
Nadav Har'El                        |       Monday, Jan 21 2002, 8 Shevat 5762
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |The road to good intentions is paved with
http://nadav.harel.org.il           |hell.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to