DOC PREVIEW
CMU CS 15213 - multicore

This preview shows page 1-2-3-4-31-32-33-34-35-63-64-65-66 out of 66 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 66 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Multi core architectures Jernej Barbic 15 213 Spring 2006 May 4 2006 1 Single core computer 2 Single core CPU chip the single core 3 Multi core architectures This lecture is about a new trend in computer architecture Replicate multiple processor cores on a single die Core 1 Multi core CPU chip Core 2 Core 3 Core 4 4 Multi core CPU chip The cores fit on a single processor socket Also called CMP Chip Multi Processor c o r e c o r e c o r e c o r e 1 2 3 4 5 The cores run in parallel thread 1 thread 2 thread 3 thread 4 c o r e c o r e c o r e c o r e 1 2 3 4 6 Within each core threads are time sliced just like on a uniprocessor several threads several threads several threads several threads c o r e c o r e c o r e c o r e 1 2 3 4 7 Interaction with OS OS perceives each core as a separate processor OS scheduler maps threads processes to different cores Most major OS support multi core today 8 Why multi core Difficult to make single core clock frequencies even higher Deeply pipelined circuits heat problems speed of light problems difficult design and verification large design teams necessary server farms need expensive air conditioning Many new applications are multithreaded General trend in computer architecture shift towards more parallelism 9 Instruction level parallelism Parallelism at the machine instruction level The processor can re order pipeline instructions split them into microinstructions do aggressive branch prediction etc Instruction level parallelism enabled rapid increases in processor speeds over the last 15 years 10 Thread level parallelism TLP This is parallelism on a more coarser scale Server can serve each client in a separate thread Web server database server A computer game can do AI graphics and physics in three separate threads Single core superscalar processors cannot fully exploit TLP Multi core architectures are the next step in processor evolution explicitly exploiting TLP 11 General context Multiprocessors Multiprocessor is any computer with several processors SIMD Single instruction multiple data Modern graphics cards MIMD Lemieux cluster Pittsburgh supercomputing center Multiple instructions multiple data 12 Multiprocessor memory types Shared memory In this model there is one large common shared memory for all processors Distributed memory In this model each processor has its own small local memory and its content is not replicated anywhere else 13 Multi core processor is a special kind of a multiprocessor All processors are on the same chip Multi core processors are MIMD Different cores execute different threads Multiple Instructions operating on different parts of memory Multiple Data Multi core is a shared memory multiprocessor All cores share the same memory 14 What applications benefit from multi core Database servers Web servers Web commerce Compilers Multimedia applications Scientific applications CAD CAM In general applications with Thread level parallelism as opposed to instructionlevel parallelism Each can run on its own core 15 More examples Editing a photo while recording a TV show through a digital video recorder Downloading software while running an anti virus program Anything that can be threaded today will map efficiently to multi core BUT some applications difficult to parallelize 16 A technique complementary to multi core Simultaneous multithreading Other execution units wait unused L2 Cache and Control Waiting for the result of a long floating point or integer operation Waiting for data to arrive from memory L1 D Cache D TLB Integer Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM Decoder Bus Problem addressed The processor pipeline can get stalled BTB and I TLB Source Intel 17 Simultaneous multithreading SMT Permits multiple independent threads to execute SIMULTANEOUSLY on the SAME core Weaving together multiple threads on the same core Example if one thread is waiting for a floating point operation to complete another thread can use the integer units 18 Without SMT only a single thread can run at any given time L2 Cache and Control L1 D Cache D TLB Integer Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM Bus Decoder BTB and I TLB Thread 1 floating point 19 Without SMT only a single thread can run at any given time L2 Cache and Control L1 D Cache D TLB Integer Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM Bus Decoder BTB and I TLB Thread 2 integer operation 20 SMT processor both threads can run concurrently L2 Cache and Control L1 D Cache D TLB Integer Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM Bus Decoder BTB and I TLB Thread 2 Thread 1 floating point integer operation 21 But Can t simultaneously use the same functional unit L2 Cache and Control L1 D Cache D TLB Integer Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache Bus Decoder BTB and I TLB Thread 1 Thread 2 IMPOSSIBLE uCode ROM This scenario is impossible with SMT on a single core assuming a single 22 integer unit SMT not a true parallel processor Enables better threading e g up to 30 OS and applications perceive each simultaneous thread as a separate virtual processor The chip has only a single copy of each resource Compare to multi core each core has its own copy of resources 23 Multi core threads can run on separate cores Integer L1 D Cache D TLB Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM L2 Cache and Control L2 Cache and Control L1 D Cache D TLB BTB and I TLB Thread 1 Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM Decoder Bus Bus Decoder Integer BTB and I TLB Thread 3 24 Multi core threads can run on separate cores Integer L1 D Cache D TLB Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM L2 Cache and Control L2 Cache and Control L1 D Cache D TLB BTB and I TLB Thread 2 Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM Decoder Bus Bus Decoder Integer BTB and I TLB Thread 4 25 Combining Multi core and SMT Cores can be SMT enabled or not The different combinations Single core non SMT standard uniprocessor Single core with SMT Multi core non SMT Multi core with SMT our fish machines The number of SMT threads 2 4 or sometimes 8 simultaneous threads Intel calls them hyper threads 26 SMT Dual core all four threads can run concurrently Integer L1 D Cache D TLB Floating Point Schedulers Uop queues Rename Alloc BTB Trace Cache uCode ROM L2


