From owner-freebsd-questions@FreeBSD.ORG Sun Nov 6 10:25:50 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 D658216A41F for ; Sun, 6 Nov 2005 10:25:50 +0000 (GMT) (envelope-from mihai@duras.ro) Received: from mail.duras.ro (mail.duras.ro [86.105.56.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3064443D45 for ; Sun, 6 Nov 2005 10:25:45 +0000 (GMT) (envelope-from mihai@duras.ro) Received: from localhost (localhost [127.0.0.1]) by mail.duras.ro (Postfix) with ESMTP id DDC99417F6; Sun, 6 Nov 2005 12:25:43 +0200 (EET) Received: from mail.duras.ro ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03349-10; Sun, 6 Nov 2005 12:25:16 +0200 (EET) Received: from [127.0.0.1] (ma.plimb.cu.barca.prin.padure.ro [86.105.56.194]) by mail.duras.ro (Postfix) with ESMTP id 6793136898; Sun, 6 Nov 2005 12:25:07 +0200 (EET) Message-ID: <436DD9C4.3080605@duras.ro> Date: Sun, 06 Nov 2005 12:24:04 +0200 From: Mihai Tanasescu User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Clutton References: <436DAE5E.20507@duras.ro> <57416b300511060217m161c95b2nb630cc760c1272db@mail.gmail.com> In-Reply-To: <57416b300511060217m161c95b2nb630cc760c1272db@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (RedHat) at 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:25:50 -0000 Sorry for not providing more clues. I'm running a Counter-Strike server under linux binary emulation on a : Intel(R) Pentium(R) 4 CPU 1.60GHz" When there are many players on the server the cpu load looks like this (seen from top): PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 28605 counter 131 0 214M 209M RUN 369:13 86.43% 86.43% hlds_i686 After a while the hlds server just dies. I see no errors in any logs. Afterwards everything is fine, I just restart the counter-strike binary and the cycle repeats itself after a while. The program was installed using the sources provided by Valve and not from the ports directory. Peter Clutton wrote: >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. > >