From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 14 17:55:09 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 0248C106566B for ; Wed, 14 Jul 2010 17:55:09 +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 BA5308FC15 for ; Wed, 14 Jul 2010 17:55:08 +0000 (UTC) Received: (qmail 83765 invoked by uid 1000); 14 Jul 2010 15:08:20 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Thu, 15 Jul 2010 03:08:04 +1200 (NZST) From: Atom Smasher In-Reply-To: <20100714144154.GB2186@britannica.bec.de> Message-ID: <1007150303431.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> <20100714144154.GB2186@britannica.bec.de> To: Joerg Sonnenberger X-POM: The Moon is Waxing Crescent (12% of Full) X-Hashcash: 1:20:1007141508:joerg@britannica.bec.de::ufj02bffTJfI7jjr:0000000000 0000000000000000000000003uNe X-Hashcash: 1:20:1007141508:freebsd-hackers@freebsd.org::Vj55QvquCHkNTCcj:000000 000000000000000000000000FBW3 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 17:55:09 -0000 On Wed, 14 Jul 2010, Joerg Sonnenberger wrote: > On Wed, Jul 14, 2010 at 11:49:07PM +1200, Atom Smasher wrote: >> the same info is available on linux via /sys and /proc and on >> comparable hardware, i can get the info about 100x faster. > > Are you sure that Linux is not just caching the data? I know of at least > one system where it takes more than 100ms to query the battery state due > to extremely slow hardware, I wouldn't be surprised if you can do worse. ============== i don't know if linux is caching it. if it is, then freebsd should at least have an option to do the same. the real test will be trying linux on the freebsd hardware and freebsd on the linux hardware. i don't know when i'll get a chance to do it, but i'll update the list with details when it happens. -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Anyone who doubts that terrorists could smuggle a nuclear warhead into New York City should note that they could always wrap it in a bale of marijuana." -- Graham Allison, The Boston Globe 27 October 1999