From owner-freebsd-questions@FreeBSD.ORG Mon Nov 19 13:19:26 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B257516A417 for ; Mon, 19 Nov 2007 13:19:26 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 8A72413C467 for ; Mon, 19 Nov 2007 13:19:26 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 61781EBC3B; Mon, 19 Nov 2007 08:19:12 -0500 (EST) Date: Mon, 19 Nov 2007 08:19:11 -0500 From: Bill Moran To: Dinesh Nair Message-Id: <20071119081911.5a147893.wmoran@potentialtech.com> In-Reply-To: <20071119115723.0701c02a@prophet.alphaque.com> References: <20071118111446.H4507@wojtek.tensor.gdynia.pl> <4740140C.6050103@otenet.gr> <20071119115723.0701c02a@prophet.alphaque.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Manolis Kiagias , freebsd-questions@freebsd.org, Wojciech Puchar Subject: Re: hyperthreading CPU and broken scheduling? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2007 13:19:26 -0000 In response to Dinesh Nair : > On Sun, 18 Nov 2007 12:29:32 +0200, Manolis Kiagias wrote: > > > Wojciech Puchar wrote: > > > i have machune with intel's CPU with hyperthreading. > > > > > > it is detected right, but only first thread is ever used. > > > > > > top shows at least 50% idle no matter what i run! > > > > > > what's wrong? > > To enable hyperthreading, try setting the following in /etc/sysctl.conf: > > > > machdep.hyperthreading_allowed=1 > > > > and reboot (or execute sysctl machdep.hyperthreading_allowed=1 by hand). > > would an SMP kernel be required to properly use hyperthreading, or would > just the above sysctl setting be enough ? The SMP kernel is required as well. -- Bill Moran http://www.potentialtech.com