Top only showing one active CPU on HTT system

Tim Kellers kellers at NJIT.EDU
Tue May 24 08:59:54 PDT 2005


On Tuesday 24 May 2005 11:53 am, Kirk Strauser wrote:
> I'm running a 5.4-STABLE system (updated as of May 16).  My kernel is
> basically GENERIC with a few small tweaks, like commenting out extraneous
> "cpu" lines and adding "options SMP".
>
> My problem is that although dmesg shows every sign of having launched both
> logical CPUs:
>
> $ dmesg | grep -i cpu
> CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2392.05-MHz 686-class CPU)
>   Hyperthreading: 2 logical CPUs
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> cpu0: <ACPI CPU> on acpi0
> cpu1: <ACPI CPU> on acpi0
> SMP: AP CPU #1 Launched!
>
> ... running "top" only shows "0" in the CPU column for every task.  I don't
> see anything out of place in sysctl:
>
> $ sysctl -a | grep -i hlt
> machdep.cpu_idle_hlt: 1
> machdep.hlt_cpus: 2
> machdep.hlt_logical_cpus: 0
>
> and /boot/loader.conf is all but empty.  Honestly, I don't really know how
> long this has been going on.  top used to show both 0 and 1 in the C column
> and I'm not exactly sure when it stopped.  Any ideas?


From my /boot/loader.conf:
acpi_load="YES"
loader_color="yes"


  PID USERNAME PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU COMMAND
  587 root      96    0   177M 44500K CPU0   0 630:12 10.94% 10.94% Xorg
41019 service  106   10  4680K  2632K RUN    0   0:01  0.05%  0.05% stonerview

uname -a
FreeBSD gilgamesh.maestro 5.4-STABLE FreeBSD 5.4-STABLE #3: Wed May 11 
10:38:27 EDT 2005     
service at gilgamesh.maestro:/usr/obj/usr/src/sys/GILGAMESH  i386


The acpi_load="YES" in /boot/loader.conf might do the trick.

Tim Kellers
CPE/NJIT



More information about the freebsd-questions mailing list