From owner-freebsd-questions Sat Jun 9 17:33:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtpe.casema.net (smtpe.casema.net [195.96.96.172]) by hub.freebsd.org (Postfix) with SMTP id 9FE0A37B403 for ; Sat, 9 Jun 2001 17:33:45 -0700 (PDT) (envelope-from walter@binity.com) Received: (qmail 27635 invoked from network); 10 Jun 2001 00:33:42 -0000 Received: from unknown (HELO slash.b118.binity.net) (212.64.76.130) by smtpe.casema.net with SMTP; 10 Jun 2001 00:33:42 -0000 Received: from 172.18.3.10 (silver.b118.binity.net [172.18.3.10]) by slash.b118.binity.net (Postfix) with ESMTP id 3DF31142; Sun, 10 Jun 2001 02:33:26 +0200 (CEST) Date: Sun, 10 Jun 2001 02:33:45 +0200 From: Walter Hop X-Mailer: The Bat! (v1.52f) Educational Organization: Binity X-Priority: 3 (Normal) Message-ID: <1148490305.20010610023345@binity.com> To: "Bill Moran" Cc: "FreeBSD Questions" Subject: Re[4]: How to keep a process from eating >n percent CPU? In-Reply-To: <000201c0f14d$c089b540$ad9b5d3f@y0k8x9> References: <200106091245.AA1833238794@stmail.pace.edu> <14122019722.20010609191234@binity.com> <000201c0f14d$c089b540$ad9b5d3f@y0k8x9> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [in reply to wmoran@iowna.com, 09-06-2001] >> As a matter of fact I am now using nice(1), I only wished there would be >> a means of controlling this in a more "fine-grained" method. For one, I >> would love it if I could impose a limit of 90% CPU on Apache, so that if >> for example a runaway CGI script started doing weird things, admins >> would still have a (greater) possibility to be able to log on the shell >> and fix stuff in a proper fashion (i.e. not waiting 30 seconds for the >> output of `ps' to appear). > > That's pretty odd. What are you nicing it to? Only 1 lower for now :) I'm a little afraid of downgrading Apache's performance while giving priority to non-interactive processes. At second thought, it might be a nice idea to maybe give sshd2 a slight negative nice value at startup to keep it responsive at hard times (and giving users a login shell which renices it to normal)... -- Walter Hop | +31 6 24290808 | Finger for public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message