dev vs. sysctl
m.ehinger at ltur.de
m.ehinger at ltur.de
Mon Sep 4 01:42:49 PDT 2006
"M. Warner Losh" <imp at bsdimp.com> schrieb am 03.09.2006 18:01:08:
> In the past I did some silly measurements and found that sysctls were
> slower by a small amount. I never could figure out why, since the
> path to the sysctl seemed like it would be shorter than the path to
> the read. This was in the 3.x timeframe, so your best bet is to code
> up both and see which one is better today.
OK i did that and it seems to be still the same. "read" seems to be faster then th sysctl call.
I got about 8.7 seconds for 100,000 sysctl reads and 1.8 seconds for 100,000 read calls. Measured on a Thinkpad with 75MHz CPU
frequency.
Thanks
Maik
More information about the freebsd-hackers
mailing list