From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 14 12:55:07 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C86051065670 for ; Wed, 14 Jul 2010 12:55:07 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id D58DD8FC1B for ; Wed, 14 Jul 2010 12:55:03 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 300FF2A28CDE; Wed, 14 Jul 2010 14:55:03 +0200 (CEST) Date: Wed, 14 Jul 2010 14:55:03 +0200 From: Ed Schouten To: Atom Smasher Message-ID: <20100714125503.GG1742@hoeg.nl> References: <1007142345320.5546@smasher> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XLWMkxR+mZNQ4WTO" Content-Disposition: inline In-Reply-To: <1007142345320.5546@smasher> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org Subject: Re: sysctl way too slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2010 12:55:07 -0000 --XLWMkxR+mZNQ4WTO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Atom Smasher wrote: > http://smasher.org/tmp/zsh-bsd-sysctl-slow.png >=20 > is there a way to get this information that doesn't take so long? >=20 > 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. --=20 Ed Schouten WWW: http://80386.nl/ --XLWMkxR+mZNQ4WTO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkw9s6cACgkQ52SDGA2eCwV7agCeKNKu7Cj//giRPWH9aOsK5+mV eb8AnAsT4RRxb17o688UnmmXNEMrgKt7 =jmCn -----END PGP SIGNATURE----- --XLWMkxR+mZNQ4WTO--