1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.

Slides:



Advertisements
Similar presentations
1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.
Advertisements

Chapter 3 Instruction Set Architecture Advanced Computer Architecture COE 501.
ISA Issues; Performance Considerations. Testing / System Verilog: ECE385.
Computer Abstractions and Technology
The University of Adelaide, School of Computer Science
Chapter1 Fundamental of Computer Design Dr. Bernard Chen Ph.D. University of Central Arkansas.
CS 203 A: Advanced Computer Architecture
1 ECE 570– Advanced Computer Architecture Dr. Patrick Chiang Winter 2013 Tues/Thurs 2-4PMPM.
1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.
Chapter 1 CSF 2009 Computer Performance. Defining Performance Which airplane has the best performance? Chapter 1 — Computer Abstractions and Technology.
S. Barua – CPSC 440 CHAPTER 2 INSTRUCTIONS: LANGUAGE OF THE COMPUTER Goals – To get familiar with.
1 Lecture 2: MIPS Instruction Set Today’s topic:  MIPS instructions Reminder: sign up for the mailing list cs3810 Reminder: set up your CADE accounts.
State Machines Timing Computer Bus Computer Performance Instruction Set Architectures RISC / CISC Machines.
CptS / E E COMPUTER ARCHITECTURE
ISA-2 CSCE430/830 MIPS: Case Study of Instruction Set Architecture CSCE430/830 Computer Architecture Instructor: Hong Jiang Courtesy of Prof. Yifeng Zhu.
1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.
1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.
Lecture 2: Technology Trends and Performance Evaluation Performance definition, benchmark, summarizing performance, Amdahl’s law, and CPI.
Chapter1 Fundamental of Computer Design Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
Lecture 2: Fundamentals of Computer Design Kai Bu
Lecture 1 Overview of Computer Architecture TopicsOverview Readings: Chapter 1 August 24, 2015 CSCE 513 Computer Architecture.
Lecture 03: Fundamentals of Computer Design - Trends and Performance Kai Bu
1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative.
Lecture 02: Fundamentals of Computer Design - Basics Kai Bu
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
The University of Adelaide, School of Computer Science
1 CS/EE 6810: Computer Architecture Class format:  Most lectures on YouTube *BEFORE* class  Use class time for discussions, clarifications, problem-solving,
MS108 Computer System I Lecture 2 Metrics Prof. Xiaoyao Liang 2014/2/28 1.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 1 Computer Abstractions and Technology Sections 1.5 – 1.11.
Advanced Computer Architecture Fundamental of Computer Design Instruction Set Principles and Examples Pipelining:Basic and Intermediate Concepts Memory.
Computer Organization and Design Computer Abstractions and Technology
Computer Architecture CSE 3322 Lecture 2 NO CLASS MON Sept 1 Course WEB SITE crystal.uta.edu/~jpatters.
Lecture 11: 10/1/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
CS 211: Computer Architecture Lecture 2 Instructor: Morris Lancaster.
1 Lecture 2: Performance, MIPS ISA Today’s topics:  Performance equations  MIPS instructions Reminder: canvas and class webpage:
September 10 Performance Read 3.1 through 3.4 for Wednesday Only 3 classes before 1 st Exam!
DR. SIMING LIU SPRING 2016 COMPUTER SCIENCE AND ENGINEERING UNIVERSITY OF NEVADA, RENO Session 7, 8 Instruction Set Architecture.
1 دیباچه انسهانهای دست دوم بررسی نمی کنند، تکرار می کنند؛ انجام نمی دهند، ادای انجام دادن را در می آورند؛ خلق نمی کنند، نمایش می دهند؛ به توان خود و دیگران.
CHAPTER 2 Instruction Set Architecture 3/21/
CS203 – Advanced Computer Architecture
CS203 – Advanced Computer Architecture Performance Evaluation.
New-School Machine Structures Parallel Requests Assigned to computer e.g., Search “Katz” Parallel Threads Assigned to core e.g., Lookup, Ads Parallel Instructions.
Chapter 1 Performance & Technology Trends. Outline What is computer architecture? Performance What is performance: latency (response time), throughput.
Lecture 13 Parallel Processing. 2 What is Parallel Computing? Traditionally software has been written for serial computation. Parallel computing is the.
CS203 – Advanced Computer Architecture
What is *Computer Architecture*
CS203 – Advanced Computer Architecture
Lecture 3: MIPS Instruction Set
A Closer Look at Instruction Set Architectures
Chapter1 Fundamental of Computer Design
Morgan Kaufmann Publishers
COSC 3406: Computer Organization
Morgan Kaufmann Publishers
The University of Adelaide, School of Computer Science
The University of Adelaide, School of Computer Science
The University of Adelaide, School of Computer Science
Instructions - Type and Format
The University of Adelaide, School of Computer Science
ECE232: Hardware Organization and Design
September 24 Test 1 review More programming
Chapter 1 Introduction.
The University of Adelaide, School of Computer Science
September 17 Test 1 pre(re)view Fang-Yi will demonstrate Spim
Computer Evolution and Performance
Lecture 3: MIPS Instruction Set
COMS 361 Computer Organization
The University of Adelaide, School of Computer Science
The University of Adelaide, School of Computer Science
Utsunomiya University
Presentation transcript:

1 Copyright © 2012, Elsevier Inc. All rights reserved. Chapter 1 Fundamentals of Quantitative Design and Analysis Computer Architecture A Quantitative Approach, Fifth Edition

2 Copyright © 2012, Elsevier Inc. All rights reserved. Computer Technology Performance improvements: Improvements in semiconductor technology Feature size, clock speed Improvements in computer architectures Enabled by HLL compilers, UNIX Lead to RISC architectures Together have enabled: Lightweight computers Productivity-based managed/interpreted programming languages SaaS, Virtualization, Cloud Applications evolution: Speech, sound, images, video, “augmented/extended reality”, “big data” Introduction

3 Copyright © 2012, Elsevier Inc. All rights reserved. Single Processor Performance Introduction RISC Move to multi-processor

4 Copyright © 2012, Elsevier Inc. All rights reserved. Current Trends in Architecture Cannot continue to leverage Instruction-Level parallelism (ILP) Single processor performance improvement ended in 2003 New models for performance: Data-level parallelism (DLP) Thread-level parallelism (TLP) Request-level parallelism (RLP) These require explicit restructuring of the application Introduction

5 Copyright © 2012, Elsevier Inc. All rights reserved. Classes of Computers Personal Mobile Device (PMD) e.g. smart phones, tablet computers (1.8 billion sold 2010) Emphasis on energy efficiency and real-time Desktop Computing Emphasis on price-performance (0.35 billion) Servers Emphasis on availability (very costly downtime!), scalability, throughput (20 million) Clusters / Warehouse Scale Computers Used for “Software as a Service (SaaS)”, PaaS, IaaS, etc. Emphasis on availability ($6M/hour-downtime at Amazon.com!) and price-performance (power=80% of TCO!) Sub-class: Supercomputers, emphasis: floating-point performance and fast internal networks, and big data analytics Embedded Computers (19 billion in 2010) Emphasis: price Classes of Computers

6 Copyright © 2012, Elsevier Inc. All rights reserved. Parallelism Classes of parallelism in applications: Data-Level Parallelism (DLP) Task-Level Parallelism (TLP) Classes of architectural parallelism: Instruction-Level Parallelism (ILP) Vector architectures/Graphic Processor Units (GPUs) Thread-Level Parallelism Request-Level Parallelism Classes of Computers

7 Copyright © 2012, Elsevier Inc. All rights reserved. Flynn’s Taxonomy Single instruction stream, single data stream (SISD) Single instruction stream, multiple data streams (SIMD) Vector architectures Multimedia extensions Graphics processor units Multiple instruction streams, single data stream (MISD) No commercial implementation Multiple instruction streams, multiple data streams (MIMD) Tightly-coupled MIMD Loosely-coupled MIMD Classes of Computers

8 Copyright © 2012, Elsevier Inc. All rights reserved. Defining Computer Architecture “Old” view of computer architecture: Instruction Set Architecture (ISA) design i.e. decisions regarding:decisions regarding registers, memory addressing, addressing modes, instruction operands, available operations, control flow instructions, instruction encoding “Real” computer architecture: Specific requirements of the target machine Design to maximize performance within constraints: cost, power, and availability Includes ISA, microarchitecture, hardware Defining Computer Architecture

9 Copyright © 2012, Elsevier Inc. All rights reserved. Trends in Technology Integrated circuit technology Transistor density: 35%/year Die size: 10-20%/year Integration overall: 40-55%/year DRAM capacity: 25-40%/year (slowing) Flash capacity: 50-60%/year 15-20X cheaper/bit than DRAM Magnetic disk technology: 40%/year 15-25X cheaper/bit then Flash X cheaper/bit than DRAM Trends in Technology