View Full Document

CMU CS 15213 - multicore

Documents in this Course
lecture

lecture

14 pages

lecture

lecture

46 pages

Caches

Caches

9 pages

lecture

lecture

39 pages

Lecture

Lecture

36 pages

Lecture

Lecture

45 pages

Lecture

Lecture

56 pages

lecture

lecture

11 pages

lecture

lecture

9 pages

Lecture

Lecture

36 pages

Lecture

Lecture

37 pages

Exam

Exam

16 pages

Lecture

Lecture

10 pages

Lecture

Lecture

43 pages

Lecture

Lecture

8 pages

Lecture

Lecture

8 pages

Lecture

Lecture

36 pages

Lecture

Lecture

43 pages

Lecture

Lecture

12 pages

Lecture

Lecture

37 pages

Lecture

Lecture

6 pages

Lecture

Lecture

40 pages

coding

coding

2 pages

Exam

Exam

17 pages

Exam

Exam

14 pages

Lecture

Lecture

29 pages

Lecture

Lecture

34 pages

Exam

Exam

11 pages

Lecture

Lecture

9 pages

Lecture

Lecture

37 pages

Lecture

Lecture

36 pages

lecture

lecture

46 pages

Lecture

Lecture

33 pages

Lecture

Lecture

57 pages

Lecture

Lecture

32 pages

Lecture

Lecture

46 pages

Lecture

Lecture

40 pages

Lecture

Lecture

11 pages

Lecture

Lecture

6 pages

Lecture

Lecture

43 pages

Lecture

Lecture

12 pages

Lecture

Lecture

18 pages

Exam

Exam

10 pages

Lecture

Lecture

45 pages

Lecture

Lecture

37 pages

Exam

Exam

24 pages

class09

class09

21 pages

class22

class22

37 pages

class20

class20

30 pages

class27

class27

33 pages

class25

class25

21 pages

class04

class04

31 pages

Lecture

Lecture

59 pages

class01a

class01a

14 pages

class12

class12

45 pages

class29

class29

33 pages

Lecture

Lecture

39 pages

Lecture

Lecture

6 pages

class03

class03

34 pages

lecture

lecture

42 pages

Lecture

Lecture

40 pages

Lecture

Lecture

47 pages

Exam

Exam

19 pages

R06-B

R06-B

25 pages

class17

class17

37 pages

class25

class25

31 pages

Lecture

Lecture

15 pages

final-f06

final-f06

17 pages

Lecture

Lecture

9 pages

lecture

lecture

9 pages

Exam

Exam

15 pages

Lecture

Lecture

22 pages

class11

class11

45 pages

lecture

lecture

50 pages

Linking

Linking

37 pages

Lecture

Lecture

64 pages

Integers

Integers

40 pages

Exam

Exam

11 pages

Lecture

Lecture

37 pages

Lecture

Lecture

44 pages

Lecture

Lecture

37 pages

Lecture

Lecture

9 pages

Lecture

Lecture

37 pages

Lecture

Lecture

45 pages

Final

Final

25 pages

lecture

lecture

9 pages

Lecture

Lecture

30 pages

Lecture

Lecture

16 pages

Final

Final

17 pages

Lecture

Lecture

8 pages

Exam

Exam

11 pages

Lecture

Lecture

47 pages

Lecture

Lecture

9 pages

lecture

lecture

39 pages

Exam

Exam

11 pages

lecture

lecture

