List:Cluster« Previous MessageNext Message »
From:Stewart Smith Date:February 4 2005 12:45am
Subject:Re: It's not going well....
View as plain text  
On Thu, 2005-02-03 at 11:22 +0000, Vincent Bray wrote:
> Please forgive me if I'm being dumb here... In the case of
> 'hyperthreading' CPUs (the Xeon), is there an advantage to locking a
> process to one of these 'CPUs' (ie half of the hardware chip).

Yes. In earlier 2.6 (or 2.5.x... it was a while ago) linux kernels (and
before), the OS would sometimes move processes between the "CPUs" in a
very silly way (esp in SMP+SMT). 

In later 2.6's (or 2.5's... i forget and can't find the changelog entry)
the scheduler is aware of HT CPUs and that they really are just one
physical CPU and assigns them one (not two) runqueues. This stops some
needless jumping around and along with some other things implemented
later on, the linux kernel is quite aware (and well behaved) with SMT
CPUs (and in a SMP+SMT environment).

for a bit more info:
http://kerneltrap.org/node/391	(Ingo's patch for SMT)
http://lwn.net/Articles/80911/  (Scheduler Domains)

So... you may not need to tie processes down on SMP+SMT (or just SMT)...
linux may be smart enough to do it for you. A bit of experimenting
couldn't hurt though.

-- 
Stewart Smith, Software Engineer
MySQL AB, www.mysql.com
Office: +61 4 3 8844 332

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html


Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Thread
Re: It's not going well....RadeonFlashBox1 Feb
  • Re: It's not going well....Marco Wertejuk2 Feb
    • Re: It's not going well....Mike Schroeder2 Feb
      • Re: It's not going well....Mikael Ronström2 Feb
        • New ...Hasan Subasi2 Feb
        • Re: It's not going well....Jim Hoadley2 Feb
          • Re: It's not going well....Mikael Ronström2 Feb
            • Re: It's not going well....Vincent Bray3 Feb
              • Re: It's not going well....Stewart Smith4 Feb