sysctl way too slow

Atom Smasher atom at smasher.org
Wed Jul 14 22:09:52 UTC 2010


On Wed, 14 Jul 2010, Ed Schouten wrote:

> So what about other sysctls? Is it just these sysctls? It may be the 
> case that these values are not simply read from some variable in the 
> kernel, but really performs some hardware calls. Still, 436 msec is 
> quite a lot of time.
===================

getting the same info on a linux box from /sys/class/power_supply/BAT0/* 
takes <10ms, even when reading all 32 files in the directory.

meanwhile, on freebsd, the other hw.acpi.* variables i've tried are either 
reasonably fast (2-7 mS) or as slow, but no slower. at least not the 
handful that i've tried.

hw.acpi.battery.* are the ones i'm actually interested in.


-- 
         ...atom

  ________________________
  http://atom.smasher.org/
  762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
  -------------------------------------------------

 	"About all you can do in life is be who you are.
 	 Some people will love you for you. Most will
 	 love you for what you can do for them, and some
 	 won't like you at all."
 		-- Rita Mae Brown



More information about the freebsd-hackers mailing list