From owner-freebsd-questions@FreeBSD.ORG Tue Nov 14 23:04:00 2006 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 7FC7B16A415 for ; Tue, 14 Nov 2006 23:04:00 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4047B43D64 for ; Tue, 14 Nov 2006 23:03:57 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 14 Nov 2006 18:03:56 -0500 id 00056439.455A4B5C.0000AD81 Received: from Internal Mail-Server by mx01 (envelope-from wmoran@collaborativefusion.com) with AES256-SHA encrypted SMTP; 14 Nov 2006 18:03:55 -0500 Date: Tue, 14 Nov 2006 18:03:55 -0500 From: Bill Moran To: Robert Fitzpatrick Message-Id: <20061114180355.5a39df37.wmoran@collaborativefusion.com> In-Reply-To: <1163545085.492.20.camel@columbus.webtent.org> References: <1163545085.492.20.camel@columbus.webtent.org> Organization: Collaborative Fusion X-Mailer: Sylpheed version 2.2.9 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Dual core processors 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, 14 Nov 2006 23:04:00 -0000 In response to Robert Fitzpatrick : > I have a server with 6.1 and one dual-core processor and the SMP option > was built in the kernel according to the doc below, but only zeros show > up in the 'C' column of top after I've rebooted with the newly compiled > kernel. > > http://www.freebsddiary.org/smp.php > > I did not add APIC_IO as the doc suggested as it complains the option is > invalid, plus I did not do this for my other 5.4 server which shows all > processors in top. Both configs have a device of apic, neither has the > APIC_IO option. However, the other server is running 2 physical CPU's > and I see 0 thru 3 in the C column in top. Also, dmesg shows CPU #1 > Launched along with everything else: > > esmtp# dmesg|grep CPU > CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3010.67-MHz 686-class CPU) > Logical CPUs per core: 2 > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0: on acpi0 > acpi_throttle0: on cpu0 > cpu1: on acpi0 > SMP: AP CPU #1 Launched! > > Why would I not see any other CPU numbers under top like I do in my > other server? Based on your dmesg, I don't believe you have a dual-cored CPU. It looks as if it's hyperthreaded, which is different. Hyperthreading is disabled in FreeBSD by default because of possible security issues. It can be enabled by setting a sysctl ... I recommend you do a bit of reading on the sysctl mechanism or it's behaviour might confuse you. -- Bill Moran Collaborative Fusion Inc. IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.