From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 24 12:56:45 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 7D98316A421 for ; Thu, 24 Jan 2008 12:56:45 +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 131A113C4DD for ; Thu, 24 Jan 2008 12:56:44 +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 1JI1dM-0005bw-2B; Thu, 24 Jan 2008 13:56:44 +0100 Message-ID: <47988AFE.1010903@gahr.ch> Date: Thu, 24 Jan 2008 13:56:30 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: Attilio Rao , freebsd-hackers@freebsd.org References: <479886CF.7040506@gahr.ch> <3bbf2fe10801240448wb5009cai16721aff75579773@mail.gmail.com> In-Reply-To: <3bbf2fe10801240448wb5009cai16721aff75579773@mail.gmail.com> 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="------------enigB4748D98EF769F02CF9183F2" 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 12:56:45 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB4748D98EF769F02CF9183F2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Attilio Rao wrote: > 2008/1/24, Pietro Cerutti : >> Hello, >> >> I'm running a Core2Duo on CURRENT, SMP kernel, but somehow the macro S= MP >> in machine/param.h 1.81 2006/01/09 line 68 is not defined, thus MAXCPU= >> is defined to 1. Any idea why? >> >>> uname -a >> FreeBSD gahrtop.localhost 8.0-CURRENT FreeBSD 8.0-CURRENT #23: Tue Jan= >> 22 00:15:05 CET 2008 >> root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034 i386 >> >>> sysctl kern.smp.active kern.smp.maxcpus >> kern.smp.active: 1 >> kern.smp.maxcpus: 16 >> >>> cat smp.c >> #include >> >> #ifndef SMP >> # error SMP not defined >> #endif >> >> >>> make smp >> cc -O2 -pipe -march=3Dpentiumpro smp.c -o smp >> smp.c:5:3: error: #error SMP not defined >> *** Error code 1 >> >>> cat maxcpu.c >> #include >> #include >> >> int main(void) >> { >> return (MAXCPU); >> } >> >>> ./maxcpu; echo $? >> 1 >> >> Any idea? >=20 > Did you define SMP in your config file? Yes. How could I have kern.smp.active: 1 otherwise? > grep SMP /sys/i386/conf/MSI1034 # To make an SMP kernel, the next two lines are needed options SMP # Symmetric MultiProcessor Kernel >=20 > Attilio >=20 >=20 --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enigB4748D98EF769F02CF9183F2 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) iD8DBQFHmIsDwMJqmJVx944RCnMDAKDZ4haOkLZmayApTpgCZ5UynbThYgCgl1Wk DvSEccYdD+e78Itaz4wQ8lM= =eHAU -----END PGP SIGNATURE----- --------------enigB4748D98EF769F02CF9183F2--