From owner-freebsd-stable@FreeBSD.ORG Thu Aug 19 16:56:48 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 A471810656D1; Thu, 19 Aug 2010 16:56:48 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 541328FC1D; Thu, 19 Aug 2010 16:56:45 +0000 (UTC) Received: by qyk8 with SMTP id 8so1613771qyk.13 for ; Thu, 19 Aug 2010 09:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Ed+8A2n3IQ9Hiyq1NdTbmRoDO4hVTQSKgH3Fo1ys7M0=; b=DwhqcgXMqhlWhcJ+4/veuFnRhMm2+K6SD6c8O04SB/NhgogaTGj367ezPDjMmAj1V7 Z6QnwPWBYk77GHQm25IKYB8aXZljXlXSEeJjPKpQkmKnN1VMOXCboyPf2JEluM3zHlFH Pkxz5SoZH9/UalPGOObGXw4y/LjcZ6OaT911o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OqqwS8+0YXzzXY7yHbsxFRXOB4Bh2hb+tLz91VodyC4MLtWaMpSPAjDloX4euAMYUW fRUGfBwLACZnWk3r/L0bDi3RRlY8I1UV6rnOeM9bljQuavjG0OmRI4qFsUn0MfYV+sTY E/LfsKLZt+PZ+Enwvyj8AbHCmvFb+A8E0TI70= MIME-Version: 1.0 Received: by 10.224.62.217 with SMTP id y25mr76863qah.193.1282237004637; Thu, 19 Aug 2010 09:56:44 -0700 (PDT) Received: by 10.229.31.12 with HTTP; Thu, 19 Aug 2010 09:56:43 -0700 (PDT) In-Reply-To: <4C6D5E31.9000701@icyb.net.ua> References: <201007141414.o6EEEUx9014690@lurza.secnetix.de> <201007141755.04690.jkim@FreeBSD.org> <4C3FB73F.7070502@freebsd.org> <201007161147.56242.jkim@FreeBSD.org> <4C6D5E31.9000701@icyb.net.ua> Date: Thu, 19 Aug 2010 20:56:43 +0400 Message-ID: From: pluknet To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org, Jung-uk Kim 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: Thu, 19 Aug 2010 16:56:48 -0000 On 19 August 2010 20:39, Andriy Gapon wrote: > on 10/08/2010 19:55 pluknet said the following: >> On 16 July 2010 19:47, Jung-uk Kim wrote: >>> The patch should apply fine on both sys/amd64/amd64/mp_machdep.c and >>> sys/i386/i386/mp_machdep.c. >>> >>> http://people.freebsd.org/~jkim/mp_machdep2.diff >>> >> >> >> Hi. >> >> Just checked on Xen HVM with 3 cores. >> 1) 8.1 unmodified: >> FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs >> FreeBSD/SMP: 1 package(s) x 3 core(s) >> >> 2) 8.1 + patch >> FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs >> FreeBSD/SMP: 0 package(s) x 1 core(s) x 32 HTT threads >> WARNING: Non-uniform processors. >> WARNING: Using suboptimal topology. > > Can you debug, e.g. with printfs, what exactly goes wrong? > I wonder if in this case code follows some unusual/unexpected path. Sorry, I'm a bit busy right now. I hope to debug this somewhere in the next week. > BTW, could you please also provide CPU name/model/features as detected by the kernel? Sure. CPU: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz (2763.12-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106a5 Family = 6 Model = 1a Stepping = 5 Features=0x1781fbbf Features2=0x80982201> TSC: P-state invariant real memory = 4194304000 (4000 MB) avail memory = 3932786688 (3750 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs FreeBSD/SMP: 0 package(s) x 1 core(s) x 32 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 2 cpu2 (AP/HT): APIC ID: 4 Just a thought. # HTT might somehow correlate with current maxcpus limit (32). > > Thanks! -- wbr, pluknet