From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 14 14:48:16 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 A9DF1106567E for ; Wed, 14 Jul 2010 14:48:16 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.sonnenberger.org [92.79.50.50]) by mx1.freebsd.org (Postfix) with ESMTP id 6C3B08FC14 for ; Wed, 14 Jul 2010 14:48:16 +0000 (UTC) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id F1D6666784 for ; Wed, 14 Jul 2010 16:48:13 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1000) id 153951509E; Wed, 14 Jul 2010 16:41:54 +0200 (CEST) Date: Wed, 14 Jul 2010 16:41:54 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20100714144154.GB2186@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <1007142345320.5546@smasher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1007142345320.5546@smasher> User-Agent: Mutt/1.5.20 (2009-06-14) 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:48:16 -0000 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. Joerg