Re: Hyperthreading on 2.4.18 and 2.4.20 (Redhat)

From: red floyd (no.spam_at_here.dude)
Date: 03/18/04


Date: Thu, 18 Mar 2004 18:09:25 GMT

Marc Schwartz wrote:
> On Thu, 18 Mar 2004 08:57:02 -0500, General Schvantzkoph wrote:
>
>
>>On Thu, 18 Mar 2004 16:00:24 +0800, Stephen SM WONG wrote:
>>
>>
>>>Interesting, but since you will not have (physical)
>>>processor affinity in hyperthreading situation, you might
>>>run into the case that only one (physical) processor is
>>>running 2 tasks on 2 hyperthreaded virtual processors, and
>>>hence you saw the slow down.
>>>
>>>My 2 cents.
>>>
>>>Stephen Wong @ Hong Kong.
>>>
>>
>>It's certainly worth trying the same experiment with the 2.6.x kernel,
>>rumor has it that the 2.6 kernel has a better scheduler. However the
>>reason to believe that the individual thread performance will still suffer
>>significantly is that when the P4 is operating in hyperthreaded mode the
>>number of physical registers assigned to each thread reduced by 1/2. Also
>>the cache is shared between both threads so the cache is going to thrash.
>
>
>
> FWIW, recently on the Fedora lists, this had been discussed. There was
> one post from Alan Cox indicating that there were still issues with HT in
> the 2.6 kernel and that additional work on HT related scheduling was
> pending.
>
> I do not have a multi-CPU system, but do have a new Dell 5150 laptop with
> a 3.2 Ghz P4 with HT running FC1. I have disabled HT in the system's BIOS
> due to known conflict issues with the 2.4 SMP kernel and am using the
> 2.4.x UP kernel.
>
> There was a recent article at 2CPU.com on 2.6 and HT:
>
> http://www.2cpu.com/articles/41_1.html
>
> which you might find of interest.
>
> HTH,
>
> Marc Schwartz
>

I realize that this is a YMMV case... I'm running highly parallelized programs
-- the CPU is part of a Beowulf, actually, and I thought I'd play with HT on a
single node before enabling it on all cluster nodes.

What I have is a large number of LONG highly CPU-bound processes. Given that,
do you think the scheduler problems would be a real issue?



Relevant Pages

  • Re: call for more SD versus CFS comparisons (was: Re: [ck] Mainline plans)
    ... problems on my Amarok machine. ... usually test Amarok playback while kernel package make, ... Putting load onto the VM layer / block layer. ... also the behavior on a server for example - how does the scheduler behave ...
    (Linux-Kernel)
  • Re: page fault in sched_pin()
    ... > sched_pinearly in the boot process. ... I wasn't booting off the kernel I thught I was booting off. ... remove it from the scheduler inteface and make it part of the standard ... page fault while in kernel mode ...
    (freebsd-current)
  • Re: BIND9 performance issues with SMP
    ... instead of having its own dedicated scheduler activation. ... that threads that block in the kernel don't block the whole process. ... but lock contentions seem particularly heavy ... The first-level optimization is to create ...
    (freebsd-current)
  • Re: [OT] Interview with Con Kolivas on Linux failures
    ... Con Kolivas, the kernel hacker who authored a better scheduler, recently decided to quit. ... Loss for Linux ... The former option means you have a CPU scheduler which is difficult to model, and the behaviour is right 95% of the time and ebbs and flows in its metering out of CPU and latency. ...
    (Debian-User)
  • Re: thread and process
    ... in the kernel, 1:n-threading, using a userspace scheduler for threads ... Since Linux is not UNIX, ... a set of such tasks sharing certain ressource structures 'looks like' ...
    (comp.unix.programmer)