Date: Thu, 24 Jan 2008 14:38:02 +0100 From: Pietro Cerutti <gahr@gahr.ch> To: freebsd-hackers@freebsd.org, freebsd-current <freebsd-current@freebsd.org> Subject: Re: SMP in machine/params.h Message-ID: <479894BA.2010403@gahr.ch> In-Reply-To: <479886CF.7040506@gahr.ch> References: <479886CF.7040506@gahr.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?479894BA.2010403>