From owner-freebsd-current@FreeBSD.ORG Wed Nov 23 10:01:52 2005 Return-Path: X-Original-To: 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 6FF9B16A41F; Wed, 23 Nov 2005 10:01:52 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd2mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15C7443D4C; Wed, 23 Nov 2005 10:01:52 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd5mr8so.prod.shaw.ca (pd5mr8so-qfe3.prod.shaw.ca [10.0.141.184]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IQE00788JV30K00@l-daemon>; Wed, 23 Nov 2005 03:01:51 -0700 (MST) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd5mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IQE006FFJV3KQ70@pd5mr8so.prod.shaw.ca>; Wed, 23 Nov 2005 03:01:51 -0700 (MST) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IQE007IKJV2QJ@l-daemon>; Wed, 23 Nov 2005 03:01:51 -0700 (MST) Date: Wed, 23 Nov 2005 02:01:50 -0800 From: Colin Percival In-reply-to: <20051123090706.GA91223@xor.obsecurity.org> To: Kris Kennaway Message-id: <43843E0E.8040601@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.93.0.0 References: <20051123090334.GA90972@xor.obsecurity.org> <20051123090706.GA91223@xor.obsecurity.org> User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051001) Cc: current@FreeBSD.org, jhb@FreeBSD.org Subject: Re: idle task running on the wrong CPU 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: Wed, 23 Nov 2005 10:01:52 -0000 Kris Kennaway wrote: > It was pointed out that machdep.hyperthreading_allowed=1 fixes this > bug (it was set to 0). However, hyperthreading was already in use > (partly), because this machine has 2 physical CPUs with HTT, and CPUs > 0, 2 and 3 were running jobs. > > Looks like machdep.hyperthreading_allowed=0 does not work as intended. That's odd. Can you tell me what values the hyperthreading_cpus_mask and hyperthreading_cpus variables in mp_machdep.c have, and what values PCPU_GET(cpumask) returns on the various (virtual) cpus? Colin Percival