From owner-freebsd-arch@FreeBSD.ORG Thu May 19 16:58:04 2011 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 164081065670; Thu, 19 May 2011 16:58:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E5EB78FC15; Thu, 19 May 2011 16:58:02 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA17489; Thu, 19 May 2011 19:58:01 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4DD54C18.8050305@FreeBSD.org> Date: Thu, 19 May 2011 19:58:00 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110504 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Attilio Rao , Garrett Cooper References: <4DD3F662.9040603@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "freebsd-current@freebsd.org" , "freebsd-arch@freebsd.org" Subject: Re: [rfc] remove hlt_cpus et al sysctls and related code X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2011 16:58:04 -0000 on 18/05/2011 20:04 Attilio Rao said the following: > 2011/5/18 Garrett Cooper : >> We use this internally at work still with a software config that uses 4BSD so >> as long as there is an equivalent tunable, that's good enough for us moving >> forward. Can you please clarify which exactly tunable(s) do you use/need? Just turning hyperthreading on/off or more? (BTW, doing that via BIOS is inconvenient / not feasible?) BTW, I think that if we switch hyperthreading off then we better off not sending Start IPI to the logical CPUs at all. > Tunables are pretty much acceptable for this case. What is really broken is the > on-the-fly ability to mark CPUs active/inactive and subsequent handovers. Yes, I completely agree. Static disabling of CPUs doesn't have any problems, and IMO, currently the best way to do it is with hint.lapic.X.disabled. > I thought Andriy attached a patch to the tree, but it doesn't seem so... > anyway, yes, I think that adding tunables for this is very reasonable and not > as dangerous as the current mechanism. I agree. I haven't sent a patch, because I don't have it yet :) I decided to solicit opinions before getting to hacking code. -- Andriy Gapon