From owner-freebsd-questions@FreeBSD.ORG Mon Aug 29 21:15:13 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 225C8106566B for ; Mon, 29 Aug 2011 21:15:13 +0000 (UTC) (envelope-from brett@lariat.net) Received: from lariat.net (lariat.net [66.119.58.2]) by mx1.freebsd.org (Postfix) with ESMTP id 98C9C8FC12 for ; Mon, 29 Aug 2011 21:15:12 +0000 (UTC) Received: from WildRover.lariat.net (IDENT:ppp1000.lariat.net@lariat.net [66.119.58.2]) by lariat.net (8.9.3/8.9.3) with ESMTP id PAA21491; Mon, 29 Aug 2011 15:15:06 -0600 (MDT) Message-Id: <201108292115.PAA21491@lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Mon, 29 Aug 2011 15:15:02 -0600 To: Bruce Cran From: Brett Glass In-Reply-To: <4E5BEE9C.7080706@cran.org.uk> References: <201108291724.LAA18734@lariat.net> <4E5BEE9C.7080706@cran.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: questions@freebsd.org Subject: Re: Turn off hyperthreading on dual core Atom? 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, 29 Aug 2011 21:15:13 -0000 At 01:55 PM 8/29/2011, Bruce Cran wrote: >Actually, the ULE scheduler does know about HyperThreading and the >topology of such CPUs. I don't know what it does with the >information, but it probably works to optimize cache usage etc. Alas, during a recent kernel build, I used the -j2 command line option in "make" and watched as the scheduler repeatedly assigned two instances of cc (the most CPU-intensive program) to the same core. During that process, I also watched CPU utilization in top(1). The peak was 46% idle, which means that HTT appeared to be making at most a 4% difference. (If the peak were 50% idle, HTT would be doing nothing at all, because top(1) can't tell that there aren't really 4 CPUs.) --Brett Glass