From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 24 13:38:15 2008 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 036B116A417; Thu, 24 Jan 2008 13:38:15 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 8B6CA13C455; Thu, 24 Jan 2008 13:38:14 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JI2HV-0004v3-JH; Thu, 24 Jan 2008 14:38:13 +0100 Message-ID: <479894BA.2010403@gahr.ch> Date: Thu, 24 Jan 2008 14:38:02 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-current References: <479886CF.7040506@gahr.ch> In-Reply-To: <479886CF.7040506@gahr.ch> X-Enigmail-Version: 0.95.5 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig95A38527E4CA9E8B469F7535" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: SMP in machine/params.h 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: Thu, 24 Jan 2008 13:38:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig95A38527E4CA9E8B469F7535 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Some more interesting findings in this field lead me to another related question: what is the relation between kern.smp.cpus, kern.smp.active and kern.smp.maxcpus? To my understanding, it should be: If the machine has more than one CPU, and SMP and apic are enabled in the config file, then kern.smp.cpus =3D nof cpus in the system kern.smp.active =3D 1 kern.smp.maxcpus =3D 16 else kern.smp.cpus =3D 1 kern.smp.active =3D 0 kern.smp.maxcpus =3D 1 This is the expected result, and also the result I get from my single CPU Pentium 3, running 6.3-RELEASE: kern.smp.cpus: 1 kern.smp.active: 0 kern.smp.maxcpus: 1 =46rom my single CPU sparc64, running 7.0-PRERELEASE, I get: kern.smp.cpus: 1 kern.smp.active: 0 kern.smp.maxcpus: 16 <-- why not 1?? =46rom my Core2Due, running 8.0-CURRENT, I get: kern.smp.cpus: 2 kern.smp.active: 1 kern.smp.maxcpus: 16 which is OK, but nevertheless SMP is not defined in sys/param.h (see previous posts). Thanks for any insight, --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig95A38527E4CA9E8B469F7535 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHmJS+wMJqmJVx944RCjAZAJ9QE5o4sP8ZwwoIthm4HGYyC7iBnQCgj/uv wVIiPcIXFv2u2f43VagTuE8= =lvQt -----END PGP SIGNATURE----- --------------enig95A38527E4CA9E8B469F7535--