From owner-freebsd-stable@FreeBSD.ORG Wed May 4 11:58:18 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9057A106564A for ; Wed, 4 May 2011 11:58:18 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 43DEC8FC15 for ; Wed, 4 May 2011 11:58:18 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QHaie-0004iC-U5 for freebsd-stable@freebsd.org; Wed, 04 May 2011 13:58:16 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2011 13:58:16 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2011 13:58:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Wed, 04 May 2011 13:57:53 +0200 Lines: 26 Message-ID: References: <20110501042028.GA87381@icarus.home.lan> <20110502154849.0000746b@unknown> <201105021356.49585.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: <201105021356.49585.jkim@FreeBSD.org> X-Enigmail-Version: 1.1.2 Subject: Re: Is machdep.cpu_idle_hlt deprecated? 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: Wed, 04 May 2011 11:58:18 -0000 On 02/05/2011 19:56, Jung-uk Kim wrote: > On Monday 02 May 2011 10:48 am, Bruce Cran wrote: >> On Sat, 30 Apr 2011 21:20:28 -0700 >> >> Jeremy Chadwick wrote: >>> Anyone know if machdep.cpu_idle_hlt still exists? Taken from >>> acpi(4) on RELENG_8: >> >> It looks like it might have been replaced by machdep.idle: >> >> machdep.idle: currently selected idle function >> machdep.idle_available: list of available idle functions >> >> machdep.idle: acpi >> machdep.idle_available: spin, hlt, acpi, > > It seems "machdep.cpu_idle_hlt" was deprecated long ago with this > commit by jeff (CC'ed): > > http://svnweb.freebsd.org/base?view=revision&revision=178471 How likely is this to affect real-world performance on e.g. a busy web server? As the comments say, the "fastest" are spin and mwait and the slowest is acpi, which is also the default. I have no reference point for what "fast" and "slow" mean in this context :)