"M. Warner Losh" <[EMAIL PROTECTED]> 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

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to