sysctl way too slow

Ed Schouten ed at 80386.nl
Wed Jul 14 12:55:07 UTC 2010


* Atom Smasher <atom at smasher.org> wrote:
> http://smasher.org/tmp/zsh-bsd-sysctl-slow.png
> 
> is there a way to get this information that doesn't take so long?
> 
> the same info is available on linux via /sys and /proc and on
> comparable hardware, i can get the info about 100x faster.

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.

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100714/af050540/attachment.pgp


More information about the freebsd-hackers mailing list