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

RE[2]: tcsh limits



Ariel Biener <ariel@fireball.tau.ac.il> wrote:

>  You cannot limit -h a resource as user.

Of course, you can - but to a _lower_ value then the currrent one. This is
exactly like with nice(1) - a user can schedule prioirity of his task to a
higher number, but once done, can't put it back.

Example: on a server, I put these lines at the beginning of 
/etc/csh.cshrc:

limit -h cputime 1800
limit cputime 1800
limit -h datasize 16384
limit datasize 16384
limit -h memoryuse 16384
limit memoryuse 16384

Now, logging as a user:

$ limit -h memoryuse
memoryuse       16384 kbytes

$ limit -h memoryuse 16385
limit: memoryuse: Can't set hard limit

But

$ limit -h memoryuse 16383

is fine. Trying to put it back:

$ limit -h memoryuse 16384
limit: memoryuse: Can't set hard limit

Regards,

Evgeny


--
   ____________________________________________________________
  / Evgeny Stambulchik  <fnevgeny@plasma-gate.weizmann.ac.il>  \
 /  Plasma Laboratory, Weizmann Institute of Science, Israel \  \
 |  Phone : (972)8-934-3610  == | == FAX   : (972)8-934-3491 |  |
 |  URL   :    http://plasma-gate.weizmann.ac.il/~fnevgeny/  |  |
 |  Finger for PGP key >=====================================+  | 
 |______________________________________________________________|