41 pages

lecture

lecture

37 pages

Lecture

Lecture

59 pages

Lecture

Lecture

45 pages

Exam 1

Exam 1

18 pages

Lecture

Lecture

41 pages

Lecture

Lecture

32 pages

Lecture

Lecture

30 pages

Lecture

Lecture

9 pages

Lecture

Lecture

9 pages

Lecture

Lecture

15 pages

Lecture

Lecture

11 pages

Lecture

Lecture

9 pages

Lecture

Lecture

34 pages

Lecture

Lecture

40 pages

Lecture

Lecture

4 pages

Lecture

Lecture

46 pages

Lecture

Lecture

8 pages

Lecture

Lecture

65 pages

Lecture

Lecture

38 pages

Lecture

Lecture

35 pages

Lecture

Lecture

8 pages

Lecture

Lecture

34 pages

Lecture

Lecture

8 pages

Exam

Exam

13 pages

Lecture

Lecture

43 pages

Lecture

Lecture

9 pages

Lecture

Lecture

12 pages

Lecture

Lecture

9 pages

Lecture

Lecture

34 pages

Lecture

Lecture

43 pages

Lecture

Lecture

7 pages

Lecture

Lecture

45 pages

Lecture

Lecture

24 pages

Lecture

Lecture

47 pages

Lecture

Lecture

12 pages

Lecture

Lecture

20 pages

Lecture

Lecture

9 pages

Exam

Exam

11 pages

Lecture

Lecture

52 pages

Lecture

Lecture

20 pages

Exam

Exam

11 pages

Lecture

Lecture

35 pages

Lecture

Lecture

47 pages

Lecture

Lecture

18 pages

Lecture

Lecture

30 pages

Lecture

Lecture

59 pages

Lecture

Lecture

37 pages

Lecture

Lecture

22 pages

Lecture

Lecture

35 pages

Exam

Exam

23 pages

Lecture

Lecture

9 pages

Lecture

Lecture

22 pages

class12

class12

32 pages

Lecture

Lecture

8 pages

Lecture

Lecture

39 pages

Lecture

Lecture

44 pages

Lecture

Lecture

38 pages

Lecture

Lecture

69 pages

Lecture

Lecture

41 pages

Lecture

Lecture

12 pages

Lecture

Lecture

52 pages

Lecture

Lecture

59 pages

Lecture

Lecture

39 pages

Lecture

Lecture

83 pages

Lecture

Lecture

59 pages

class01b

class01b

17 pages

Exam

Exam

21 pages

class07

class07

47 pages

Lecture

Lecture

11 pages

Odyssey

Odyssey

18 pages

Lecture

Lecture

6 pages

lecture

lecture

41 pages

lecture

lecture

55 pages

lecture

lecture

52 pages

lecture

lecture

33 pages

lecture

lecture

46 pages

lecture

lecture

55 pages

lecture

lecture

17 pages

lecture

lecture

49 pages

Exam

Exam

17 pages

lecture

lecture

56 pages

Exam 2

Exam 2

16 pages

Exam 2

Exam 2

16 pages

Notes

Notes

37 pages

Lecture

Lecture

40 pages

Lecture

Lecture

36 pages

Lecture

Lecture

43 pages

Lecture

Lecture

25 pages

Exam

Exam

13 pages

Lecture

Lecture

32 pages

Lecture

Lecture

12 pages

Lecture

Lecture

58 pages

Lecture

Lecture

29 pages

Lecture

Lecture

59 pages

Lecture

Lecture

41 pages

Lecture

Lecture

50 pages

Exam

Exam

17 pages

Lecture

Lecture

29 pages

Lecture

Lecture

44 pages

Lecture

Lecture

41 pages

Lecture

Lecture

52 pages

Lecture

Lecture

40 pages

Lecture

Lecture

33 pages

lecture

lecture

10 pages

Lecture

Lecture

27 pages

Lecture

Lecture

29 pages

Lecture

Lecture

39 pages

Lecture

Lecture

9 pages

Lecture

Lecture

29 pages

Lecture

Lecture

8 pages

Lecture

Lecture

43 pages

Lecture

Lecture

43 pages

Lecture

Lecture

75 pages

Lecture

Lecture

55 pages

Exam

Exam

12 pages

Lecture

Lecture

43 pages

Lecture

Lecture

35 pages

lecture

lecture

36 pages

Exam

Exam

33 pages

lecture

lecture

