From owner-freebsd-questions Sat Nov 25 2:52:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from beethoven.singa.pore.net (beethoven.singa.pore.net [202.156.1.28]) by hub.freebsd.org (Postfix) with ESMTP id CA82B37B4CF for ; Sat, 25 Nov 2000 02:52:55 -0800 (PST) Received: from sleipnir (mcns46.docsis24.singa.pore.net [202.156.24.46]) by beethoven.singa.pore.net (8.9.3/8.9.3) with SMTP id SAA06525; Sat, 25 Nov 2000 18:53:28 +0800 (SST) Message-ID: <002501c056cd$dd9fdda0$2e189cca@sleipnir> From: "James Lim" To: "Richard B. Mahoney" , References: <20001122180523.U18037@fw.wintelcom.net> <20001125225534.A8248@student.canterbury.ac.nz> Subject: Re: Restricting a users CPU usage -- Possible? Date: Sat, 25 Nov 2000 18:52:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, Ulimit actually worked perfectly for me. Give it a shot :) Hope this helps, James Lim ----- Original Message ----- From: "Richard B. Mahoney" To: Sent: Saturday, November 25, 2000 5:55 PM Subject: Re: Restricting a users CPU usage -- Possible? > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message