computer architecture
play

Computer Architecture An Introduction Virendra Singh Associate - PowerPoint PPT Presentation

Computer Architecture An Introduction Virendra Singh Associate Professor Computer Architecture and Dependable Systems Lab Department of Electrical Engineering Indian Institute of Technology Bombay http://www.ee.iitb.ac.in/~viren/ E-mail:


  1. Computer Architecture An Introduction Virendra Singh Associate Professor Computer Architecture and Dependable Systems Lab Department of Electrical Engineering Indian Institute of Technology Bombay http://www.ee.iitb.ac.in/~viren/ E-mail: viren@ee.iitb.ac.in EE-717/453:Advance Computing for Electrical Engineers Lecture 14 (05 Sep 2013) CADSL

  2. Computer Architecture Firefox, MS Excel Windows 7 Applications Visual C++ x86 Machine Computer Primitives Architecture Von Neumann Machine Technology Logic Gates & Memory Transistors & Devices Quantum Physics • Rely on abstraction layers to manage complexity CADSL 05 Sep 2013 EE-717/453@IITB 2

  3. Running Program on Processor Time Processor Performance = --------------- Program Instruction = X s Time Instructio n Program (code size) Architecture Compiler Designer CADSL 05 Sep 2013 EE-717/453@IITB 3

  4. Computer Architecture • Instruction Set Architecture (IBM 360) – … the attributes of a [computing] system as seen by the programmer. I.e. the conceptual structure and functional behavior, as distinct from the organization of the data flows and controls, the logic design, and the physical implementation. -- Amdahl, Blaaw, & Brooks, 1964 CADSL 05 Sep 2013 EE-717/453@IITB 4

  5. Iron Law • Instructions/Program – Instructions executed, not static code size – Determined by algorithm, compiler, ISA CADSL 05 Sep 2013 EE-717/453@IITB 5

  6. Running Program on Processor Time Processor Performance = --------------- Program Instruction Time = X X s Cycles Instructio Cycl n Program e (code size) (CPI) Architecture --> Implementation Compiler Designer Processor Designer CADSL 05 Sep 2013 EE-717/453@IITB 6

  7. Iron Law • Instructions/Program – Instructions executed, not static code size – Determined by algorithm, compiler, ISA • Cycles/Instruction – Determined by ISA and CPU organization – Overlap among instructions reduces this term CADSL 05 Sep 2013 EE-717/453@IITB 7

  8. Running Program on Processor Time Processor Performance = --------------- Program Instruction Time = X X s Cycles Instructio Cycl n Program e (code (cycle size) (CPI) time) Architecture --> Implementation --> Realization ompiler Designer Processor Designer Chip Designer CADSL 05 Sep 2013 EE-717/453@IITB 8

  9. Iron Law • Instructions/Program – Instructions executed, not static code size – Determined by algorithm, compiler, ISA • Cycles/Instruction – Determined by ISA and CPU organization – Overlap among instructions reduces this term • Time/cycle – Determined by technology, organization, clever circuit design CADSL 05 Sep 2013 EE-717/453@IITB 9

  10. Computer Architecture’s Changing Definition • 1950s to 1960s: Computer Architecture Course = Computer Arithmetic • 1970s to mid 1980s: Computer Architecture Course = Instruction Set Design, especially ISA appropriate for compilers • 1990s onwards: Computer Architecture Course = Design of CPU (Processor Microarchitecture), memory system, I/O system, Multiprocessors CADSL 10 Aug 2013 virendra@Raisoni 10

  11. Computer Architecture • Exercise in engineering tradeoff analysis – Find the fastest/cheapest/power-efficient/etc. solution – Optimization problem with 100s of variables • All the variables are changing – At non-uniform rates – With inflection points • Two high-level effects: – Technology push – Application Pull CADSL 05 Sep 2013 EE-717/453@IITB 11

  12. Technology • Technology advances at astounding rate – 19th century: attempts to build mechanical computers – Early 20th century: mechanical counting systems (cash registers, etc.) – Mid 20th century: vacuum tubes as switches – Since: transistors, integrated circuits • 1965: Moore’s law [Gordon Moore] – Predicted doubling of IC capacity every 18 months – Has held and will continue to hold • Drives functionality, performance, cost – Exponential improvement for 40+ years CADSL 05 Sep 2013 EE-717/453@IITB 12

  13. Technology Push • What do these two intervals have in common? – 1776-2011 (235 years) • Answer: Equal progress in processor speed! – 2011-2013 (2 years) • The power of exponential growth! • Driven by Moore’s Law ● Devices per chip doubles every 18-24 months • Computer architects turn additional resources into ● Speed ● Power savings ● Functionality CADSL 05 Sep 2013 EE-717/453@IITB 13

  14. Application Pull • Corollary to Moore’s Law: Cost halves every two years In a decade you can buy a computer for less than its sales tax today. –Jim Gray  Computers cost-effective for – National security – weapons design – Enterprise computing – banking – Departmental computing – computer-aided design – Personal computer – spreadsheets, email, web – Mobile computing – GPS, location-aware, ubiquitous CADSL 05 Sep 2013 EE-717/453@IITB 14

  15. Application Pull • What about the future? – E.g. weather forecasting computational demand • Must dream up applications that are not cost- effective today – Virtual reality, telepresence – Web agents, social networking – Wireless, location-aware – Proactive (beyond interactive) w/ sensors – Recognition/Mining/Synthesis (RMS) – ??? • This is your job! CADSL 05 Sep 2013 EE-717/453@IITB 15

  16. Microprocessor Designs CADSL 10 Aug 2013 virendra@Raisoni 16

  17. Trends • Moore’s Law for device integration • Chip power consumption • Single-thread performance trend [source: Intel] CADSL 05 Sep 2013 EE-717/453@IITB 17

  18. Performance and Cost  Which of the following airplanes has the best performance? Airplane Passengers Range (mi) Speed (mph) Boeing 737-100 101 630 598 Boeing 747 470 4150 610 BAC/Sud Concorde 132 4000 1350 Douglas DC-8-50 146 8720 544  How much faster is the Concorde vs. the 747?  How much bigger is the 747 vs. DC-8? CADSL 05 Sep 2013 EE-717/453@IITB 18

  19. Performance and Cost • Which computer is fastest? • Not so simple – Scientific simulation – FP performance – Program development – Integer performance – Database workload – Memory, I/O CADSL 05 Sep 2013 EE-717/453@IITB 19

  20. Performance of Computers • Want to buy the fastest computer for what you want to do? – Workload is all-important – Correct measurement and analysis  Want to design the fastest computer for what the customer wants to pay? – Cost is an important criterion CADSL 05 Sep 2013 EE-717/453@IITB 20

  21. Defining Performance • What is important to whom? • Computer system user – Minimize elapsed time for program = time_end – time_start – Called response time  Computer center manager – Maximize completion rate = #jobs/second – Called throughput CADSL 05 Sep 2013 EE-717/453@IITB 21

  22. Response Time vs. Throughput • Is throughput = 1/av. response time? – Only if NO overlap – Otherwise, throughput > 1/av. response time – E.g. a lunch buffet – assume 5 entrees – Each person takes 2 minutes/entrée – Throughput is 1 person every 2 minutes – BUT time to fill up tray is 10 minutes – Why and what would the throughput be otherwise? ● 5 people simultaneously filling tray (overlap) ● Without overlap, throughput = 1/10 CADSL 05 Sep 2013 EE-717/453@IITB 22

  23. What is Performance for us? • For computer architects – CPU time = time spent running a program  Intuitively, bigger should be faster, so: – Performance = 1/X time, where X is response, CPU execution, etc.  Elapsed time = CPU time + I/O wait  We will concentrate on CPU time CADSL 05 Sep 2013 EE-717/453@IITB 23

  24. Improve Performance • Improve – response time or – throughput? • Faster CPU [Faster is better – Scale up] ● Helps both 1 and 2 • Add more CPUs [More is better – Scale out] ● Helps 2 and perhaps 1 due to less queueing CADSL 05 Sep 2013 EE-717/453@IITB 24

  25. Performance Comparison • Machine A is n times faster than machine B iff – perf(A)/perf(B) = time(B)/time(A) = n  Machine A is x% faster than machine B iff – perf(A)/perf(B) = time(B)/time(A) = 1 + x/100  E.g. time(A) = 10s, time(B) = 15s – 15/10 = 1.5 => A is 1.5 times faster than B – 15/10 = 1.5 => A is 50% faster than B CADSL 05 Sep 2013 EE-717/453@IITB 25

  26. Breaking Down Performance • A program is broken into instructions – H/W is aware of instructions, not programs  At lower level, H/W breaks instructions into cycles – Lower level state machines change state every cycle  For example: – 1GHz Snapdragon runs 1000M cycles/sec, 1 cycle = 1ns – 2.5GHz Core i7 runs 2.5G cycles/sec, 1 cycle = 0.25ns CADSL 05 Sep 2013 EE-717/453@IITB 26

  27. Other Metrics • MIPS and MFLOPS • MIPS = instruction count/(execution time x 106) = clock rate/(CPI x 106) • But MIPS has serious shortcomings CADSL 05 Sep 2013 EE-717/453@IITB 27

  28. Problems with MIPS • Without FP hardware, an FP op may take 50 single-cycle instructions • With FP hardware, only one 2-cycle instruction  Thus, adding FP hardware: ● CPI increases (why?) 50/50 => 2/1 ● Instructions/program 50 => 1 decreases (why?) ● Total execution time 50 => 2 decreases 50 MIPS => 2  BUT, MIPS gets worse! MIPS CADSL 05 Sep 2013 EE-717/453@IITB 28

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend