[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: limiting per user CPU time



-----BEGIN PGP SIGNED MESSAGE-----

On Wed, 28 Apr 1999, Pere Camps wrote:

> Hi!
> 
> 	Is there any way to do that? I've read ulimit(1), but that only
> applies to bash(1) and it's sons (and it can also be changed). Another
> option would be automatically nicing proceses that use more CPU time than
> their quota.

Take a look at getrlimit, setrlimit and getrusage(2), I think the best way
to do this is to make a daemon wich monitor process and applies the niceness
of process...

Maybe already it does exsist something similar? (check it at freshmeat.net)

I hope this helps

			Ulisses

                Debian/GNU Linux: a dream come true
- -----------------------------------------------------------------------------
"Computers are useless. They can only give answers."            Pablo Picasso

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: latin1
Comment: PGP public key available at http://www.rediris.es/cert/keyserver

iQB1AwUBNyawSg/N+5+NQ63pAQFnFwL/XLCsSUQmki0V0p6OZG3JmxCCFAgd7XxM
EI0sXqo+TzG/HBjK39m7aut8Cd7mKwF2ioygmhGiN13h7UgfwBMg9zxLmfK1njX7
/llb8z/Knon5Aq4xdDLvDBalD+uGy/Y+
=ZRcp
-----END PGP SIGNATURE-----


Reply to: