From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 18:35:40 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 19FE516A431 for ; Fri, 22 Jul 2005 18:35:40 +0000 (GMT) (envelope-from gollum123@free.fr) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D3F243DA0 for ; Fri, 22 Jul 2005 18:11:31 +0000 (GMT) (envelope-from gollum123@free.fr) Received: from [192.168.0.140] (tui75-2-82-229-178-102.fbx.proxad.net [82.229.178.102]) by postfix3-1.free.fr (Postfix) with ESMTP id EA1E51734B2; Fri, 22 Jul 2005 20:11:29 +0200 (CEST) Date: Fri, 22 Jul 2005 20:11:28 +0200 From: Mathieu CHATEAU X-Mailer: The Bat! (v3.5) Professional X-Priority: 3 (Normal) Message-ID: <876947795.20050722201128@free.fr> To: Lei Sun In-Reply-To: References: <1122023424.525.1.camel@p4-3200.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Andreas Rudisch <"cyb."@gmx.net>, freebsd-questions@freebsd.org Subject: Re[2]: 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: Mathieu CHATEAU List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 18:35:41 -0000 Hello Lei, i agree with you. I have he same trouble. kern.threads.virtual_cpu: 2 kern.smp.cpus: 2 hw.ncpu: 2 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% machdep.cpu_idle_hlt: 0 machdep.hlt_cpus: 2 machdep.hlt_logical_cpus: 0 machdep.logical_cpus_mask: 2 dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 machdep.hlt_cpus: 2 looks strange to me. any clue ? Friday, July 22, 2005, 6:47:47 PM, you wrote: LS> Yes, I read that security advisory as well, and I see LS> ----------------------- LS> NOTE: For users that are certain that their environment is not affected LS> by this vulnerability, such as single-user systems, Hyper-Threading LS> Technology may be re-enabled by setting the tunable LS> "machdep.hyperthreading_allowed". LS> ----------------------- LS> so I "echo "machdep.hyperthreading_allowed" >> /boot/load.conf", then reboot. LS> But still only 1 CPU is running. LS> Thanks in advance :) LS> Lei LS> 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 CPU1 >> >> > 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/kernelconfig-building.html >> > >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-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 entry 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= >> =zfk/ >> -----END PGP SIGNATURE----- >> >> >> LS> _______________________________________________ LS> freebsd-questions@freebsd.org mailing list LS> http://lists.freebsd.org/mailman/listinfo/freebsd-questions LS> To unsubscribe, send any mail to LS> "freebsd-questions-unsubscribe@freebsd.org" -- Best regards, Mathieu mailto:gollum123@free.fr