From owner-freebsd-current@FreeBSD.ORG Mon May 4 19:03:26 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 187FC106567B; Mon, 4 May 2009 19:03:26 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by mx1.freebsd.org (Postfix) with ESMTP id 60A428FC19; Mon, 4 May 2009 19:03:24 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so1639370mue.3 for ; Mon, 04 May 2009 12:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=h64Avfk69mBKKEMm3FqSPG5ktckEPvKj+Zd2gb7OtRo=; b=HNLsMWrd5jZSIuDkBab6d3wI+LhV58ZDCkIEcuTfe/YTOZDt0QybFlKWSrhF+52HZu PsKbBAuucInE1oMOIOwwYSyQYlc1yj3nKmUOY1cCHapDcVKOgkykaSQlcp8YtC/nklrX ynU+qX/iR9TUx2acWgUTDu2PUbtMASWiIjHSk= 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:content-transfer-encoding; b=Dc3OfiSMrDYQ8c3ffu8rWBpxcfU0NQi7r7i7B09YlIsR98TI0dzpSC4pU+T8znMOda ybx/Svg28MFoK8zQSOqJ4pg1WM9/qWGvtaTZDF6UY6ZHso5ZI36Ter9r44PAixbezh3k v14RbP7XO6RHV01wktN43yFbkd0cqs3ouuUEA= MIME-Version: 1.0 Received: by 10.103.248.17 with SMTP id a17mr3801442mus.83.1241463804063; Mon, 04 May 2009 12:03:24 -0700 (PDT) In-Reply-To: <200905041407.56204.jkim@FreeBSD.org> References: <20090430013428.cb4f804b.nork@FreeBSD.org> <200905011610.42613.jkim@FreeBSD.org> <200905041407.56204.jkim@FreeBSD.org> Date: Mon, 4 May 2009 23:03:23 +0400 Message-ID: From: pluknet To: Jung-uk Kim Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Jeff Roberson 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: Mon, 04 May 2009 19:03:26 -0000 2009/5/4 Jung-uk Kim : > On Saturday 02 May 2009 03:50 am, pluknet wrote: >> 2009/5/2 Jung-uk Kim : >> > On Thursday 30 April 2009 11:04 pm, 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 ? >> > >> > No, the flag does not mean it supports Hyperthreading. It means >> > more than one logical core is supported (multi-threading) >> > although the name didn't change for historical reason. ;-) >> >> I see now. >> >> > Can you try the attached patch? >> >> Nice, it works! > > Committed slightly different version. > > http://svn.freebsd.org/viewvc/base?view=revision&revision=191788 > Thank you! Just checked again on fresh current. P.S. For archives: now topology_spec looks slightly different, according to the change: kern.sched.topology_spec: 0, 1 0, 1 -- wbr, pluknet