From owner-freebsd-questions@FreeBSD.ORG Mon Nov 7 21:16:27 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 5351516A429 for ; Mon, 7 Nov 2005 21:16:27 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from ms-smtp-03-eri0.socal.rr.com (ms-smtp-03-qfe0.socal.rr.com [66.75.162.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id E434043D6A for ; Mon, 7 Nov 2005 21:16:24 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from frankie.konav201.local (cpe-66-8-187-40.hawaii.res.rr.com [66.8.187.40]) by ms-smtp-03-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id jA7LGKmI022234; Mon, 7 Nov 2005 13:16:21 -0800 (PST) Date: Mon, 7 Nov 2005 11:16:19 -1000 From: Robert Marella To: Roland Smith Message-ID: <20051107111619.108a3ae3@frankie.konav201.local> In-Reply-To: <20051107190524.GA77411@slackbox.xs4all.nl> References: <20051107185226.M70218@io.dk> <20051107190524.GA77411@slackbox.xs4all.nl> X-Mailer: Sylpheed-Claws 1.9.99 (GTK+ 2.8.6; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-questions@freebsd.org, jwl@io.dk Subject: Re: enable smp / hyperthreading X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2005 21:16:27 -0000 On Mon, 7 Nov 2005 20:05:24 +0100 Roland Smith wrote: > On Mon, Nov 07, 2005 at 07:53:20PM +0100, jwl@io.dk wrote: > > Hi > > > > I've just installed 6.0-RELASE and am trying to get SMP to work (I > > have af Pentium 4 with HT). So I've compiled the kernel with > > 'options SMP' and according to dmesg the two CPUs are found: > > > > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > > cpu0 (BSP): APIC ID: 0 > > cpu1 (AP): APIC ID: 1 > > > > But I'm not sure that both are enabled, because at this is at the > > end of dmesg and I dont see the other CPU being enabled somewhere: > > > > SMP: AP CPU #1 Launched! > > I think it is referring to the Auxiliary Processor (AP), because the > BSP (don't know what that stands for, though) is obviously already > active. > > According to 'sysctl -a' there are 2 CPUs, but only 1 active and SMP > > doesnt seem to be disabled: > > > > kern.smp.cpus: 2 > > kern.smp.disabled: 0 > > kern.smp.active: 1 > > sysctl -d kern.smp.active > kern.smp.active: Number of Auxillary Processors (APs) that were > successfully started > > This is the number of _extra_ CPUs, which chould be 1. > > Roland If hyperthreading is working the ouput of 'top' should have a C column and will show either a 0 or a 1. AFAIK HTT is still disabled because of a security risk. See: ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:09.htt.asc If you do not believe you are at risk, there is a work around included in the above site. YMMV. I have been known to be wrong before. :-) Robert