sysctl way too slow

Dan Nelson dnelson at allantgroup.com
Wed Jul 14 16:06:29 UTC 2010


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 at allantgroup.com


More information about the freebsd-hackers mailing list