From owner-freebsd-current@FreeBSD.ORG Tue Jan 15 07:50:24 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00ADC16A420 for ; Tue, 15 Jan 2008 07:50:24 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id AA9EB13C442 for ; Tue, 15 Jan 2008 07:50:23 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 9B5B41B10EF8; Tue, 15 Jan 2008 08:50:21 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on blah.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_51 autolearn=no version=3.2.3 Received: from hater.haters.org (unknown [192.168.25.10]) by blah.sun-fish.com (Postfix) with ESMTP id 250881B10EFE; Tue, 15 Jan 2008 08:50:19 +0100 (CET) Message-ID: <478C65BA.1090604@moneybookers.com> Date: Tue, 15 Jan 2008 09:50:18 +0200 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.9 (X11/20071120) MIME-Version: 1.0 To: Nate Lawson References: <200801110909.m0B99tlr097501@lurza.secnetix.de> <47873840.7050401@moneybookers.com> <47894263.6010706@root.org> <478965CC.1010609@moneybookers.com> <47896CCA.9020309@root.org> <478BBB9C.9090809@root.org> <478BE637.6090307@moneybookers.com> <478C00DB.2080008@root.org> In-Reply-To: <478C00DB.2080008@root.org> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91.2/5483/Mon Jan 14 15:45:01 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-current@FreeBSD.ORG Subject: Re: powerd adaptive mode latching X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 07:50:24 -0000 Hi Nate, Nate Lawson wrote: > Stefan Lambrev wrote: > >> It works :) >> >> Nate Lawson wrote: >> >>> Nate Lawson wrote: >>> Please test the patch. I need at least one "it works" from someone who >>> has duplicated cpufreq states to commit it to -current. Be sure to >>> first remove any acpi_perf patch that you previously applied. Thanks. >>> >>> >>> >> I applied your patch on clean releng_7_0 from today an it works - here >> is the output from sysctl: >> >> dev.cpu.0.freq_levels: 2201/35000 1925/30625 1650/26250 1600/23000 >> 1400/20125 1200/16000 1050/14000 900/12000 800/14000 700/12250 600/10500 >> > > Thanks for testing. Can you be sure the 2201 Mhz setting works > properly. Perhaps you can set dev.cpu.0.freq=2201 then 1600 and be sure > it has approximately correct CPU performance. One test I use is: > > dd if=/dev/zero bs=128k count=N | sha256 > > where "N" is some number that takes about 10 seconds to complete. > > dev.cpu.0.freq: 2201 dd if=/dev/zero bs=128k count=10000 | sha256 - takes 16.453 sec at dev.cpu.0.freq: 1925 it takes 19.020 sec at dev.cpu.0.freq: 1600 - 22.629 sec Everything works as expected. :) -- Best Wishes, Stefan Lambrev ICQ# 24134177