From owner-freebsd-questions@FreeBSD.ORG Mon Nov 19 04:25:20 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 2746516A41A for ; Mon, 19 Nov 2007 04:25:20 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (mail.qubeconnect.com [202.190.74.25]) by mx1.freebsd.org (Postfix) with SMTP id 4B1A513C448 for ; Mon, 19 Nov 2007 04:25:19 +0000 (UTC) (envelope-from dinesh@alphaque.com) Received: (qmail 16557 invoked by uid 0); 19 Nov 2007 03:57:20 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.190.74.25) by lucifer.net-gw.com with SMTP; 19 Nov 2007 03:57:20 -0000 Received: from prophet.alphaque.com (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.8/8.13.4) with ESMTP id lAJ3vOFn049408; Mon, 19 Nov 2007 11:57:24 +0800 (MYT) (envelope-from dinesh@alphaque.com) Date: Mon, 19 Nov 2007 11:57:23 +0800 From: Dinesh Nair To: Manolis Kiagias Message-ID: <20071119115723.0701c02a@prophet.alphaque.com> In-Reply-To: <4740140C.6050103@otenet.gr> References: <20071118111446.H4507@wojtek.tensor.gdynia.pl> <4740140C.6050103@otenet.gr> Organization: Alphaque. Anytime. Anywhere. X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Wojciech Puchar , freebsd-questions@freebsd.org 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 04:25:20 -0000 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 ? -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.openmalaysiablog.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+