10 Copyright © 2012, Elsevier Inc. All rights reserved. Bandwidth and Latency Bandwidth or throughput Total work done in a given time 10,000-25,000X improvement for processors over the 1st milestone X improvement for memory and disks over the 1st milestone Latency or response time Time between start and completion of an event 30-80X improvement for processors over the 1st milestone 6-8X improvement for memory and disks over the 1st milestone Trends in Technology

11 Copyright © 2012, Elsevier Inc. All rights reserved. Bandwidth and Latency Log-log plot of bandwidth and latency milestones Trends in Technology

12 Copyright © 2012, Elsevier Inc. All rights reserved. Transistors and Wires Feature size Minimum size of transistor or wire in x or y dimension 10 microns in 1971 to.032 microns in 2011 Transistor performance scales linearly Wire delay does not improve with feature size! Integration density scales quadratically Linear performance and quadratic density growth present a challenge and opportunity, creating the need for computer architect! Trends in Technology

13 Copyright © 2012, Elsevier Inc. All rights reserved. Power and Energy Problem: Get power in, get power out Thermal Design Power (TDP) Characterizes sustained power consumption Used as target for power supply and cooling system Lower than peak power, higher than average power consumption Clock rate can be reduced dynamically to limit power consumption Energy per task is often a better measurement Trends in Power and Energy

14 Copyright © 2012, Elsevier Inc. All rights reserved. Dynamic Energy and Power Dynamic energy Transistor switch from 0 -> 1 or 1 -> 0 ½ x Capacitive load x Voltage 2 Dynamic power ½ x Capacitive load x Voltage 2 x Frequency switched Reducing clock rate reduces power, not energy Trends in Power and Energy

15 Copyright © 2012, Elsevier Inc. All rights reserved. Power Intel consumed ~ 2 W 3.3 GHz Intel Core i7 consumes 130 W Heat must be dissipated from 1.5 x 1.5 cm chip This is the limit of what can be cooled by air Trends in Power and Energy

16 Copyright © 2012, Elsevier Inc. All rights reserved. Reducing Power Techniques for reducing power: Do nothing well Dynamic Voltage-Frequency Scaling Low power state for DRAM, disks Overclocking, turning off cores Trends in Power and Energy

17 Copyright © 2012, Elsevier Inc. All rights reserved. Static Power Static power consumption Current static x Voltage Scales with number of transistors To reduce: power gating Race-to-halt The new primary evaluation for design innovation Tasks per joule Performance per watt Trends in Power and Energy

18 Copyright © 2012, Elsevier Inc. All rights reserved. Trends in Cost Cost driven down by learning curve Yield DRAM: price closely tracks cost Microprocessors: price depends on volume 10% less for each doubling of volume Trends in Cost

19 Copyright © 2012, Elsevier Inc. All rights reserved. Integrated Circuit Cost Integrated circuit Bose-Einstein formula: Defects per unit area = defects per square cm (2010) N = process-complexity factor = (40 nm, 2010) The manufacturing process dictates the wafer cost, wafer yield and defects per unit area The architect’s design affects the die area, which in turn affects the defects and cost per die Trends in Cost

20 Copyright © 2012, Elsevier Inc. All rights reserved. Dependability Systems alternate between two states of service with respect to SLA/SLO: 1. Service accomplishment, where service is delivered as specified by SLA 2. Service interruption, where the delivered service is different from the SLA Module reliability: “failure(F)=transition from 1 to 2” and “repair(R)=transition from 2 to 1” Mean time to failure (MTTF) Mean time to repair (MTTR) Mean time between failures (MTBF) = MTTF + MTTR Availability = MTTF / MTBF Dependability

21 Copyright © 2012, Elsevier Inc. All rights reserved. Measuring Performance Typical performance metrics: Response time Throughput Speedup of X relative to Y Execution time Y / Execution time X Execution time Wall clock time: includes all system overheads CPU time: only computation time Benchmarks Kernels (e.g. matrix multiply) Toy programs (e.g. sorting) Synthetic benchmarks (e.g. Dhrystone) Benchmark suites (e.g. SPEC06fp, TPC-C) Measuring Performance

22 Copyright © 2012, Elsevier Inc. All rights reserved. Principles of Computer Design Take Advantage of Parallelism e.g. multiple processors, disks, memory banks, pipelining, multiple functional units Principle of Locality Reuse of data and instructions Focus on the Common Case Amdahl’s Law Principles

