1 / 14

COSC 4349 and 5349 Computer Architecture

COSC 4349 and 5349 Computer Architecture Fundamentals of Computer Design (Part 4) Dr. Lappoon R. Tang Overview Principles of Computer Design What does it mean to use a quantitative approach to implementing these principles? Amdahl’s Law Readings Section 1.9

LionelDale
Download Presentation

COSC 4349 and 5349 Computer Architecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COSC 4349 and 5349Computer Architecture Fundamentals of Computer Design (Part 4) Dr. Lappoon R. Tang

  2. Overview • Principles of Computer Design • What does it mean to use a quantitative approach to implementing these principles? • Amdahl’s Law

  3. Readings • Section 1.9 • Skim thru “Processor Performance Equation”

  4. Principles of Computer Design • Principle of Parallelism • Idea: Exploit parallelism, you get the tremendous speedup and save your time for party over the weekend • Ch. 2  • Principle of Locality • Idea: You fetch your stuffs close to where you just put them • Ch. 5  • Principle of Optimizing the Common Case • Idea: Live close to where you most frequently visit if you want to save gas money • This chapter, right here 

  5. Quantitative Principles of Computer Design Put the ideas in the previous slide into Mathematical equations and you get a precise model in each principle for: • performance evaluation • guidingyour design of a computer system

  6. Amdahl’s Law: Scenario Scenario: You have a computer system. One day an apple dropped on your head but did not kill you and instead this idea for improving performance emerged. However, the enhancement can only be used for a fraction of overall execution time Q: How much actual speedup do we have in the computer system if we employ this enhancement whenever possible?

  7. Equivalently: Amdahl’s Law: Speedup Example: Suppose I can over-clock my CPU to enhance its performance. When my CPU is over-clocked, execution time on my program1.c is 40 secs. When it is not over-clocked, execution time on program1.c is 80 secs. Speedup = 80/40 = 2 (i.e. with the enhancement, my CPU runs 2x as fast)

  8. Amdahl’s Law: Fractionenhanced • Fractionenhanced is the fraction of time enhancement can be utilized in the entire (original) execution time (without enhancement) • Example: If my CPU can be over-clocked for 2 hours straight within a 4 hour period, Fractionenhanced = 2/4 = 0.5 (i.e. 50%) • Note: Fractionenhanced =< 1

  9. Amdahl’s Law: Speedupenhanced • Speedupenhanced measures how much faster the task would run if the enhancement is used for the entire program • Exactly the same definition as Speedup  • Example: With enhancement turned on, my program completes in 2 seconds; otherwise, 4 seconds. Speedupenhanced = 4/2 = 2 (i.e. 2x faster with enhancement)

  10. Execution TimeOld 20 secs (66.7%) 10 secs (33.3%) Duration in which enhancement can be applied Duration in which enhancement cannot be applied But not applied 20 secs 5 secs Duration in which enhancement cannot be applied Duration in which enhancement can be applied Applied Execution TimeNew Speedupenhanced = ? Amdahl’s Law: Execution timenew Q: If we know the execution time without enhancement, Fractionenhanced and Speedupenhanced, how do we figure out the new execution time with enhancement? Answer: Speedupenhanced = 2

  11. Total execution time NOT using enhancement Total execution time when enhancement Is used Amdahl’s Law: Execution timenew

  12. Amdahl’s Law:Execution timenew

  13. Amdahl’s Law:Previous Example 10 secs 20 secs Speedup

  14. Amdahl’s Law:Speedupoverall

More Related