From owner-freebsd-smp Mon Feb 3 18: 8:17 2003 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68D1337B401 for ; Mon, 3 Feb 2003 18:08:16 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBFCB43F9B for ; Mon, 3 Feb 2003 18:08:15 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0354.cvx21-bradley.dialup.earthlink.net ([209.179.193.99] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18fsVL-0001TQ-00; Mon, 03 Feb 2003 18:08:09 -0800 Message-ID: <3E3F1EB6.CCC1B9BB@mindspring.com> Date: Mon, 03 Feb 2003 18:00:22 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John David Duncan Cc: freebsd-smp@FreeBSD.ORG Subject: Re: cvs commit: src/sys/i386/i386 mp_machdep.c References: <5.1.0.14.2.20030203101241.00a22b20@willow.he.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a458e8ba6eccd286fb86c441ca74e61a81350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org John David Duncan wrote: > Now I'm confused, and I'm wondering if anyone could clarify: > > 4.6-release does not have the idle_hlt sysctl. Is it using > the hlt instruction, or not? 4.6 halts in the idle loop, if vm_page_zero_idle() returns zero, in the SMP case, or if do_page_zero_idle (a sysctl that only exists in the SMP case) is zero, always. See all uses of _hlt_vector in /sys/i386/i386/swtch.s for more enlightenement. > And if I install the HTT patch, should I also set idle_hlt=1, or > does it become irrelevant? If the patch you are talking about is the one that spin-loops the CPU core in question, if the other CPU cores in a hyperthreaded CPU are already HLT'ed, then the answer is "no, it's not irrelevent". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message