23 Copyright © 2012, Elsevier Inc. All rights reserved. Principles of Computer Design The Processor Performance Equation Principles

24 Copyright © 2012, Elsevier Inc. All rights reserved. Principles of Computer Design Principles Different instruction types having different CPIs

25 Chapter 1 Review & Examples Copyright © 2012, Elsevier Inc. All rights reserved.

ISA CSCE430/830 Instruction Set Architecture (ISA) Serves as an interface between software and hardware. Provides a mechanism by which the software tells the hardware what should be done. instruction set High level language code : C, C++, Java, Fortran, hardware Assembly language code: architecture specific statements Machine language code: architecture specific bit patterns software compiler assembler

ISA CSCE430/830 Instruction Set Design Issues Instruction set design issues include: –Where are operands stored? »registers, memory, stack, accumulator –How many explicit operands are there? »0, 1, 2, or 3 –How is the operand location specified? »register, immediate, indirect,... –What type & size of operands are supported? »byte, int, float, double, string, vector... –What operations are supported? »add, sub, mul, move, compare...

ISA CSCE430/830 Classifying ISAs Accumulator (before 1960, e.g. 68HC11 ): 1-addressadd Aacc  acc + mem[A] Stack (1960s to 1970s): 0-addressaddtos  tos + next Memory-Memory (1970s to 1980s): 2-addressadd A, Bmem[A]  mem[A] + mem[B] 3-addressadd A, B, C mem[A]  mem[B] + mem[C] Register-Memory (1970s to present, e.g. 80x86 ): 2-addressadd R1, AR1  R1 + mem[A] load R1, AR1  mem[A] Register-Register (Load/Store, RISC) (1960s to present, e.g. MIPS ): 3-addressadd R1, R2, R3R1  R2 + R3 load R1, R2R1  mem[R2] store R1, R2mem[R1]  R2

ISA CSCE430/830 Operand Locations in Four ISA Classes GPR

ISA CSCE430/830 Code Sequence C = A + B for Four Instruction Sets StackAccumulatorRegister (register-memory) Register (load- store) Push A Push B Add Pop C Load A Add B Store C Load R1, A Add R1, B Store C, R1 Load R1,A Load R2, B Add R3, R1, R2 Store C, R3 memory acc = acc + mem[C] R1 = R1 + mem[C] R3 = R1 + R2

ISA CSCE430/830 Types of Addressing Modes (VAX) Addressing ModeExampleAction 1.Register directAdd R4, R3R4 <- R4 + R3 2.Immediate Add R4, #3R4 <- R DisplacementAdd R4, 100(R1)R4 <- R4 + M[100 + R1] 4.Register indirect Add R4, (R1)R4 <- R4 + M[R1] 5.IndexedAdd R4, (R1 + R2)R4 <- R4 + M[R1 + R2] 6.Direct Add R4, (1000)R4 <- R4 + M[1000] 7.Memory IndirectAdd <- R4 + M[M[R3]] 8.AutoincrementAdd R4, (R2)+R4 <- R4 + M[R2] R2 <- R2 + d 9.AutodecrementAdd R4, (R2)-R4 <- R4 + M[R2] R2 <- R2 - d 10. ScaledAdd R4, 100(R2)[R3]R4 <- R4 + M[100 + R2 + R3*d] Studies by [Clark and Emer] indicate that modes 1-4 account for 93% of all operands on the VAX.

ISA CSCE430/830 Types of Operations Arithmetic and Logic:AND, ADD Data Transfer:MOVE, LOAD, STORE ControlBRANCH, JUMP, CALL SystemOS CALL, VM Floating PointADDF, MULF, DIVF DecimalADDD, CONVERT StringMOVE, COMPARE Graphics(DE)COMPRESS

ISA-2 CSCE430/830 MIPS Instructions All instructions exactly 32 bits wide Different formats for different purposes Similarities in formats ease implementation oprsrtoffset 6 bits5 bits 16 bits oprsrtrdfunctshamt 6 bits5 bits 6 bits R-Format I-Format opaddress 6 bits26 bits J-Format

ISA-2 CSCE430/830 MIPS Instruction Types Arithmetic & Logical - manipulate data in registers add $s1, $s2, $s3$s1 = $s2 + $s3 or $s3, $s4, $s5$s3 = $s4 OR $s5 Data Transfer - move register data to/from memory  load & store lw $s1, 100($s2)$s1 = Memory[$s ] sw $s1, 100($s2)Memory[$s ] = $s1 Branch - alter program flow beq $s1, $s2, 25if ($s1==$s1) PC = PC *25 else PC = PC + 4

