lkml.org 
[lkml]   [2002]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Hyperthreading
From
Date
On Wed, 2002-08-21 at 20:33, Hugh Dickins wrote:
> On Wed, 21 Aug 2002, James Bourne wrote:
> > On Wed, 21 Aug 2002, Reed, Timothy A wrote:
> > >
> > > Can anyone lead me to a good source of information on what options should be
> > > in the kernel for hyperthreading?? I am still fighting with a
> > > sub-contractor over kernel options.
> >
> > As long as you have a P4 and use the P4 support you will get
> > hyperthreading with 2.4.19 (CONFIG_MPENTIUM4=y). 2.4.18 you have to also
> > turn it on with a lilo option of acpismp=force on the kernel command line.
>
> You do need CONFIG_SMP and a processor capable of HyperThreading,
> i.e. Pentium 4 XEON; but CONFIG_MPENTIUM4 is not necessary for HT,
> just appropriate to that processor in other ways.


hmm... isn't there an option to tell the kernel you are using a
HyperThreaded system, or is it detected on runtime? I mean, think about
a P4 Xeon 2 way SMP - unless told otherwise the kernel will 'see' it as
a 4 way SMP box *but* the proccessors are not equel!

If for example, you have a task running and another task just woke up
and the scheduler needs to assign a CPU for it, choosing the other
'instance' of the same CPU as the already running task to run it on as
opposed to choosing one of the 'instanaces' of the other seperate CPU
seems a mistake IMHO, but the scheduler won't be able to make the
judgment because it doesn't know it is running on a SMT box at all.

Or am I missing something? :-)

Gilad.

--
Gilad Ben-Yossef <gilad@benyossef.com>
http://benyossef.com

"Money talks, bullshit walks and GNU awks."
-- Shachar "Sun" Shemesh, debt collector for the GNU/Yakuza

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.123 / U:3.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site