From owner-freebsd-stable@FreeBSD.ORG Wed Jul 14 17:32:09 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98C7B10656AE for ; Wed, 14 Jul 2010 17:32:09 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 1E3EE8FC16 for ; Wed, 14 Jul 2010 17:32:06 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA13079; Wed, 14 Jul 2010 20:31:59 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4C3DF48E.1070502@icyb.net.ua> Date: Wed, 14 Jul 2010 20:31:58 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100517) MIME-Version: 1.0 To: Oliver Fromme References: <201007141414.o6EEEUx9014690@lurza.secnetix.de> In-Reply-To: <201007141414.o6EEEUx9014690@lurza.secnetix.de> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.ORG Subject: Re: 8.1-PRERELEASE: CPU packages not detected correctly X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jul 2010 17:32:09 -0000 on 14/07/2010 17:14 Oliver Fromme said the following: > In a machine installed yesterday, 8.1-PRERELEASE doesn't > seem to detect the number of CPU packages vs. cores per > package correctly: > > | FreeBSD 8.1-PRERELEASE-20100713 #0: Tue Jul 13 19:51:18 UTC 2010 > | [...] > | CPU: Intel(R) Xeon(R) CPU L5408 @ 2.13GHz (2133.42-MHz K8-class CPU) > | Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 Stepping = 10 > | Features=0xbfebfbff > | Features2=0x40ce3bd > | AMD Features=0x20000800 > | AMD Features2=0x1 > | TSC: P-state invariant > | real memory = 34359738368 (32768 MB) > | avail memory = 33151377408 (31615 MB) > | ACPI APIC Table: > | FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs > | FreeBSD/SMP: 1 package(s) x 8 core(s) > | cpu0 (BSP): APIC ID: 0 > | cpu1 (AP): APIC ID: 1 > | cpu2 (AP): APIC ID: 2 > | cpu3 (AP): APIC ID: 3 > | cpu4 (AP): APIC ID: 4 > | cpu5 (AP): APIC ID: 5 > | cpu6 (AP): APIC ID: 6 > | cpu7 (AP): APIC ID: 7 > | ioapic1 irqs 24-47 on motherboard > | ioapic0 irqs 0-23 on motherboard > > I'm pretty sure that this is a 2 x 4 machine (2 CPU packages > with 4 cores per package), not 1 x 8. That's what the BIOS > displays during POST. > > I'm not sure if this is just a "cosmetic" issue, or if this > is a critical thing ... I could imagine that performance > might be sub-optimal if the CPU topology isn't detected > correctly, but I'm not sure if FreeBSD can take advantage > of the topology. Could you please try to do the following? 1. Fetch topo-12212009.tar from the top of this page: http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/ 2. Untar it and apply this patch to the code: http://people.freebsd.org/~avg/cpu-topology.diff 3. Compile it by running sh mk_64.sh (supposing you have amd64 system installed) 4. Run cpu_topology64.out and report back its output. Thanks! -- Andriy Gapon