From owner-freebsd-current@FreeBSD.ORG Tue Jun 10 17:29:14 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F49B37B401; Tue, 10 Jun 2003 17:29:14 -0700 (PDT) Received: from humphrey.dyndns.org (12-211-118-21.client.attbi.com [12.211.118.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB1C143F93; Tue, 10 Jun 2003 17:29:08 -0700 (PDT) (envelope-from wendy.humphrey@comcast.net) Received: from bigboot.humphrey.world (bigboot.humphrey.world [192.168.8.3]) id h5B0SYM04535; Tue, 10 Jun 2003 17:28:34 -0700 (PDT) From: Brendon and Wendy To: freebsd-current@freebsd.org, freebsd-smp@freebsd.org, Doug White Date: Tue, 10 Jun 2003 17:29:08 -0700 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306101729.08109.wendy.humphrey@comcast.net> Subject: Re: Re: Twin CPU machine running with only one cpu? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 00:29:14 -0000 All, Some progress to report - ran top -S as suggested, and could see the two idle threads, one per physical CPU. The second idle thread was halted but on cpu #1 (the second cpu). sysctl machdep.halt_logical_cpus=0. Both CPU threads are active, occupying ~100% of thier respective cpus. Run my infinite loop program. Occupies 100% of cpu #1, system load 50%. Start second instance, occupies 100% of cpu 0. Good! Its working. Conclusion in my case setting sysctl machdep.halt_logical_cpus=1 effectively halts my second CPU. Maybe it thought it was a second core in the first CPU? For Doug, thanks for the suggestions. Flashed the BIOS with no effect. Mptable attached. I'm happy to test any patches arising from this... Cheers All. Brendon =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000f4f90 signature: '_MP_' length: 16 bytes version: 1.4 checksum: 0x7d mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f1400 signature: 'PCMP' base table length: 316 version: 1.4 checksum: 0x77 OEM ID: 'OEM00000' Product ID: 'PROD00000000' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 31 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 0 0x11 BSP, usable 15 2 4 0xfbff 1 0x11 AP, usable 15 2 4 0xfbff -- Bus: Bus ID Type 0 PCI 1 PCI 2 PCI 3 PCI 4 PCI 5 ISA -- I/O APICs: APIC ID Version State Address 4 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# INT active-lo level 0 31:B 4 17 INT active-lo level 0 31:D 4 19 INT active-lo level 0 31:C 4 23 INT active-lo level 4 7:A 4 16 INT active-lo level 4 1:A 4 17 INT active-lo level 1 0:A 4 22 INT active-lo level 4 4:A 4 16 INT active-lo level 0 31:A 4 16 ExtINT conforms conforms 5 0 4 0 INT conforms conforms 5 1 4 1 INT conforms conforms 5 0 4 2 INT conforms conforms 5 3 4 3 INT conforms conforms 5 4 4 4 INT conforms conforms 5 6 4 6 INT conforms conforms 5 7 4 7 INT active-hi edge 5 8 4 8 INT conforms conforms 5 12 4 12 INT conforms conforms 5 13 4 13 INT conforms conforms 5 14 4 14 INT conforms conforms 5 15 4 15 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 0 0:A 255 0 NMI conforms conforms 0 0:A 255 1 ===============================================================================