From owner-freebsd-current@FreeBSD.ORG Tue Jan 15 06:53:48 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0E6316A417 for ; Tue, 15 Jan 2008 06:53:48 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail18.syd.optusnet.com.au (mail18.syd.optusnet.com.au [211.29.132.199]) by mx1.freebsd.org (Postfix) with ESMTP id A4F0313C46E for ; Tue, 15 Jan 2008 06:53:48 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mail18.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m0F6rj5e021921 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Jan 2008 17:53:45 +1100 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.1) with ESMTP id m0F6rjap007567; Tue, 15 Jan 2008 17:53:45 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m0F6rjgl007566; Tue, 15 Jan 2008 17:53:45 +1100 (EST) (envelope-from peter) Date: Tue, 15 Jan 2008 17:53:45 +1100 From: Peter Jeremy To: vermaden Message-ID: <20080115065344.GY929@server.vk2pj.dyndns.org> References: <20080114175337.775EF3E8846@f38.poczta.interia.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T6xhMxlHU34Bk0ad" Content-Disposition: inline In-Reply-To: <20080114175337.775EF3E8846@f38.poczta.interia.pl> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-current@freebsd.org Subject: Re: RFC: Adding a hw.features[2] sysctl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 06:53:49 -0000 --T6xhMxlHU34Bk0ad Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 14, 2008 at 06:53:37PM +0100, vermaden wrote: >dev.cpu.0.cores: 2 <-- but that would propably be the same as kern.smp.cpu= s: 2 so link it to the value of kern.smp.cpus or do not even create it. This doesn't work because "cores" are associated with physical dies whereas dev.cpu currently counts logical CPUs (scheduling entities ie cores). Also note that kern.smp.cpus is the total number of logical CPUs. If you have multiple multi-core processors then whatever.cores will be different to kern.smp.cpus --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --T6xhMxlHU34Bk0ad Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHjFh4/opHv/APuIcRArXmAJwNpNWcqQMe/PpsN3jlyZXJRtCiUACePEeY wu0NDBjtw8DUDH3nSVuumxQ= =CNaK -----END PGP SIGNATURE----- --T6xhMxlHU34Bk0ad--