Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2005 21:36:17 +0200
From:      Chris Gilbert <Chris@lainos.org>
To:        freebsd-current@freebsd.org
Cc:        "Roger O. Svenning" <roger@audioweb.no>
Subject:   Re: A question about Intel HyperThreading
Message-ID:  <200509182136.17548.Chris@lainos.org>
In-Reply-To: <000c01c5bc85$445b3ef0$6401a8c0@aw001>
References:  <000c01c5bc85$445b3ef0$6401a8c0@aw001>

next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE
> ,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>   Features2=3D0x441d<SSE3,RSVD2,MON,DS_CPL,CNTX-ID,<b14>>
>   Hyperthreading: 2 logical CPUs
> real memory  =3D 2146304000 (2046 MB)
> avail memory =3D 2095374336 (1998 MB)
> ACPI APIC Table: <IntelR AWRDACPI>
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> ioapic0: Changing APIC ID to 2
> ioapic0 <Version 2.0> irqs 0-23 on motherboard
> ioapic1 <Version 2.0> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509182136.17548.Chris>