From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 14 14:52:10 2010 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 39C48106566C for ; Wed, 14 Jul 2010 14:52:10 +0000 (UTC) (envelope-from atom@smasher.org) Received: from atom.smasher.org (atom.smasher.org [69.55.237.145]) by mx1.freebsd.org (Postfix) with SMTP id E66028FC18 for ; Wed, 14 Jul 2010 14:52:09 +0000 (UTC) Received: (qmail 61799 invoked by uid 1000); 14 Jul 2010 14:52:08 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Thu, 15 Jul 2010 02:49:22 +1200 (NZST) From: Atom Smasher In-Reply-To: <4C3DBCC7.8060500@bsdforen.de> Message-ID: <1007150245460.5546@smasher> MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt References: <1007142345320.5546@smasher> <4C3DBCC7.8060500@bsdforen.de> To: Dominic Fandrey X-POM: The Moon is Waxing Crescent (12% of Full) X-Hashcash: 1:20:1007141449:kamikaze@bsdforen.de::F8iOPqhN3wAYnKHV:0000000000000 0000000000000000000000000FX9 X-Hashcash: 1:20:1007141449:freebsd-hackers@freebsd.org::lAz0mYknZTnFgdch:000000 00000000000000000000000023EM Cc: freebsd-hackers@freebsd.org Subject: Re: sysctl way too slow 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: Wed, 14 Jul 2010 14:52:10 -0000 On Wed, 14 Jul 2010, Dominic Fandrey wrote: > It probably depends on your BIOS. This is the same call on my > system: > % time sysctl -n hw.acpi.battery.life hw.acpi.battery.time hw.acpi.battery.state > 100 > -1 > 0 > sysctl -n hw.acpi.battery.life hw.acpi.battery.time hw.acpi.battery.state 0.00s user 0.01s system 96% cpu 0.013 total > > As you can see 33 times faster than on your system. =================== next time i reboot this laptop, i'll stick an ubuntu CD in and see if it takes as long to get the info. i guess if it does take as long, then we can blame the hardware. -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Since I entered politics, I have chiefly had men's views confided to me privately. Some of the biggest men in the United States, in the Field of commerce and manufacture, are afraid of something. They know that there is a power somewhere so organized, so subtle, so watchful, so interlocked, so complete, so pervasive, that they better not speak above their breath when they speak in condemnation of it." -- Woodrow Wilson, The New Freedom (1913)