From owner-freebsd-current@FreeBSD.ORG Sun Sep 18 19:37:42 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 876F116A41F for ; Sun, 18 Sep 2005 19:37:42 +0000 (GMT) (envelope-from Chris@lainos.org) Received: from mail.neovanglist.net (blackacid.neovanglist.net [69.16.150.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 308AA43D46 for ; Sun, 18 Sep 2005 19:37:42 +0000 (GMT) (envelope-from Chris@lainos.org) Received: from localhost (localhost.neovanglist.net [127.0.0.1]) by mail.neovanglist.net (Postfix) with ESMTP id 57C616D439; Sun, 18 Sep 2005 12:24:20 -0700 (MST) Received: from mail.neovanglist.net ([127.0.0.1]) by localhost (blackacid.neovanglist.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42881-06; Sun, 18 Sep 2005 12:24:17 -0700 (MST) Received: from melchior (0x5358bc07.bynxx15.adsl-dhcp.tele.dk [83.88.188.7]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.neovanglist.net (Postfix) with ESMTP id E1EC56D436; Sun, 18 Sep 2005 12:24:16 -0700 (MST) From: Chris Gilbert To: freebsd-current@freebsd.org Date: Sun, 18 Sep 2005 21:36:17 +0200 User-Agent: KMail/1.8.2 References: <000c01c5bc85$445b3ef0$6401a8c0@aw001> In-Reply-To: <000c01c5bc85$445b3ef0$6401a8c0@aw001> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200509182136.17548.Chris@lainos.org> X-Virus-Scanned: amavisd-new at neovanglist.net Cc: "Roger O. Svenning" Subject: Re: A question about Intel HyperThreading X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2005 19:37:42 -0000 I don't think that would be the fault of hyperthreading. Perhaps it's blocking or waiting in a loop until something happens? That would explain why it's at ~50% regardless of if it's put under load or= =20 not. I'm not sure what your software is doing, but my first guess is that there = is=20 a loop in there somewhere which blocks until it gets something to do, but=20 doesn't sleep on the iterations where it doesn't have to do anything. On Sunday 18 September 2005 21:14, Roger O. Svenning wrote: > Hi > > Due to a fatal hardware failure we replaced one of our AMD based > NeverWinter Nights game -servers with an Intel Pentium 4 one running > 6.0-beta4 > > This is the first Pentium based box we've set up and I was hoping > someone can explain the weird cpu usage behaviour we see. > > Look at the top extract below and notice the 50% idle value. > No matter what, it sits at 50% idle all the time when the nwserver > process is running. > > Neither have I ever seen top reporting any process using the other > logical cpu, so basically it sits at 50% idle no matter how much load I > throw at it. > > The nwserver service is not multithreaded and I'm guessing it's using > only one of the logical cpus, but are there actually processing power > sitting idle here or is it just a top-weirdness? > > Needless to say I want the nwserver process to be able to use all > processing power available in the cpu. > > > Regards > > Roger O. Svenning > ----------------- > Bod=F8 - Norway > > ------------- > Top exctract: > ------------- > CPU states: 36.8% user, 0.0% nice, 13.2% system, 0.0% interrupt, 50.0% > idle > Mem: 189M Active, 520M Inact, 190M Wired, 24K Cache, 112M Buf, 1103M > Free > Swap: 4069M Total, 4069M Free > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU > COMMAND > 4015 root 1 113 0 221M 123M RUN 0 0:37 51.22% > nwserver > 4019 root 1 113 0 221M 123M RUN 0 0:22 49.84% > nwserver > > --------------- > Dmesg exstract: > --------------- > FreeBSD 6.0-BETA4 #0: Fri Sep 16 01:17:42 UTC 2005 > root@nwn.patnix.nl:/usr/obj/usr/src/sys/NEWKERNSMP > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2994.91-MHz 686-class CPU) > Origin =3D "GenuineIntel" Id =3D 0xf41 Stepping =3D 1 > > Features=3D0xbfebfbff ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > Features2=3D0x441d> > Hyperthreading: 2 logical CPUs > real memory =3D 2146304000 (2046 MB) > avail memory =3D 2095374336 (1998 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > ioapic1 irqs 24-47 on motherboard > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"