Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 01:09:47 +1200 (NZST)
From:      Atom Smasher <atom@smasher.org>
To:        Ed Schouten <ed@80386.nl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: sysctl way too slow
Message-ID:  <1007150056561.5546@smasher>
In-Reply-To: <20100714125503.GG1742@hoeg.nl>
References:  <1007142345320.5546@smasher> <20100714125503.GG1742@hoeg.nl>

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




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