56 pages

lecture

lecture

64 pages

lecture

lecture

8 pages

Exam

Exam

14 pages

Lecture

Lecture

43 pages

Lecture

Lecture

36 pages

lecture

lecture

56 pages

lecture

lecture

75 pages

lecture

lecture

36 pages

Lecture

Lecture

50 pages

Lecture

Lecture

45 pages

Lecture

Lecture

13 pages

Exam

Exam

23 pages

Lecture

Lecture

10 pages

Lecture

Lecture

48 pages

Lecture

Lecture

83 pages

lecture

lecture

57 pages

Lecture

Lecture

33 pages

Lecture

Lecture

39 pages

Lecture

Lecture

33 pages

lecture

lecture

54 pages

Lecture

Lecture

30 pages

Exam

Exam

13 pages

Lecture

Lecture

36 pages

Lecture

Lecture

40 pages

Exam

Exam

17 pages

Lecture

Lecture

9 pages

Exam

Exam

15 pages

Lecture

Lecture

44 pages

Lecture

Lecture

34 pages

Lecture

Lecture

24 pages

Lecture

Lecture

29 pages

class12

class12

43 pages

lecture

lecture

43 pages

class22

class22

22 pages

R06-B

R06-B

25 pages

class01b

class01b

19 pages

lecture

lecture

29 pages

lab1

lab1

8 pages

Caches

Caches

36 pages

lecture

lecture

55 pages

Lecture,

Lecture,

37 pages

Integers

Integers

40 pages

Linking

Linking

38 pages

lecture

lecture

45 pages

Lecture

Lecture

61 pages

Linking

Linking

33 pages

lecture

lecture

40 pages

lecture

lecture

40 pages

Lecture

Lecture

32 pages

lecture

lecture

48 pages

lecture

lecture

44 pages

Exam

Exam

11 pages

Lecture

Lecture

31 pages

Lecture

Lecture

46 pages

Lecture

Lecture

40 pages

Lecture

Lecture

40 pages

Exam

Exam

12 pages

Lecture

Lecture

42 pages

Lecture

Lecture

36 pages

Lecture

Lecture

45 pages

Lecture

Lecture

41 pages

Lecture

Lecture

13 pages

Lecture

Lecture

35 pages

Lecture

Lecture

20 pages

Final

Final

19 pages

Lecture

Lecture

33 pages

Lecture

Lecture

50 pages

Lecture

Lecture

33 pages

Lecture

Lecture

27 pages

Lecture

Lecture

6 pages

Exam

Exam

15 pages

Lecture

Lecture

24 pages

Lecture

Lecture

23 pages

Lecture

Lecture

43 pages

Lecture

Lecture

32 pages

Lecture

Lecture

52 pages

Lecture

Lecture

37 pages

Lecture

Lecture

36 pages

Lecture

Lecture

34 pages

Lecture

Lecture

40 pages

Lecture

Lecture

15 pages

lecture

lecture

21 pages

Lecture

Lecture

58 pages

Lecture

Lecture

49 pages

Lecture

Lecture

36 pages

Lecture

Lecture

11 pages

Lecture

Lecture

12 pages

Lecture

Lecture

58 pages

Lecture

Lecture

33 pages

Exam

Exam

15 pages

Lecture

Lecture

35 pages

Lecture

Lecture

10 pages

Lecture

Lecture

25 pages

Lecture

Lecture

31 pages

Lecture

Lecture

24 pages

Lecture

Lecture

34 pages

Lecture

Lecture

50 pages

lecture

lecture

35 pages

Lecture

Lecture

11 pages

Lecture

Lecture

39 pages

Lecture

Lecture

45 pages

Lecture

Lecture

41 pages

exam1-f05

exam1-f05

11 pages

Lecture

Lecture

4 pages

Lecture

Lecture

17 pages

Exam

Exam

17 pages

malloc()

malloc()

12 pages

Lecture

Lecture

57 pages

Lecture

Lecture

30 pages

Lecture

Lecture

30 pages

Lecture

Lecture

47 pages

Lecture

Lecture

33 pages

Exam

Exam

12 pages

Lecture

Lecture

43 pages

Lectures

Lectures

33 pages

Lecture

Lecture

36 pages

lecture

lecture

33 pages

Exam

Exam

14 pages

Lecture

Lecture

43 pages

Lecture

Lecture

25 pages

Load more
Download multicore
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view multicore and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view multicore and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?