From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 10:17:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1638416A41F for ; Sun, 6 Nov 2005 10:17:06 +0000 (GMT) (envelope-from peterclutton@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DFD243D45 for ; Sun, 6 Nov 2005 10:17:05 +0000 (GMT) (envelope-from peterclutton@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so188795wxc for ; Sun, 06 Nov 2005 02:17:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RacAsF+uYQexQ8k5R7EiCNAGT0JDV/o+YNYy/KELVvRK93uGS3EZXvr+QX3Mc1D2o/FFySzNmE5k0J4hu5Ak0Syb5ld0gGT2KPw0GQmuqZUtvSIOWo+Vv8BWy5SNXycUz/jLkKVkJMXDIfVIZq9UXqPlz6hnhTdHiSlmYf6w5Xs= Received: by 10.70.117.16 with SMTP id p16mr3814145wxc; Sun, 06 Nov 2005 02:17:05 -0800 (PST) Received: by 10.70.91.17 with HTTP; Sun, 6 Nov 2005 02:17:05 -0800 (PST) Message-ID: <57416b300511060217m161c95b2nb630cc760c1272db@mail.gmail.com> Date: Sun, 6 Nov 2005 21:17:05 +1100 From: Peter Clutton To: Mihai Tanasescu In-Reply-To: <436DAE5E.20507@duras.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <436DAE5E.20507@duras.ro> Cc: freebsd-questions@freebsd.org Subject: Re: Kernel option question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 10:17:06 -0000 On 11/6/05, Mihai Tanasescu wrote: > I'm having problems with a piece of software that I'm running. > That software causes quite a high load on my machine and gets > automatically killed after some time. > > How can I configure FreeBSD not to kill the high cpu consuming tasks > taking into account the risk of my machine getting to be unavailable. Well first of all what is the program, how did you install it etc. That will help for getting an answer. The reason being FreeBSD doesn't kill a program just for using alot of CPU, i suppose unless it is using up everything and making a nuisance of itself, which the program shouldn't really be reaching that point, so i don't think my next paragraph is the reason, but something to with the program. However the freebsd sheduler does lower the priority for programs that use up their entire slice of CPU time, rather than using some up, and then sleep - ing themselves , or blocking, waiting for something. Therefore a program that is continuous, gets lower and lower priority, while something that has to wait for, say, input, line an interactive program (eg text-editor) gets higher and higher priority (until it enters a while bunch of characters, at which stage it's priority lowers and the process start over again) If you really believe that it's being stopped because of this, look into the nice command (man page) Otherwise, let everybody know what the program is. Also, is it writing any error files? Check your logs, and post any output. Just my thoughts (could be wrong) hope you get some more answers.