From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 01:49:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E556316A4CE for ; Thu, 26 Feb 2004 01:49:31 -0800 (PST) Received: from genua.rfc-networks.ie (genua.rfc-networks.ie [62.77.182.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F57A43D1F for ; Thu, 26 Feb 2004 01:49:31 -0800 (PST) (envelope-from philip.reynolds@rfc-networks.ie) Received: from tear.domain (tear [10.0.1.254]) by genua.rfc-networks.ie (Postfix) with ESMTP id 179BD5D23 for ; Thu, 26 Feb 2004 09:49:56 +0000 (GMT) Received: by tear.domain (Postfix, from userid 1000) id 6BCEB20F13; Thu, 26 Feb 2004 09:49:29 +0000 (GMT) Date: Thu, 26 Feb 2004 09:49:29 +0000 From: Philip Reynolds To: freebsd-hackers@freebsd.org Message-ID: <20040226094929.GA73840@rfc-networks.ie> References: <20040225214618.GA60156@crodrigues.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20040225214618.GA60156@crodrigues.org> X-Operating-System: FreeBSD 4.8-STABLE X-URL: http://www.rfc-networks.ie Subject: Re: Questions about CPU related sysctls X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: philip.reynolds@rfc-networks.ie List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 09:49:32 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Craig Rodrigues 27 lines of wisdom included: > What is the difference between these two sysctls? >=20 > kern.smp.cpus: Number of CPUs online > hw.ncpu: Number of active CPUs These two are exactly the same thing from the little SMP I have done with FreeBSD. I would use hw.ncpu, as kern.smp.cpus only appears when SMP is compiled into the kernel, IIRC. > Also, can someone give a brief description of these sysctls (sysctl -d > doesn't show anything for them). >=20 > Would it be a good idea to add some text to these syctls? >=20 > kern.ccpu: > hw.acpi.cpu.cx_history: > machdep.hlt_cpus: This has come up before, feel free to submit something!=20 --=20 Philip Reynolds | RFC Networks Ltd. philip.reynolds@rfc-networks.ie | +353 (0)1 8832063 http://people.rfc-networks.ie/~phil/ | www.rfc-networks.ie --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQFAPcEpKmoTT9WktYwRAkN3AJ9mERy+sw6070iEr+r0eZGrq4vE0QCcDFjx WbrQe9vD3cSGFNJ1PprF+qE= =H7o8 -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--