From owner-freebsd-questions@FreeBSD.ORG Thu Sep 15 23:52:44 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 5203516A41F for ; Thu, 15 Sep 2005 23:52:44 +0000 (GMT) (envelope-from atissita@btv.lv) Received: from mail.4nets.lv (126-4.zlt1.4nets.lv [217.199.126.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3A3D43D46 for ; Thu, 15 Sep 2005 23:52:43 +0000 (GMT) (envelope-from atissita@btv.lv) Received: from localhost (4nets.lv [127.0.0.1]) by mail.4nets.lv (Postfix) with ESMTP id CDC26B3C078 for ; Fri, 16 Sep 2005 02:49:33 +0300 (EEST) Received: from mail.4nets.lv ([127.0.0.1]) by localhost (mail.4nets.lv [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04846-06 for ; Fri, 16 Sep 2005 02:49:33 +0300 (EEST) Received: from plausha.net (unknown [217.199.123.36]) by mail.4nets.lv (Postfix) with SMTP id 026E3B3C077 for ; Fri, 16 Sep 2005 02:49:33 +0300 (EEST) Date: Fri, 16 Sep 2005 02:52:44 +0300 From: Atis To: freebsd-questions@freebsd.org Message-Id: <20050916025244.7e043e97.atissita@btv.lv> In-Reply-To: <94335D73-6A4C-4D54-A766-CE0B451CF2C2@mac.com> References: <20050915183641.6cd744a2.atissita@btv.lv> <94335D73-6A4C-4D54-A766-CE0B451CF2C2@mac.com> X-Mailer: Sylpheed version 2.0.0beta5 (GTK+ 2.6.9; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at 4nets.lv Subject: Re: keeping CPU usage low 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: Thu, 15 Sep 2005 23:52:44 -0000 On Thu, 15 Sep 2005 12:11:59 -0400 Charles Swiger wrote: > On Sep 15, 2005, at 11:36 AM, Atis wrote: > > Is there a way to make the kernel HALT the CPU regularly even > > when it has got runnable processes? Sort of like increasing the idle > > thread priority? > > > > The problem is with one my computers which has a buggy CPU. No > > matter how many or how powerful fans I install, when there's > > a CPU usage of 100% for over ~5 minutes it just overheats > > and crashes the system. > > If your system hardware supports ACPI power management, you might be > able to use the powerd/cpufreq stuff to throttle your CPU to a lower > speed. You might also try underclocking the CPU in your BIOS and/or > or set it to a lower clock divider depending on the details of what > your hardware supports. > Yes, thank you, the powerd/cpufreq thing does what I need. I can set the cpu frequency via sysctl. Well, it's not entirely perfect since on this machine it allows only two frequencies: dev.cpu.0.freq_levels: 1739/-1 869/-1 A more software-related solution with the kernel halting execution would be somewhat cooler, but then again, I probably don't need it :) Atis