Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 2010 16:41:54 +0200
From:      Joerg Sonnenberger <joerg@britannica.bec.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: sysctl way too slow
Message-ID:  <20100714144154.GB2186@britannica.bec.de>
In-Reply-To: <1007142345320.5546@smasher>
References:  <1007142345320.5546@smasher>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100714144154.GB2186>