From owner-freebsd-current@FreeBSD.ORG Fri Feb 24 21:21:36 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 5369616A420 for ; Fri, 24 Feb 2006 21:21:36 +0000 (GMT) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 122AC43D45 for ; Fri, 24 Feb 2006 21:21:35 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id k1OLLYo7073149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 24 Feb 2006 13:21:35 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <43FF79A0.8040809@errno.com> Date: Fri, 24 Feb 2006 13:24:48 -0800 From: Sam Leffler User-Agent: Thunderbird 1.5 (X11/20060210) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: CFT: src/tools/tools/npcus X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 24 Feb 2006 21:21:36 -0000 I need folks to test some code committed recently for identifying the number of cpu's on a machine. The plan is to use this code to choose an SMP or UP kernel during an install. cd /usr/src/tools/tools/ncpus make su ./ncpus You should get output like this: trouble# ./ncpus acpi0_check: nexus0 attached acpi0_check: legacy0 not-present acpi0_check: npx0 attached acpi0_check: acpi0 attached ncpus: MADT: Found CPU APIC ID 1 enabled ncpus: MADT: Found CPU APIC ID 2 disabled acpi: 1 ncpus: MPTable: Found CPU APIC ID 0 enabled mptable: 1 acpi: 1 means checking ACPI configuration info we found 1 cpu. mptable: 1 means MPTable indicated there was 1 cpu. The rest of the stuff printed out is for debugging. If you run this test and DON'T see the correct number of cpus for your machine please mail me (directly) with the output and dmesg output from booting your kernel. FWIW acpi info is considered more definitive than MPTable so if acpi gives you the right answer but MPTable does not that's ok. Sam