Re: Twin CPU machine running with only one cpu?

From: Michal Mertl <mime_at_traveller.cz>
Date: Tue, 10 Jun 2003 14:53:01 +0200 (CEST)
On Mon, 9 Jun 2003, Brendon and Wendy wrote:

> Dear All,
>
> Just installed 5.1 RC1 on my Dual Prestonia Xeon box. Works great. In fact
> this is the first time i've had much success with the 5.x branch.
>
> Anyway, heres my question. Despite the fact that I've recompiled my kernel
> with SMP and IOAPIC enabled, I seem to have only one CPU running. At boot
> time the kernel reports starting CPU#1 at the end of boot time. The machdep.*
> systctls claim that I have two cpus, but no matter what I do I cannot get the
> CPU load over 48% (for instance running two c programs that loop infinitely
> with no delay)!
>

Do you mean with the subject line that you have only one physical
processor installed but you expect to see two in action because of HTT? If
that's the case, your behaviour is normal because HTT is by default
disabled. You should be able to see an idle kthread with 'top -S'
eating 100% of CPU 1. You can toggle HTT on/off at any time with 'sysctl
machdep.hlt_logical_cpus=0|1'.

I think that when hlt_logical_cpus == 1 system shouldn't account for
logical CPUs' idle time because it's confusing to see cpu load always <=
50%.


-- 
Michal Mertl
mime_at_traveller.cz
Received on Tue Jun 10 2003 - 03:53:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC