RE: Problem determining number of CPUs

Jesper Juhl (jju@dif.dk)
21 Aug 2002 16:37:14 +0200


On Wed, 2002-08-21 at 16:20, Matt_Domsch@Dell.com wrote:
> > Linux kernel versions 2.4.18, 2.4.19, 2.4.20pre4 do not determine
> > correctly the number of CPUs on our system. We see 8 CPUs
> > instead of 4,
> > however the system works.
> >
> > Our machine: Dell PowerEdge 6600, 4 Xeon 1400 Mhz, 4GB RAM
>
> Yes, this is expected behavior due to hyperthreaded processors.
> http://lists.us.dell.com/pipermail/linux-poweredge/2002-July/003465.html
>

I'm aware that hyperthreading makes each CPU appear as two. But wouldn't
it be possible to determine this fact and report it to the user to avoid
confusion (not everyone knows about hyperthreading) ?

In the case of 4 HT capable CPU's it could be reported like

8 CPUs (4 physical)

or something like that to indicate that there is nothing wrong and the
kernel is simply taking advantage of hyperthreading.

Just my two euro-cents...

/Jesper Juhl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/