ISA-2 CSCE430/830 MIPS Arithmetic & Logical Instructions Instruction usage (assembly) add dest, src1, src2dest=src1 + src2 sub dest, src1, src2dest=src1 - src2 and dest, src1, src2dest=src1 AND src2 Instruction characteristics –Always 3 operands: destination + 2 sources –Operand order is fixed –Operands are always general purpose registers Design Principles: –Design Principle 1: Simplicity favors regularity –Design Principle 2: Smaller is faster

ISA-2 CSCE430/830 Arithmetic & Logical Instructions - Binary Representation Used for arithmetic, logical, shift instructions –op: Basic operation of the instruction (opcode) –rs: first register source operand –rt: second register source operand –rd: register destination operand –shamt: shift amount (more about this later) –funct: function - specific type of operation Also called “R-Format” or “R-Type” Instructions oprsrtrdfunctshamt 6 bits5 bits 6 bits 031

ISA-2 CSCE430/830 oprsrtrdfunctshamt 6 bits5 bits 6 bits Decimal Binary Arithmetic & Logical Instructions - Binary Representation Example Machine language for add $8, $17, $18 See reference card for op, funct values

ISA-2 CSCE430/830 MIPS Data Transfer Instructions Transfer data between registers and memory Instruction format (assembly) lw $dest, offset($addr)load word sw $src, offset($addr)store word Uses: –Accessing a variable in main memory –Accessing an array element

ISA-2 CSCE430/830 Review: Chapter 1 Classes of Computers and Classes of Parallelism Technology Trend Dependability Performance Measurements and Benchmarks Principles

ISA-2 CSCE430/830 5 Classes of Computers Personal Mobile Devices –Cost is its primary concern –Energy, media performance, and responsiveness Desktop Computing –Price-Performance is its primary concern Servers –Availability, Scalability, and Throughput Clusters/warehouse-scale computers –Price-Performance, Energy Embedded Computer –Price

ISA-2 CSCE430/830 Classes of Parallelism & Architectures Data-Level Parallelism –Data items can be operated on at the same time Task-Level Parallelism –Tasks can operate independently and largely in parallel Instruction-Level Parallelism: data-level para. –Pipelining, speculative execution Vector Architectures & GPU: data-level para. –A single instruction operates a collection of data in para. Thread-Level Parallelism: either data-level para. or task-level para. –Exploits parallelism via parallel threads Request-Level Parallelism: task-level para. –Exploits parallelism via decoupled tasks

ISA-2 CSCE430/830 4 ways for hardware to support parallelism Single Instruction stream, Single Data stream –SISD Single Instruction stream, Multiple Data streams –SIMD, e.g., GPU, targets data-level parallelism Multiple Instruction streams, Single Data stream –MISD, no commercial multiprocessor of this type Multiple Instruction streams, Multiple Data streams –MIMD, e.g., multi-core processors, targets task-level parallelism

ISA-2 CSCE430/830 Trend in Technology Integrated Circuit (IC) logic technology –Moore’s Law: a growth rate in transistor count on a chip of about 40%-55% per year, or doubling every 18 or 24 months. Semiconductor DRAM –In 2011, a growth rate in capacity: 25%-40% per year Flash –A growth rate in capacity: 50%-60% per year Magnetic Disk –Since 2004, it has dropped back to 40% per year.

ISA-2 CSCE430/830 Trend in Performance Bandwidth vs. Latency –The improvement on Bandwidth is much significant than that on Latency.

ISA-2 CSCE430/830 Growth in Processor Performance RISC Move to multi-processor Parallelism: via Pipelining Locality: using Cache Hurdle: Power Wall Lack: Instruction- level Parallelism

ISA-2 CSCE430/830 An example of Intel 486 CPU released in 1992 , 66MHz, w/ L2 Cache , W A80486DX2-66.html

ISA-2 CSCE430/830 A CPU fan for Intel 486 CPU fan.aspx

ISA-2 CSCE430/830 An example of Intel Pentium 4 CPU released in 2002, 2.8GHz, w/ 512KB Cache, 68.4W s.php?item_id=146&category_id=61

ISA-2 CSCE430/830 A typical CPU fan for Intel Pentium 4

