Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
SMP / Multi-threading
@syuu1228
SMP/Multithread
(SMP: Symmetric Multi Processing)
OS             CPU
             AMP


(AMP: Asymmetric Multi Processing)



                                     SMP
SMP



NUMA(Non-Uniform Memory Access)




     SMP
Nehalem NUMA




 http://pc.watch.impress.co.jp/docs/2007/0927/kaigai389.htm
SMT
(Simultaneous Multi-Threading)




                                 2   2
                      5%   20%

 Pentium 4, Core i7
SMT




Ultra SPARC T2 Plus(8   x8   =64
SMP

 MP

      mutex



       TLB

CPU                 etc
SMP
SMP




 SMP

 SMT   NUMA
SMP




SMP
SMP/Multithread
MP



SMP
SMP

 …
SMT


  2           x2




      linux
NUMA
SMP
      task1   task1         task3


      task2   task2         task4


              CPU0          CPU1
      task3


      task4


      CPU0




→fork() or
fork()




         fork()
fork()
→
M:N


≠




         SMP

    10                      SMP
                     →M:N

     →           →    ←
VM

  Java

Haskell Smalltalk Ruby   2.0



Erlang                         ”   ”



SMP
fork()




          CPU




prefork     fork()

More Related Content

SMP/Multithread