From owner-freebsd-stable@FreeBSD.ORG Thu May 13 16:39:03 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC882106566C for ; Thu, 13 May 2010 16:39:03 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail1.es.net [IPv6:2001:400:201:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9F0AD8FC1A for ; Thu, 13 May 2010 16:39:03 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id o4DGd1AQ020821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 13 May 2010 09:39:02 -0700 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id C71E71CC24; Thu, 13 May 2010 09:39:01 -0700 (PDT) To: perryh@pluto.rain.com In-reply-to: Your message of "Thu, 13 May 2010 00:09:05 PDT." <4beba591.QTM0CCHZfkh0AKNv%perryh@pluto.rain.com> Date: Thu, 13 May 2010 09:39:01 -0700 From: "Kevin Oberman" Message-Id: <20100513163901.C71E71CC24@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-05-13_02:2010-02-06, 2010-05-13, 2010-05-13 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005130107 Cc: freebsd-stable@freebsd.org Subject: Re: Kernel panic when unpluggin AC adaptor X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 16:39:04 -0000 > Date: Thu, 13 May 2010 00:09:05 -0700 > From: perryh@pluto.rain.com > > "Kevin Oberman" wrote: > > > ... TCC and throttling ... > > they were intended for thermal management, not power management. > > Shouldn't the two be equivalent? Heat generated is directly related > to power consumed. They are roughly equivalent. TCC performs slightly better as it is internal to the CPU and can run automatically with no OS involvement. Throttling requires the OS set the number of cycles to skip on pins of the CPU. My testing has shown only about a 5% difference on the worst case in a P4-Mobile CPU. FreeBSD will use TCC when it is available and throttling when it is not. It never uses both. (It did for a short while and it was not pretty!) Heat generated is almost directly proportional to power consumed. Unfortunately, when you use TCC or throttling the performance is also directly proportional to the power consumed. the result is that, to perform any operation, you end up using almost the same power. Testing has shown that it is really a net loss to do this. For an excellent review of the situation, please read Alexandar Motin's paper on FreeBSD power tuning at: http://wiki.freebsd.org/TuningPowerConsumption He performed the same testing I had performed about two years prior and went well beyond what I had done. More importantly, he wrote up an excellent document which describes how to set up a system for best power/performance and explains why. I think is is a 'must read' for anyone who wants to run a power efficient system. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751