From owner-freebsd-questions@FreeBSD.ORG Tue Nov 8 01:25:25 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 9E6AE16A420 for ; Tue, 8 Nov 2005 01:25:25 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from ms-smtp-02-eri0.socal.rr.com (ms-smtp-02-qfe0.socal.rr.com [66.75.162.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41D1143D45 for ; Tue, 8 Nov 2005 01:25:25 +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-02-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id jA81PLDp005180; Mon, 7 Nov 2005 17:25:22 -0800 (PST) Date: Mon, 7 Nov 2005 15:25:21 -1000 From: Robert Marella To: Robert Marella Message-ID: <20051107152521.0b8aa83a@frankie.konav201.local> In-Reply-To: <20051107111619.108a3ae3@frankie.konav201.local> References: <20051107185226.M70218@io.dk> <20051107190524.GA77411@slackbox.xs4all.nl> <20051107111619.108a3ae3@frankie.konav201.local> 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: Tue, 08 Nov 2005 01:25:25 -0000 On Mon, 7 Nov 2005 11:16:19 -1000 Robert Marella wrote: > 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 > Replying to myself. It seems that once again I am wrong. I commented out the machdep.hyperthreading_allowed=1 in /boot/loader.conf on my 6.0 system and I still have the C column and showing 2 processors. Sorry about the noise. Robert