Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SMP/Multithread

2,327 views

Published on

SMPとMultithreadについての小話

  • Be the first to comment

SMP/Multithread

  1. 1. SMP / Multi-threading @syuu1228
  2. 2. (SMP: Symmetric Multi Processing) OS CPU AMP (AMP: Asymmetric Multi Processing) SMP
  3. 3. SMP NUMA(Non-Uniform Memory Access) SMP
  4. 4. Nehalem NUMA http://pc.watch.impress.co.jp/docs/2007/0927/kaigai389.htm
  5. 5. SMT (Simultaneous Multi-Threading) 2 2 5% 20% Pentium 4, Core i7
  6. 6. SMT Ultra SPARC T2 Plus(8 x8 =64
  7. 7. SMP MP mutex TLB CPU etc
  8. 8. SMP SMP SMP SMT NUMA
  9. 9. SMP SMP
  10. 10. MP SMP
  11. 11. SMP …
  12. 12. SMT 2 x2 linux
  13. 13. NUMA
  14. 14. SMP task1 task1 task3 task2 task2 task4 CPU0 CPU1 task3 task4 CPU0 →fork() or
  15. 15. fork() fork()
  16. 16. fork()
  17. 17.
  18. 18. M:N ≠ SMP 10 SMP →M:N → → ←
  19. 19. VM Java Haskell Smalltalk Ruby 2.0 Erlang ” ” SMP
  20. 20. fork() CPU prefork fork()

×