Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2000 22:55:34 +1300
From:      "Richard B. Mahoney" <>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Restricting a users CPU usage -- Possible?
Message-ID:  <>
In-Reply-To: <"from lnb"@FreeBSDsystems.COM>
References:  <> <>

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

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                \_-_/

To Unsubscribe: send mail to
with "unsubscribe freebsd-questions" in the body of the message

Want to link to this message? Use this URL: <>