1 - Introduction To Computer System
1 - Introduction To Computer System
systems
Computer Organization (2022/2023)
Eng. Hossam Mady
Teaching Assistant and Researcher at Aswan Faculty of Engineering
Organization & Architecture
• Computer architecture is a functional description of requirements
and design implementation for the various parts of computer. It
also refers to those attributes that have a direct impact on the
logical execution of a program (Architecture describes what the
computer does)
• Computer organization refers to the operational units and their
interconnections that realize the architectural specifications.
(Organization describes how it does it)
Organization & Architecture
35 × 1 + 30 × 2 + 15 × 3 + 20 × 5
𝐶𝑃𝐼𝑏 = = 2.4
100
200 × 106
𝑀𝐼𝑃𝑆𝑏 = 6
= 83.67
2.4 × 10
Performance Measures (MIPS)
• Benchmark suite:
• A collection of programs, defined in a high-level language.
• Together attempt to provide a representative test of a computer in a particular
application or system programming area.
• System Performance Evaluation Corporation (SPEC): is a non-profit
corporation formed to establish, maintain and endorse standardized
benchmarks and tools to evaluate performance and energy efficiency for
the newest generation of computing systems.
Arithmetic Mean & Geometric Mean
𝑛
𝑛
𝐺𝑒𝑜𝑚𝑒𝑡𝑟𝑖𝑐 𝑚𝑒𝑎𝑛 = ෑ 𝐸𝑥𝑒𝑐𝑢𝑡𝑖𝑜𝑛 𝑡𝑖𝑚𝑒𝑖
𝑖=1
Arithmetic Mean & Geometric Mean
• The following table shows an example for computing these metrics.
Item CPU time on computer A (s) CPU time on computer B (s)
Program1 50 10
Program2 500 100
Program3 5000 1000
Arithmetic mean 1835 370
Geometric mean 500 100
Harmonic Mean
• Harmonic Mean:
𝑛 𝑛
𝐻𝑀 = = 𝑥𝑖 > 0
1 1 1
( ) +⋯+( ) σ𝑛𝑖=1( )
𝑥1 𝑥𝑛 𝑥𝑖
Amdahl’s law
• We consider speedup as a measure of how a machine performs after
some enhancement relative to its original performance. The following
relationship formulates Amdahl’s law.
𝑃𝑒𝑟𝑓𝑜𝑟𝑚𝑎𝑛𝑐𝑒 𝑎𝑓𝑡𝑒𝑟 𝑒𝑛ℎ𝑎𝑛𝑐𝑒𝑚𝑒𝑛𝑡
𝑆𝑈0 =
𝑃𝑒𝑟𝑓𝑜𝑟𝑚𝑎𝑛𝑐𝑒 𝑏𝑒𝑓𝑜𝑟𝑒 𝑒𝑛ℎℎ𝑎𝑛𝑐𝑒𝑚𝑒𝑛𝑡
𝐸𝑥𝑒𝑐𝑢𝑡𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 𝑏𝑒𝑓𝑜𝑟𝑒 𝑒𝑛ℎ𝑎𝑛𝑐𝑒𝑚𝑒𝑛𝑡
𝑆𝑝𝑒𝑒𝑑𝑢𝑝 =
𝐸𝑥𝑒𝑐𝑢𝑡𝑖𝑜𝑛 𝑡𝑖𝑚𝑒 𝑎𝑓𝑡𝑒𝑟 𝑒𝑛ℎ𝑎𝑛𝑐𝑒𝑚𝑒𝑛𝑡
• Consider, for example, a possible enhancement to a machine that will
reduce the execution time for some benchmarks from 25 s to 15 s. We
25
say that the speedup resulting from such reduction is: 𝑆𝑈0 = = 1.67
15
Amdahl’s law