Organização de Computadores - Aula 02 - Desempenho de Computadores

Share

Summary

This video discusses computer performance, defining what it means, the metrics used to measure it (response time and throughput), and the factors that influence it, specifically focusing on hardware. It elaborates on how to calculate execution time and improve performance by optimizing instruction count, cycles per instruction, and clock rate, finally introducing Amdahl's Law.

Highlights

Defining Performance and Metrics
00:00:21

The video begins by questioning the meaning of "performance" in the context of computers, similar to comparing different airplanes where the criteria for "better" depend on the goal (e.g., passenger capacity vs. speed). It establishes that defining performance requires specific metrics. For computers, key metrics are response time (execution time for a task) and throughput (number of tasks completed per unit of time). Users often prioritize response time, while system owners (like a bank) might prioritize throughput.

Impact of Performance Improvement
00:04:01

The discussion moves to the impact of performance improvements. Upgrading a processor (e.g., from an Intel 286 to 386) reduces execution time due to technological advancements. However, for a sequential task like Bubble sort, a multi-core processor (like an i7) might not offer significant gains because the task isn't parallelized. Conversely, for tasks with multiple simultaneous transactions, like a bank server, more cores greatly improve throughput (system response capacity).

Hardware Factors and Performance Calculation
00:06:14

The video highlights that performance is closely related to hardware, specifically the Instruction Set Architecture (ISA). To effectively calculate execution time, one needs to understand the processor's characteristics, including its clock rate or frequency (e.g., 2 GHz). The execution time is determined by the number of CPU cycles required for a task and the clock rate. Improving performance involves reducing the number of CPU cycles (by better algorithms or efficient data flow) or increasing the clock rate.

Deeper Dive into CPU Cycles: IC and CPI
00:12:56

To understand the number of CPU cycles, two components are introduced: Instruction Count (IC) and Cycles Per Instruction (CPI). IC refers to the total number of machine instructions executed, which depends on the algorithm, programming language, and architecture. CPI is the average number of clock cycles required to execute a single instruction, varying based on the instruction type (e.g., multiplication takes more cycles than addition) and the specific ISA being used. Optimizing these three factors (IC, CPI, and clock cycle time) can improve overall system performance.

Amdahl's Law and Common Case Optimization
00:15:39

Amdahl's Law is introduced as a guideline for performance improvement, stating that the overall gain from an enhancement is limited by the fraction of time the enhanced feature is actually used. This means that focusing improvements on rarely used parts of a system will have minimal impact on overall performance. The key takeaway from Amdahl's Law is to "make the common case fast," meaning that efforts should be concentrated on optimizing the parts of the system that are most frequently executed.

Summary of Performance Influencers
00:18:06

The video concludes by summarizing how different aspects affect performance metrics. Algorithm, programming language, and compiler primarily influence the Instruction Count (IC) and Cycles Per Instruction (CPI). The Instruction Set Architecture, which is the focus of the course, can influence all three elements: IC, CPI, and the clock cycle time. Future lectures will explore strategies for improving performance by optimizing these elements at the processor level.

Recently Summarized Articles

Loading...