On Mon, Jan 21, 2002, Max Kovgan wrote about "[FU]kernel mem use -> user cpu/mem/proc. 
stack etc. usage limitations":
> hello!
> can somebody also point me to answers to this subject?
> i mean how do i exactly limit users in:
> 1) % of CPU usage
> 2) in memory usage,
> 3) in number of processes the user can create [it must be something
> with process stack size]
> 4) number of open files

Maybe someone will correct me, but I don't think that you can limit any of
these things per-user in Linux (I seem to remember Alan Cox and Linus having
an argument on whether such a feature is needed or not).
You can, however, have per-process limits, and global limits.

see the "ulimit" command (based on the setrlimit(2) system call).
See also the /proc/sys/fs/file-* files.
See nice(2) (and nice(1), renice(1)) on how to limit CPU usage of processes
(again, processes and not whole users).

-- 
Nadav Har'El                        |       Monday, Jan 21 2002, 8 Shevat 5762
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |A conclusion is simply the place where
http://nadav.harel.org.il           |you got tired of thinking.

=================================================================
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