From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 18:36:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0C5516A655 for ; Fri, 22 Jul 2005 18:36:43 +0000 (GMT) (envelope-from lei.sun@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE7FC44A66 for ; Fri, 22 Jul 2005 18:16:33 +0000 (GMT) (envelope-from lei.sun@gmail.com) Received: by wproxy.gmail.com with SMTP id 55so450676wri for ; Fri, 22 Jul 2005 11:16:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BWR4+EzVKWBRgG4cnUrx73hG2mPv+KK7JlFHqS14/AB2ra0s5vHMt9bY8Q4pZD1AK8+mOkO9r6ijIWYrVOYB0a1NgoiioQMBv5CH5I90ZlIPK3UFMZpWjL2U+gVt7uU3A8oq+3hT/D6nn5xnlrREX3eg3CZv2rNKpxzqXkL34gI= Received: by 10.54.34.61 with SMTP id h61mr1353104wrh; Fri, 22 Jul 2005 11:15:50 -0700 (PDT) Received: by 10.54.6.35 with HTTP; Fri, 22 Jul 2005 11:15:50 -0700 (PDT) Message-ID: Date: Fri, 22 Jul 2005 11:15:50 -0700 From: Lei Sun To: Andreas Rudisch <"cyb."@gmx.net> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1122023424.525.1.camel@p4-3200.local> Cc: freebsd-questions@freebsd.org Subject: Re: only see cpu0 working after rebuilding kernel with SMP support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lei Sun List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 18:36:44 -0000 This thread helped http://archives.neohapsis.com/archives/freebsd/2005-05/0037.html On 7/22/05, Lei Sun wrote: > Yes, I read that security advisory as well, and I see >=20 > ----------------------- > NOTE: For users that are certain that their environment is not affected > by this vulnerability, such as single-user systems, Hyper-Threading > Technology may be re-enabled by setting the tunable > "machdep.hyperthreading_allowed". > ----------------------- >=20 > so I "echo "machdep.hyperthreading_allowed" >> /boot/load.conf", then reb= oot. >=20 > But still only 1 CPU is running. >=20 > Thanks in advance :) >=20 > Lei >=20 > On 7/22/05, Andreas Rudisch <"cyb."@gmx.net> wrote: > > On Fri, 2005-07-22 at 00:12 -0700, Lei Sun wrote: > > > Hi, > > > I wanted to enable the second logical CPU on my P4 HT. and... > > > Something seems to be strange to me as: > > > > > > All of the processes are running with CPU0 and none is working with C= PU1 > > > > > Here is the steps and places I read and followed > > > > > > 1. I followed the custom kernel documents from > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfi= g-building.html > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfi= g-config.html > > > http://www.freebsddiary.org/smp.php > > > > > > and compiled the custom kernel > > > > > > and my kernel config: > > > ------------------------------------------------- > > > ... > > > options SMP > > > device apic # I/O APIC > > > ... > > > ------------------------------------------------- > > > > > > 2. Then I compiled the custom kernel, and installed it > > > > > > 3. I check the startup output, and found > > > SMP: AP CPU #1 Launched! > > > > > > So my question is, how come in top, only cpu0 is working, and no entr= y for cpu1? > > > > > > Thanks in advance:) > > > > > > Lei > > > > > > Take a look at this: > > > > ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:09.htt.= asc > > > > Andreas. > > > > -- > > GnuPG key : 0xD25FCC81 | http://cyb.websimplex.de/pubkey.asc > > Fingerprint: D182 6F22 7EEC DD4C 0F6E 564C 691B 0372 D25F CC81 > > > > > > > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.1 (FreeBSD) > > > > iD8DBQBC4LgAaRsDctJfzIERAtX8AJ9fJBbODWbOxymKEFeHNpULtUrecACfYsWG > > IcmXfXCmO9ZpgCxDOlOwQWc=3D > > =3Dzfk/ > > -----END PGP SIGNATURE----- > > > > > > >