From owner-freebsd-questions Sat Jun 9 20:17:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.the-i-pa.com (mail.the-i-pa.com [151.201.71.132]) by hub.freebsd.org (Postfix) with SMTP id B53A637B401 for ; Sat, 9 Jun 2001 20:17:48 -0700 (PDT) (envelope-from Guinnessbike@mail.iowna.com) Received: (qmail 482 invoked from network); 10 Jun 2001 03:24:20 -0000 Received: from unknown (HELO ws1) (151.201.71.146) by mail.the-i-pa.com with SMTP; 10 Jun 2001 03:24:20 -0000 Message-ID: <001401c0f15d$cf2cdbd0$9247c997@ws1> From: "All-Ireland Racing/Guinness Cycling Team" To: "Walter Hop" Cc: Subject: Re: Re[4]: How to keep a process from eating >n percent CPU? Date: Sat, 9 Jun 2001 23:31:17 -0400 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 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 >> 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. It depends on what else the box is doing. xscreensaver nices everything to 20 - which basically means that the screensaver only uses processer time if NOTHING else needs it. I doubt you'd want to nice Apache that far, but you might be able to nice it a little higher, if there's not much else normally going on with that box, Apache will still get all the processor time (if nothing else is using it) but will give that up to a process with a lower nice. >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)... That's actually a better idea. That way your just forcing the shell to pre-empt whatever is slowing things down, so it would help even if Apache wasn't the problem. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message