Measuring Performance Flashcards

Week 2.4 (38 cards)

1
Q

what 3 things influence how many clock cycles instructions require on average

A
  1. instruction mix of given performance
  2. number of clock cycles per instruction
  3. processor architecture
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the formula for cycles per instruction

A

CPI = sum of (CPIi x Ii) / Ic
where:
- Ii = executed instructions (type i)
- CPIi = cycles per instructions (type i)
- Ic = executed instructions (total)
- CPI = cycles per instructions (total)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the 2 formula for time taken to execute a program

A

T = Ic x CPI/f
OR
T = Ic(p x m.k)/f
where:
- p = cycles to decode & execute instructions
- m = number of memory references needed
- k = memory cycle time
- f = frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does the ISA effect

A

Ic
p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the 4 main system attributes that affect performance factors

A
  1. ISA
  2. compiler technology
  3. processor implentation
  4. cache & memory hireachy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what performance factors does compiler technology affect

A

Ic - executed instructions
p - cycles to decode & execute instructions
m - number of memory references made

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what performance factors does processor implementation affect

A

p
f - frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what performance factors does the cache & memory hierachy affect

A

k - memory cycle time
f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are the 2 instructions per second formulae

A

IPSr = Ic/T
OR
IPSr = f/CPI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the formula for floating-point operations per second

A

FLOPSr = If/T
where:
- If = executed floating-point instructions (total)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are the 6 basic measures of performance

A
  1. frequency
  2. CPI
  3. Instruction count
  4. Execution time
  5. IPS
  6. FLOPS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is scaling

A

the ability of a system to adapt and handle increased workloads or user demands without performance degradation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what is the general scaling speed-up formula

A

Sp = T1/Tp
where:
- Tp = execution time with p processors
- p = number of processors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what is the general scaling parallel efficiency formula

A

Ep = Sp/p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what are the bounds of the general scaling speedup

A

1 <= Sp <= p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what are the bound of general scaling parallel efficency

A

1/p <= Ep <= 1

17
Q

what are the 2 types of scaling

18
Q

what law works with strong scaling

A

Amdahl’s Law

19
Q

define amdahl’s law

A

the runtime of a parallel programme can be modelled as
Tp = s.T1 + (1 - s).T1/p where 0 <= s <= 1 id the fraction of code that must run serially

20
Q

what are the 2 strong scaling parameters

A
  1. CONSTANT workload
  2. VARIABLE number of processors
21
Q

what are the 3 strong scaling assumptions

A
  1. Serial and parallel fractions are easy to spot
  2. Parallel execution causes no overhead
  3. Workload can be divided in arbitrarily small chunks
22
Q

what is the formula for speedup in strong scaling (with amdahl’s law)

A

Sp = T1/ Tp
= 1/s + (1 - s)/p
= p/ s.p + (1 - s)

23
Q

what is the law that works with weak scaling

A

Gustafson’s Law

24
Q

define Gustafson’s Law

A

the run time of a parallel programme follows T1 = s.Tp + (1 - s).Tp.p where 0 <= s <= 1 is the fraction of code that must run serially

25
what are the 2 weak scaling parameters
1. VARIABLE workload 2. VARIABLE number of processors
26
what are the 3 weak scaling assumptions
1. Serial and parallel fractions are easy to spot 2. Parallel execution causes no overhead 3. Workload on serial run fits in serial machine
27
formula for speedup in weak scaling (gustafson's law)
Sp = T1/Tp = s + (1 - s).p
28
what is the law associated with waiting time
Little's Law
29
what is Little's law
if a system is statically at steady state with no leakage, then L = lambda.W where: - L = items waiting in the system - lambda = average arrival rate (items per unit time) - W = average waiting time in the system
30
what are 3 different means
1. arithmetic 2. geometric 3. harmonic
31
what is arithmetic mean best for
general averaging
32
what is geometric mean best for
multiplicative processes
33
what is harmonic mean best for
rates or ratios
34
what are the 4 observations about the 3 means
1. HM <= GM <= AM 2. if x1 = x2 = ... = xn then HM =GM = AM 3. result of HM can be misleading with small outliers 4. result of HM can be misleading with skewed data
35
what mean to use to calculate the natural execution times
arithmetic
36
what mean to use to calculate the natural execution rates
harmonic
37
what is GM scaled by if the data is scaled by x
n square root(x)
38
what is GM scaled by if the data increases by 10%
n square root(1.1)