I dont know if there is a program available to monitor this, but you can
write your own. Its not difficult at all, and you work at tivoli so I would
think you could whip it up in no time...grin.

int setrlimit(int resource, const struct rlimit *rlp);

resource parameter being in your two cases
RLIMIT_CPU         /* max amount of cpu in seconds to each process */
RLIMIT_NPROC   /* max number of simultaneous processes for uid */

also look at ulimit() and quotactl()

Nathan Sportsman
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

----- Original Message -----
From: Paul Sack <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
To: Sig-linux <[EMAIL PROTECTED]>
Sent: Saturday, April 15, 2000 7:17 PM
Subject: timeslice quotas


> Is there anyway to limit users to say, 90% of cpu time and 90%
> of the maximum number of processes or something?
> Basically, last night I ran 'perl -e 'fork while (1)'' to see if linux
> would gracefully deal with it and it did not. (I couldn't kill -9 b/c
> the max number of processes was reached.) If this doesn't exist, perhaps
> this is a project siglinux could do.
>
> --
> Nothing is illegal if one hundred businessmen decide to do it.
> -- Andrew Young
>
> --------------------------------------------------------------------------
-
> Send administrative requests to [EMAIL PROTECTED]

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to