From owner-freebsd-current@FreeBSD.ORG Tue Aug 17 00:20:16 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 135AF16A4CE; Tue, 17 Aug 2004 00:20:15 +0000 (GMT) Received: from coruscant.rfc1149.org (coruscant.rfc1149.org [217.160.130.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FE4F43D45; Tue, 17 Aug 2004 00:20:15 +0000 (GMT) (envelope-from arne@rfc2549.org) Received: by coruscant.rfc1149.org (Postfix, from userid 110) id 3C7E43F5C; Tue, 17 Aug 2004 02:20:14 +0200 (CEST) Received: from kamino.rfc1149.org (dsl-213-023-189-151.arcor-ip.net [213.23.189.151]) by coruscant.rfc1149.org (Postfix) with ESMTP id E787C3E98; Tue, 17 Aug 2004 02:20:11 +0200 (CEST) Received: by kamino.rfc1149.org (Postfix, from userid 1001) id 838D54088; Tue, 17 Aug 2004 02:19:57 +0200 (CEST) To: Colin Percival In-Reply-To: <6.1.0.6.1.20040816074348.03f99338@popserver.sfu.ca> (Colin Percival's message of "Mon, 16 Aug 2004 08:06:30 -0700") References: <6.1.0.6.1.20040816074348.03f99338@popserver.sfu.ca> From: Arne Schwabe Date: Tue, 17 Aug 2004 02:19:57 +0200 Message-ID: <86zn4uwr82.fsf@kamino.rfc1149.org> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on coruscant.rfc1149.org X-Spam-Status: No, hits=-4.8 required=5.0 tests=BAYES_00,RCVD_IN_SORBS autolearn=no version=2.60 X-Spam-Level: cc: freebsd-current@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re: Enhanced SpeedStep driver available X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 17 Aug 2004 00:20:16 -0000 Colin Percival writes: > Thanks to everyone who has been sending me data about their > processors (and in particular, the 90nm versions), I now have > a first draft of a Enhanced SpeedStep driver available. For > people with the appropriate processors (Pentium M only), this > makes it possible to adjust the cpu frequency via a new sysctl > (hw.est_curfreq), and have the cpu voltage adjusted at the > same time. > I've also put together a very simple control daemon which > reads kern.cp_time every second and adjusts the cpu frequency > based on the fraction of cpu time which is idle. This increases > my laptop's battery life by around 40%. Works for me :)) a simple speedtest confirms that: openssl speed sha1 with 600 mhz: The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes sha1 2799.31k 8809.00k 21315.56k 33035.59k 39001.77k and then setting it to 1600 mhz: The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes sha1 7490.03k 23513.16k 56742.98k 87939.26k 104086.94k The numbers are about 2,7 times higher and 600 * 2,7 ~= 1600 :) One little bug: sudo sysctl hw.est_curfreq=1600 hw.est_curfreq: 600 -> 600 [2:14]arne@kamino:~/tmp/estctrl% sudo sysctl hw.est_curfreq=600 hw.est_curfreq: 1600 -> 600 [2:14]arne@kamino:~/tmp/estctrl% sudo sysctl hw.est_curfreq=1600 hw.est_curfreq: 600 -> 600 [2:14]arne@kamino:~/tmp/estctrl% sudo sysctl hw.est_curfreq=1600 hw.est_curfreq: 1600 -> 1600 For some reason, the message when I set cpu freq higher does not work Arne