From owner-freebsd-smp Thu Apr 27 8:57:54 2000 Delivered-To: freebsd-smp@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id B015137B8D3 for ; Thu, 27 Apr 2000 08:57:51 -0700 (PDT) (envelope-from jim@thehousleys.net) Received: from thehousleys.net (baby.int.thehousleys.net [192.168.0.24]) by thehousleys.net (8.9.3/8.9.3) with ESMTP id LAA00543 for ; Thu, 27 Apr 2000 11:57:49 -0400 (EDT) Message-ID: <3908637D.FA57D436@thehousleys.net> Date: Thu, 27 Apr 2000 11:57:49 -0400 From: James Housley Organization: The Housleys dot Net X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 3.4-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-smp@FreeBSD.ORG Subject: Re: hlt instructions and temperature issues References: <200004271533.e3RFXoI01828@lor.watermarkgroup.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Luoqi Chen wrote: > > Index: swtch.s > =================================================================== > RCS file: /home/ncvs/src/sys/i386/i386/swtch.s,v > retrieving revision 1.91 > diff -u -r1.91 swtch.s > --- swtch.s 2000/03/29 06:15:38 1.91 > +++ swtch.s 2000/04/27 15:31:11 > @@ -258,9 +258,14 @@ > > ENTRY(default_halt) > sti > -#ifndef SMP > - hlt /* XXX: until a wakeup IPI */ > +#ifdef SMP > +#ifdef CHEAP_TPR > + movl $0, lapic_tpr > +#else > + andl $~APIC_TPR_PRIO, lapic_tpr > +#endif /** CHEAP_TPR */ > #endif > + hlt > ret > I applied this patch to my 3.4-STABLE SMP cvs's yesterday afternoon. According to healthd my temps were 44.5 and 38.5 for the CPUs. After rebooting they cooled down to 32.0 and 30.0. I guess the next question is, "Is this seriously impacting performance?" Personaly a small hit is okay. Jim -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message