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

Re: RE[2]: tcsh limits



On Tue, 25 May 1999, Evgeny Stambulchik wrote:


You're correct.


--Ariel

> 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
> highernumber, 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 >=====================================+  | 
>  |______________________________________________________________|
> 

   +---------------------------------------------------------------+
   | Ariel Biener                                                  |
   | e-mail: ariel@post.tau.ac.il           Work phone: 03-6406086 |
   | fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
   +---------------------------------------------------------------+