From owner-freebsd-stable@FreeBSD.ORG Mon Nov 14 13:23:33 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFCE416A41F for ; Mon, 14 Nov 2005 13:23:33 +0000 (GMT) (envelope-from kama@pvp.se) Received: from ms1.as.pvp.se (dns.pvp.se [213.64.187.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70C9A43D45 for ; Mon, 14 Nov 2005 13:23:33 +0000 (GMT) (envelope-from kama@pvp.se) Received: by ms1.as.pvp.se (Postfix, from userid 1001) id 3BA6EC3; Mon, 14 Nov 2005 14:24:03 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ms1.as.pvp.se (Postfix) with ESMTP id 376CEC0; Mon, 14 Nov 2005 14:24:03 +0100 (CET) Date: Mon, 14 Nov 2005 14:24:03 +0100 (CET) From: kama X-X-Sender: kama@ns1.as.pvp.se To: Doug White In-Reply-To: <20051113153531.B7337@carver.gumbysoft.com> Message-ID: <20051114142001.W20948@ns1.as.pvp.se> References: <20051111204659.F8860@ns1.as.pvp.se> <20051113153531.B7337@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-stable@freebsd.org Subject: Re: Hyperthreading issues. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2005 13:23:33 -0000 On Sun, 13 Nov 2005, Doug White wrote: > On Fri, 11 Nov 2005, kama wrote: > > > Just upgraded from 5.4 to 6.0 and hyperthreading stoped working. > > Everything looks ok, but it doesn't use two of the logical CPU's. > > This is disabled by default due to a information-leak vulnerability across > the hyperthreaded cores. The details from the release notes: > > Because of an information disclosure vulnerability on processors using > Hyper-Threading Technology (HTT), the machdep.hyperthreading_allowed > sysctl variable has been added. It defaults to 1 (HTT enabled) on FreeBSD > CURRENT, and 0 (HTT disabled) on the 4-STABLE and 5-STABLE development > branches and supported security fix branches. More information can be > found in security advisory FreeBSD-SA-05:09.htt. [MERGED] > > If you don't care about this, add > > machdep.hyperthreading_allowed="1" > > to /boot/loader.conf and reboot. If you had read the mail you'll see further down that its indeed set. After a while it seems to use cpu2&3 but more rarely than 1&0, maybe its ULE that makes it work that way. > > > One other thing is when I try to switch off hyperthreading in BIOS, it > > will hang at bootup when it are settling the scsi drives. After awhile it > > will give me scsi timeouts. This only happens when I have two cpu enabled > > and hyperthreading off. If I disable one cpu w ht off it will boot wo > > problems, or two cpus w ht. But booting with ht + two cpu's gives me the > > other problem. > > Sounds like the BIOS is not rerouting the interrupts correctly. Check for > a BIOS update. > I'll see if there is a new BIOS update. /Bjorn