Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2000 22:55:34 +1300
From:      "Richard B. Mahoney" <rbm49@student.canterbury.ac.nz>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Restricting a users CPU usage -- Possible?
Message-ID:  <20001125225534.A8248@student.canterbury.ac.nz>
In-Reply-To: <"from lnb"@FreeBSDsystems.COM>
References:  <20001122180523.U18037@fw.wintelcom.net> <Pine.BSF.4.21.0011231439370.24678-100000@satan.freebsdsystems.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Dear Readers,

To those of you who responded to my request for help I'd like to give
my thanks. Within half an hour I'd received at least four replies. I'm
sure this is better than one could expect from a commercial helpdesk.

I've implemented roughly what is given below. This has succeeded in
keeping a tight rein on emacs. Even at its worst, it now doesn't seem
to be able to climb much past 30Meg. And, once its been at this level
for a while, it isn't able to absorb much more than about 65% CPU. The
upshot is that I'm left plenty of room to move, other programmes still
respond, and I can easily kill emacs without having to switch over to
root.

Many regards,

 Richard Mahoney

On Thu, Nov 23, 2000 at 02:43:12PM -0500, Lanny Baron wrote:
> Hi,
> Here is how I manage cpu usage for shell users on one of my FreeBSD
> Freedom servers:
> 
> shell:\
>         :cputime=30M:\
>         :datasize-cur=22M:\
>         :stacksize-cur=8M:\
>         :memorylocked-cur=10M:\
>         :memoryuse-cur=30M:\
>         :filesize=infinity:\
>         :coredumpsize=infinity:\
>         :maxproc-cur=6:\
>         :openfiles-cur=64:\
>         :priority=10:\
>         :requirehome@:\
>         :umask=022:\
>         :tc=default:
> Which is in /etc/login.conf
> 
> What you need to do, is make a class inside login.conf and put in there,
> the values you want. 
> Remember to do the following if you change your /etc/login.conf file:
> 
> cap_mkdb /etc/login.conf
> 
> --Lanny
> 

-- 
======================================================================
Richard Mahoney            /^^^\             Telephone: +64-3-351-5831
78 Jeffreys Rd           (| , , |)         
Christchurch              |  *  |    
NEW ZEALAND                \_-_/     mailto:rbm49@csc.canterbury.ac.nz
----------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20001125225534.A8248>