From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 28 02:24:04 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEF3A16A417 for ; Sat, 28 Jul 2007 02:24:04 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 6888613C45A for ; Sat, 28 Jul 2007 02:24:04 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:Ecaa6NvitOZ8+cpTe7Huyx4np3n0yF/odM/BdOnAGEv6jlEefsXA3jaTHgtj/o1L@kasuga.mahoroba.org [IPv6:2001:2f0:104:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id l6S2NtmS013634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Jul 2007 11:23:56 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sat, 28 Jul 2007 11:23:55 +0900 Message-ID: From: Hajimu UMEMOTO To: Pietro Cerutti In-Reply-To: <46AA0491.5000203@gahr.ch> References: <46AA0491.5000203@gahr.ch> User-Agent: xcite1.57> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.1 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sat, 28 Jul 2007 11:23:56 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, DKIM_POLICY_SIGNSOME,DK_POLICY_SIGNSOME autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on ameno.mahoroba.org Cc: freebsd-hackers@freebsd.org Subject: Re: [patch] enhance powerd(8) to handle max temperature X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2007 02:24:04 -0000 Hi, >>>>> On Fri, 27 Jul 2007 16:43:29 +0200 >>>>> Pietro Cerutti said: gahr> Hi list, gahr> here is a patch to allow powerd(8) accept a "-t tval" option to set a gahr> temperature limit above which performance should be decreased. gahr> It's a first draft, and I identified the following problems: gahr> - the CPU temperature takes some time to decrease, so powerd keeps gahr> decreasing the CPU frequency until the temperature is below the limit. gahr> The effect is a "increase to maximum, decrease to minimum, increase to gahr> maximum, decrease to minimum, ...." which may not be desirable. gahr> - the temperature is retrieved by the hw.acpi.thermal.tz0.temperature gahr> sysctl MIB. Support for other methods would be desirable. gahr> The patches to powerd.c and powerd.8 are here: gahr> http://www.gahr.ch/FreeBSD/patches/powerd.c.diff gahr> http://www.gahr.ch/FreeBSD/patches/powerd.8.diff gahr> Any comment is welcome! We have a passive cooling mechanism already in our kernel. It runs according to an ACPI specification. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/