Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Sep 2006 10:43:12 +0200
From:      m.ehinger@ltur.de
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: dev vs. sysctl
Message-ID:  <OF7D027A05.7456D463-ONC12571DF.002EFB0C-C12571DF.002FD6A8@gateway-inter.net>
In-Reply-To: <20060903.100108.-108810397.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help


"M. Warner Losh" <imp@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF7D027A05.7456D463-ONC12571DF.002EFB0C-C12571DF.002FD6A8>