From owner-freebsd-mobile@FreeBSD.ORG Mon Aug 30 13:22:21 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16FC616A4CE; Mon, 30 Aug 2004 13:22:21 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id A149643D5D; Mon, 30 Aug 2004 13:22:20 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1C1m70-0000U6-V8; Mon, 30 Aug 2004 17:22:19 +0400 From: Vladimir Grebenschikov To: Colin Percival In-Reply-To: <6.1.0.6.1.20040816074348.03f99338@popserver.sfu.ca> References: <6.1.0.6.1.20040816074348.03f99338@popserver.sfu.ca> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Mon, 30 Aug 2004 17:22:18 +0400 Message-Id: <1093872138.1503.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 1.5.93FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-current@freebsd.org cc: freebsd-mobile Subject: Re: Enhanced SpeedStep driver available X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 13:22:21 -0000 On Mon, 2004-08-16 at 08:06 -0700, Colin Percival wrote: > 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%. > All the code is online at > http://www.daemonology.net/freebsd-est/ > Assuming I don't hear any major bug reports in the next few > days, I'll package these into ports and hopefully get them into > the ports tree in time for 5.3-RELEASE. Amazing, only issue, flood of speed changing messages in dmesg, please add: % cat /usr/ports/sysutils/est/files/patch-est.c-no-flood --- est.c.orig Mon Aug 30 16:53:43 2004 +++ est.c Mon Aug 30 16:54:38 2004 @@ -505,8 +505,9 @@ if (f->mhz == 0) return (EOPNOTSUPP); - printf("Changing CPU frequency from %d MHz to %d MHz\n", - mhz, mhz_wanted); + if (bootverbose) + printf("Changing CPU frequency from %d MHz to %d MHz\n", + mhz, mhz_wanted); msr = rdmsr(MSR_PERF_CTL); msr = (msr & ~(uint64_t)(0xffff)) | % or like > Colin Percival -- Vladimir B. Grebenchikov vova@fbsd.ru