From owner-freebsd-questions@FreeBSD.ORG Sun Nov 18 10:30:06 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C72E716A41B for ; Sun, 18 Nov 2007 10:30:06 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id 5090B13C46B for ; Sun, 18 Nov 2007 10:30:06 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from freebsdgr.dyndns.org (athedsl-92013.home.otenet.gr [87.203.112.187]) (authenticated bits=0) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id lAIATW7j013853; Sun, 18 Nov 2007 12:29:32 +0200 Message-ID: <4740140C.6050103@otenet.gr> Date: Sun, 18 Nov 2007 12:29:32 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.6 (X11/20071109) MIME-Version: 1.0 To: Wojciech Puchar References: <20071118111446.H4507@wojtek.tensor.gdynia.pl> In-Reply-To: <20071118111446.H4507@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: hyperthreading CPU and broken scheduling? 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: Sun, 18 Nov 2007 10:30:06 -0000 Wojciech Puchar wrote: > i have machune with intel's CPU with hyperthreading. > > it is detected right, but only first thread is ever used. > > top shows at least 50% idle no matter what i run! > > what's wrong? > > > root@:/usr62/src/sys/amd64/compile/serwer.tensor.gdynia.pl > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.13-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0xf62 Stepping = 2 > > Features=0xbfebfbff > DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Features2=0xe41d,> > AMD Features=0x20100800 > AMD Features2=0x1 > Logical CPUs per core: 2 > real memory = 1072562176 (1022 MB) > avail memory = 1021456384 (974 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0 irqs 0-23 on motherboard > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > cpu1: on acpi0 > acpi_throttle1: on cpu1 > acpi_throttle1: failed to attach P_CNT > device_attach: acpi_throttle1 attach returned 6 > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > To enable hyperthreading, try setting the following in /etc/sysctl.conf: machdep.hyperthreading_allowed=1 and reboot (or execute sysctl machdep.hyperthreading_allowed=1 by hand).