From owner-freebsd-current Fri Jan 31 10: 7:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D53137B401 for ; Fri, 31 Jan 2003 10:07:44 -0800 (PST) Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 163E343E4A for ; Fri, 31 Jan 2003 10:07:39 -0800 (PST) (envelope-from trish@bsdunix.net) Received: from femme.sapphite.org (pcp02268182pcs.longhl01.md.comcast.net [68.50.99.190]) by mtaout03.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.09 (built Jan 7 2003)) with ESMTP id <0H9L00N5MBOQ50@mtaout03.icomcast.net> for freebsd-current@freebsd.org; Fri, 31 Jan 2003 13:07:38 -0500 (EST) Received: from localhost (trish@localhost [127.0.0.1]) by femme.sapphite.org (8.12.6/8.12.6) with ESMTP id h0VI4qxj063101 for ; Fri, 31 Jan 2003 13:04:52 -0500 (EST envelope-from trish@bsdunix.net) Date: Fri, 31 Jan 2003 13:04:52 -0500 (EST) From: Trish Lynch Subject: Hyperthreading and machdep.cpu_idle_hlt X-X-Sender: To: freebsd-current@freebsd.org Message-id: <20030131125804.E1357-100000@femme> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG So, at the request of bmilekic, I ran netpipe on a hyperthreading box (non hyperthreading, I'll do when I can turn it off in BIOS next time I'm down there) however, I got a hint to turn machdep.cpu_idle_hlt on. Dmesg: (With Hyperthreading) CPU: Pentium 4 (1796.94-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xffffffffbfebfbff> real memory = 1073217536 (1023 MB) avail memory = 1034719232 (986 MB) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 Programming 24 pins in IOAPIC #1 Programming 24 pins in IOAPIC #2 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 cpu1 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 cpu2 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 cpu3 (AP): apic id: 7, version: 0x00050014, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 io1 (APIC): apic id: 3, version: 0x00178020, at 0xfec80000 io2 (APIC): apic id: 4, version: 0x00178020, at 0xfec80400 I tested with machdep.cpu_idle_hlt=0 and machdep.cpu_idle_hlt=1 The results are here: http://bsdunix.net/performance all information on what command line options I used is in there. the difference with it on is pretty substantial, might be worth noting in tuning(7) -Trish -- Trish Lynch trish@bsdunix.net Ecartis Core Team trish@listmistress.org EFNet IRC Operator @ efnet.demon.co.uk AilleCat@EFNet Key fingerprint = 781D 2B47 AA4B FC88 B919 0CD6 26B2 1D62 6FC1 FF16 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message