2005-04-30 16:47:24

by Boris Fersing

[permalink] [raw]
Subject: HyperThreading, kernel 2.6.10, 1 logical CPU idle !!

Hi there,

I've a p4 HT 3,06Ghz, I've HT enabled in the BIOS and in the kernel :

Linux electron 2.6.10-cj5 #6 SMP Fri Mar 4 02:18:08 CET 2005 i686 Mobile
Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux .

But it seems that one of my cpus is idle (gkrellm monitor or top) :

Cpu0 : 88.0% us, 12.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi,
0.0% si
Cpu1 : 0.0% us, 0.3% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi,
0.0% si


I'm actually compiling thunderbird with MAKEOPTS="-j3", so , the second
should be used, shouldn't it ?

Is that a kernel issue ? Could you please explain me what's happening ?

Thank you !

Boris.


2005-04-30 19:55:50

by Robert Hancock

[permalink] [raw]
Subject: Re: HyperThreading, kernel 2.6.10, 1 logical CPU idle !!

Boris Fersing wrote:
> Hi there,
>
> I've a p4 HT 3,06Ghz, I've HT enabled in the BIOS and in the kernel :
>
> Linux electron 2.6.10-cj5 #6 SMP Fri Mar 4 02:18:08 CET 2005 i686 Mobile
> Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux .
>
> But it seems that one of my cpus is idle (gkrellm monitor or top) :
>
> Cpu0 : 88.0% us, 12.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi,
> 0.0% si
> Cpu1 : 0.0% us, 0.3% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi,
> 0.0% si
>
>
> I'm actually compiling thunderbird with MAKEOPTS="-j3", so , the second
> should be used, shouldn't it ?

Are you sure that it is actually compiling multiple files at once?

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/

2005-04-30 21:37:20

by Boris Fersing

[permalink] [raw]
Subject: Re: HyperThreading, kernel 2.6.10, 1 logical CPU idle !!

Robert Hancock a écrit :

> Boris Fersing wrote:
>
>> Hi there,
>> I've a p4 HT 3,06Ghz, I've HT enabled in the BIOS and in the kernel :
>>
>> Linux electron 2.6.10-cj5 #6 SMP Fri Mar 4 02:18:08 CET 2005 i686 Mobile
>> Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux .
>>
>> But it seems that one of my cpus is idle (gkrellm monitor or top) :
>>
>> Cpu0 : 88.0% us, 12.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi,
>> 0.0% si
>> Cpu1 : 0.0% us, 0.3% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi,
>> 0.0% si
>>
>>
>> I'm actually compiling thunderbird with MAKEOPTS="-j3", so , the second
>> should be used, shouldn't it ?
>
>
> Are you sure that it is actually compiling multiple files at once?
>
Yes I'm sure, Even if I launch more than 1 gcc, or for example, start a
compilation + video encoding (mencoder) + ... the second CPU won't work
(idle 100% or sometimes 99,9%).

Regards,

Boris.

2005-05-01 13:43:23

by Boris Fersing

[permalink] [raw]
Subject: Re: HyperThreading, kernel 2.6.10, 1 logical CPU idle !!

I disabled SMT in the kernel config and yet it seems to work ...

Boris.

Le samedi 30 avril 2005 à 23:37 +0200, Boris Fersing a écrit :
> Robert Hancock a écrit :
>
> > Boris Fersing wrote:
> >
> >> Hi there,
> >> I've a p4 HT 3,06Ghz, I've HT enabled in the BIOS and in the kernel :
> >>
> >> Linux electron 2.6.10-cj5 #6 SMP Fri Mar 4 02:18:08 CET 2005 i686 Mobile
> >> Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux .
> >>
> >> But it seems that one of my cpus is idle (gkrellm monitor or top) :
> >>
> >> Cpu0 : 88.0% us, 12.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi,
> >> 0.0% si
> >> Cpu1 : 0.0% us, 0.3% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi,
> >> 0.0% si
> >>
> >>
> >> I'm actually compiling thunderbird with MAKEOPTS="-j3", so , the second
> >> should be used, shouldn't it ?
> >
> >
> > Are you sure that it is actually compiling multiple files at once?
> >
> Yes I'm sure, Even if I launch more than 1 gcc, or for example, start a
> compilation + video encoding (mencoder) + ... the second CPU won't work
> (idle 100% or sometimes 99,9%).
>
> Regards,
>
> Boris.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

2005-05-01 14:25:01

by Coywolf Qi Hunt

[permalink] [raw]
Subject: Re: HyperThreading, kernel 2.6.10, 1 logical CPU idle !!

It seems the problem was already solved.Try the latest mm tree: 2.6.12-rc3-mm2.

FYI:
sched2-fix-smt-scheduling-problems-fix.patch
sched2-fix-smt-scheduling-problems.patch


On 5/1/05, Boris Fersing <[email protected]> wrote:
> I disabled SMT in the kernel config and yet it seems to work ...
>
> Boris.
>
> Le samedi 30 avril 2005 ? 23:37 +0200, Boris Fersing a ?crit :
> > Robert Hancock a ?crit :
> >
> > > Boris Fersing wrote:
> > >
> > >> Hi there,
> > >> I've a p4 HT 3,06Ghz, I've HT enabled in the BIOS and in the kernel :
> > >>
> > >> Linux electron 2.6.10-cj5 #6 SMP Fri Mar 4 02:18:08 CET 2005 i686 Mobile
> > >> Intel(R) Pentium(R) 4 CPU 3.06GHz GenuineIntel GNU/Linux .
> > >>
> > >> But it seems that one of my cpus is idle (gkrellm monitor or top) :
> > >>
> > >> Cpu0 : 88.0% us, 12.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi,
> > >> 0.0% si
> > >> Cpu1 : 0.0% us, 0.3% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi,
> > >> 0.0% si
> > >>
> > >>
> > >> I'm actually compiling thunderbird with MAKEOPTS="-j3", so , the second
> > >> should be used, shouldn't it ?
> > >
> > >
> > > Are you sure that it is actually compiling multiple files at once?
> > >
> > Yes I'm sure, Even if I launch more than 1 gcc, or for example, start a
> > compilation + video encoding (mencoder) + ... the second CPU won't work
> > (idle 100% or sometimes 99,9%).
> >
> > Regards,
> >
> > Boris.



--
Coywolf Qi Hunt
http://sosdg.org/~coywolf/