ISA-2 CSCE430/830 A special CPU fan for gaming/multimedia users Cooling/Asus-Star-Ice-CPU-Cooler-Review

ISA-2 CSCE430/830 Trend in Power and Energy in IC Energy dynamic – ½ X Capacitive Load X Voltage 2 Power dynamic – ½ X Capacitive Load X Voltage 2 X Freq. switched Example –Intel MHz Voltage: 5V –Intel Pentium 4 2.8GHz Voltage: 1.5V –Intel Core 990x 3.4GHz Voltage: V Improving Energy Efficiency –Do nothing well; Dynamic Voltage-Frequency Scaling(DVFS); Design for typical case; Overclocking Power static – Current static X Voltage

ISA-2 CSCE430/830 Dependability Service Accomplishment & Service Interruption Transitions between 2 states: Failure & Restoration Measurements –Reliability: a measure of the continuous service accomplishment from a reference initial instant. »MTTF: Mean time to failure »FIT: failures per billion hours, 1/MTTF X 10 9 »MTTR: Mean time to repair »MTBF: Mean time between failures = MTTF + MTTR –Availability: a measure of the service accomplishment with respect to the alternation between the two states. »MTTF/(MTTF+MTTR) »Upper bound: 100%

ISA-2 CSCE430/830 Performance Measurements and Benchmarks Metrics –Throughput: a total amount of work done in a given time –Response time (Execution time): the time between the start and the completion of an event Speedup of X relative to Y –Execution time Y / Execution time X Execution time –Wall clock time: a latency to complete a task –CPU time: only computation time Benchmarks –Kernels, Toy programs, Synthetic benchmarks –Benchmark suites: SPEC [CPU] & TPC [Transaction Processing] –SpecRatio = Execution Time reference / Execution Time target

ISA-2 CSCE430/830 Design Principles Take Advantage of Parallelism Principle of Locality Focus on the Common Case –Amdahl’s Law –Upper bound of the speedup: ?

ISA-2 CSCE430/830 Example: Laundry Room Washing MachineDrying MachineClean LaundryDirty Laundry 30 minutes washing90 minutes drying Total Execution Time: = 120 minutes Washing Portion: 30/120 = ¼ Drying Portion: 90/120 = ¾

ISA-2 CSCE430/830 If we can have two drying machines Washing Machine2 Drying MachinesClean LaundryDirty Laundry 30 minutes washing 90/2=45 minutes drying

ISA-2 CSCE430/830 Speedup: (30+90)/(30+45)=1.6 Washing Machine2 Drying MachinesClean LaundryDirty Laundry 30 minutes washing 90/2=45 minutes drying

ISA-2 CSCE430/830 If we can have unlimited drying machines Washing Machine∞ Drying MachinesClean LaundryDirty Laundry 30 minutes washing ? minutes drying

ISA-2 CSCE430/830 Speedup: (30+90)/(30+0)=4 Washing Machine∞ Drying MachinesClean LaundryDirty Laundry 30 minutes washing 90/∞ ≈ 0 minutes drying

ISA-2 CSCE430/830 Design Principles Take Advantage of Parallelism Principle of Locality Focus on the Common Case –Amdahl’s Law –Upper bound of the speedup: » 1 / (1 - Fraction enhanced )

ISA-2 CSCE430/830 Exercise 1 If the new processor is 10 times faster than the original process, and we assume that the original processor is busy with computation 40% of the time and is waiting for I/O 60% of the time, what is the overall speedup gained by incorporating the enhancement? Fraction enhanced = 0.4, Speedup enhanced = 10 Speedup overall = 1/( /10) = 1.56 What is the upper bound of the overall speedup? Upper bound = 1/0.6 = 1.67

ISA-2 CSCE430/830 Exercise 2 In a disk subsystem: –10 disks, each rated at 1,000,000-hour MTTF –1 ATA controller, 500,000-hour MTTF –1 power supply, 200,000-hour MTTF –1 fan, 200,000-hour MTTF –1 ATA cable, 1,000,000-hour MTTF Assuming the lifetimes are exponentially distributed and that failures are independent, compute the MTTF of the system as a whole

ISA-2 CSCE430/830 Exercise 2 Because the overall failure rate of the collection is the sum of the failure rates of the modules, the failure rate of the system –= 10*(1/1,000,000) + 1/500, /200, /200, /1,000,000 –= 23/1,000,000 or 23,000 FIT Because MTTF is the inverse of the failure rate –MTTF system = 1/(23/1,000,000) = 43,500 hours