From owner-freebsd-current@FreeBSD.ORG Fri May 1 05:12:42 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D04F1066975; Fri, 1 May 2009 05:12:37 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 1F54A8FC17; Fri, 1 May 2009 05:12:37 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: by rv-out-0506.google.com with SMTP id k40so1821768rvb.43 for ; Thu, 30 Apr 2009 22:12:36 -0700 (PDT) Received: by 10.140.142.11 with SMTP id p11mr707392rvd.206.1241154756835; Thu, 30 Apr 2009 22:12:36 -0700 (PDT) Received: from ?10.0.1.198? (udp016664uds.hawaiiantel.net [72.235.41.117]) by mx.google.com with ESMTPS id k41sm6657521rvb.57.2009.04.30.22.12.34 (version=SSLv3 cipher=RC4-MD5); Thu, 30 Apr 2009 22:12:36 -0700 (PDT) Date: Thu, 30 Apr 2009 19:14:46 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: pluknet , jhb@freebsd.org In-Reply-To: Message-ID: References: <20090430013428.cb4f804b.nork@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: cannot compile sched_ule without options SMP 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, 01 May 2009 05:12:42 -0000 On Fri, 1 May 2009, pluknet wrote: > 2009/5/1 pluknet : >> 2009/5/1 Jeff Roberson : >>> On Thu, 30 Apr 2009, pluknet wrote: >>> >>>> 2009/4/30 Jeff Roberson : >>>>> >>>>> On SMP machines you should now see output like this: >>>>> FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs >>>>> FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads >>>>> >>>>> If you detect any irregularities with kern.sched.topology_spec or this >>>>> dmesg >>>>> line please report them. >>>>> >>>> >>>> Hi, Jeff. >>>> >>>> I have such mismatch. This is an Intel E7200. >>>> >>>> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs >>>> FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads >>>> cpu0 (BSP): APIC ID: 0 >>>> cpu1 (AP/HT): APIC ID: 1 >>>> >>>> So it should be instead: 1 package(s) x 2 core(s) >>>> cpu0 (BSP): APIC ID: 0 >>>> cpu1 (AP): APIC ID: 1 >>> >>> Can you please repeat the following steps as I have done here: >>> >> >> (kgdb) p/x cpu_high >> $1 = 0x2 >> (kgdb) p/x cpu_cores >> $2 = 0x1 >> (kgdb) p/x cpu_logical >> $3 = 0x2 >> (kgdb) p/x cpu_feature >> $4 = 0xbfebfbff >> (kgdb) p/x logical_cpus >> $5 = 0x2 >> (kgdb) p/x hyperthreading_cpus >> $6 = 0x2 >> > > Follow up myself: > > What is embarrassing me is HTT feature enabled. May the reason be in a > buggy CPUID ? This is very curious. With older revisions did the system believe your CPUs were HTT? You can tell if you had sysctl machdep.hyperthreading_allowed or via the ULE kern.sched.topology_spec sysctl. I didn't realize there were any core2 CPUs without leaf 4 of cpuid. However, I didn't write the earlier hyperthread detection code. I'll see if I can get jhb to chime in. The HTT feature bit is set on many processors that don't have hyperthreads. So we need a secondary way of differentiating. I don't know what that is in this case. Thanks, Jeff > > -- > wbr, > pluknet >