Date: Wed, 14 Jul 2010 11:06:28 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: freebsd-hackers@freebsd.org Subject: Re: sysctl way too slow Message-ID: <20100714160628.GB5485@dan.emsphone.com> In-Reply-To: <20100714144154.GB2186@britannica.bec.de> References: <1007142345320.5546@smasher> <20100714144154.GB2186@britannica.bec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jul 14), Joerg Sonnenberger said: > 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 have an old Dell laptop where it takes almost a full second to fetch battery data via ACPI. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100714160628.GB5485>