From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 17:38:33 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4A6516A401 for ; Thu, 5 Apr 2007 17:38:33 +0000 (UTC) (envelope-from mark@messier.com) Received: from mainstreet.net (noc.mainstreet.net [207.5.0.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8B25313C45D for ; Thu, 5 Apr 2007 17:38:33 +0000 (UTC) (envelope-from mark@messier.com) Received: from [199.245.73.254] (cache.mainstreet.net [199.245.73.254]) (authenticated bits=0) by mainstreet.net (8.13.8/8.13.8) with ESMTP id l35HcXQE024851 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 5 Apr 2007 10:38:33 -0700 (PDT) (envelope-from mark@messier.com) In-Reply-To: <46145B8F.3010109@u.washington.edu> References: <20070403194555.4a9d1f2f.freebsd@dfwlp.com> <20070404005721.GA19966@xor.obsecurity.org> <20070403212527.b94753ea.freebsd@dfwlp.com> <4613848B.5080306@tiscali.it> <46145B8F.3010109@u.washington.edu> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <30662671-669D-401E-A63D-048A224F80DD@messier.com> Content-Transfer-Encoding: 7bit From: Mark Messier Date: Thu, 5 Apr 2007 10:38:28 -0700 To: Garrett Cooper X-Mailer: Apple Mail (2.752.2) Cc: freebsd-questions@freebsd.org Subject: Re: trouble with HT 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: Thu, 05 Apr 2007 17:38:33 -0000 >> You also need to add: >> kern.smp.active = 1 >> kern.smp.cpus = 1 What? I've never added lines like those... They always seem to have the correct values for me: Here it is on 4.8: # sysctl -a | grep smp machdep.smp_active: 1 machdep.smp_cpus: 2 and 5.3: # sysctl -a | grep smp kern.timecounter.smp_tsc: 0 kern.smp.maxcpus: 16 kern.smp.active: 1 kern.smp.disabled: 0 kern.smp.cpus: 2 kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 and 6.1: # sysctl -a | grep smp kern.timecounter.smp_tsc: 0 kern.smp.maxcpus: 16 kern.smp.active: 1 kern.smp.disabled: 0 kern.smp.cpus: 4 kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 and 6.2: # sysctl -a | grep smp kern.timecounter.smp_tsc: 0 kern.smp.forward_roundrobin_enabled: 1 kern.smp.forward_signal_enabled: 1 kern.smp.cpus: 4 kern.smp.disabled: 0 kern.smp.active: 1 kern.smp.maxcpus: 16 Now, on that 6.1 system, it boots as: CPU: Intel(R) Xeon(TM) CPU 3.40GHz (3391.51-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf4a Stepping = 10 Features=0xbfebfbff Features2=0x649d> AMD Features=0x20100000 AMD Features2=0x1 Logical CPUs per core: 2 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 but all I ever see in 'top' is cpu 0 and 2 doing anything. Meanwhile, on a 6.2 Dempsey system with this: CPU: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (2000.08-MHz K8- class CPU) Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6 Features=0xbfebfbff Features2=0x4e33d,CX16,,,> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 I see CPU 0,1,2 and 3 in the top output. What's up with that 6.1 machine showing only cpu 0 and 2? The CPU are listed here: http://processorfinder.intel.com/details.aspx?sSpec=SL8P4 Thanks, -mark