From owner-freebsd-questions@FreeBSD.ORG Mon Nov 21 17:50:10 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E38216A41F for ; Mon, 21 Nov 2005 17:50:10 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from eastrmmtao03.cox.net (eastrmmtao03.cox.net [68.230.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4907C43D49 for ; Mon, 21 Nov 2005 17:50:09 +0000 (GMT) (envelope-from myfreebsd@cox.net) Received: from [172.18.52.8] (really [172.18.52.68]) by eastrmmtao03.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20051121174858.PIYB29285.eastrmmtao03.cox.net@[172.18.52.8]>; Mon, 21 Nov 2005 12:48:58 -0500 X-Mailer: Openwave WebEngine, version 2.8.15 (webedge20-101-1103-20040528) From: To: "Axel S. Gruner" Date: Mon, 21 Nov 2005 12:48:45 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20051121174858.PIYB29285.eastrmmtao03.cox.net@[172.18.52.8]> Cc: Axel.Gruner@suedfactoring.de, freebsd-questions@freebsd.org Subject: Re: Re: Load at 1.00 on SMP machine 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, 21 Nov 2005 17:50:10 -0000 Have you tried it as follows: 1. Compile kernel with SMP and APIC included 2. Set machdep.hlt_logical_cpus=0 in loader.conf or sysctl.conf (0 not 1) 3. Set machdep.hyperthreading_allowed=1 in loader.conf See if that helps. If not, remove machdep.hyperthreading or set it to 0. From my understanding that should disable HTT >From FreeBSD 6.0 RelNotes: 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] I think machdep.hlt_logical_cpus does not deactivate the other cpu it just keeps the OS from directing data to it hence the 1.00 load on your remaining cpu. David > > From: "Axel S. Gruner" > Date: 2005/11/21 Mon PM 12:25:59 EST > To: > CC: , freebsd-questions@freebsd.org > Subject: Re: Load at 1.00 on SMP machine > > Hi, > > Am 21.11.2005 um 16:17 schrieb : > > >> i got a Problem on my dual XEON 3.06 GhZ machine, 2GB of >RAM, > >> FreeBSD > >> 5.4-STABLE. > >> I got "option SMP" in the kernel config and > >> >"machdep.hlt_logical_cpus=1" in > >> /boot/loader.conf. > >> There are just 20 processes running (typical ones like >getty and > >> stuff) and > >> the load of this machine is at 1.xx. There is no bgfsck and >other > >> stuff. > > > >> So, i built a new kernel without "option SMP", rebooted, >and the > >> load was > >> at 0.0x. But only one CPU was used (detected). > > > >> So, what could bei the Problem? > >> Well, the machine shows me 4 CPUs, HTT is not enabled via >/boot/ > >> loader.conf > >> and "machdep.hyperthreading_allowed". So, how to disable >HTT? > >> Maybe this is > >> the problem of the high load? > > > > Why are you setting machdep.hlt_logical_cpus=1? My understanding, > > this would turn off one of the cpus. It should be set to 0 to have > > both cpus going. Also it is set in sysctl.conf not loader.conf, at > > least, that is how I have it. > > Both CPUs are working. Also, works with machdep in loader.conf. > Thats not the problem. > > > I am also curious how machdep.hyperthreading_allowed works. I run 6 > > so I believe it is turned on by default. Is this correct? Also if > > it is a solo cpu with HTT, do you need option SMP and > > machdep.hlt_logical_cpus=0 set or not with > > machdep.hyperthreading_allowed on? > > I do not know. I just want turn off HTT, but stay with SMP. So i want > my two phyiscal CPUs working, but not the logical (HTT) one. > This is because is think maybe the load of 1.0x comes from turning on > HTT. Well, if i do not use SMP in the kernel, the load is fine, but > there is just one of the physical CPUs working. > >