Equations Flashcards

(45 cards)

1
Q

hamming rule

A

d + p + 1 <= 2^p
d = data bits
p = parity bits

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

measuring performance: cycles per instructions

A

CPI = (sum(CPI . Ii)/Ic
- Ii = executed instructions (type i)
- Ic = executed instructions (total)

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

measuring performance: time to execute a program (2 equations)

A

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

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

measuring performance: instructions per second (2 equations)

A

IPSr = Ic/T
OR
IPSr= f/CPI
- IPSr = rate of instructions per second
- Ic = executed instructions (total)
- T = total execution time
- f = frequency
- CPI = cycles per instructions

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

measuring performance: floating-point operations per second

A

FLOPSr = If/T
- FLOPSr = rate of floating-point operations per second
- If = executed floating-point operations (total)
- T = total execution time

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

speedup general equation

A

Sp = T1/Tp
- Tp = execution time with p processors

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

bounds of speedup

A

1 <= Sp <= p

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

parallel efficiency

A

Ep = Sp/p
- p = number of processors

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

parallel efficiency bounds

A

1/p <= Ep <= 1

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

strong scaling

A

Amdahl’s law -
Tp = s.T1 + (1 - s).T1/p
- Tp = execution time with p processors
- p = number of processors
- s = fraction of code that must run sequentially

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

speed up in strong scaling

A

Sp = T1/Tp = p/(s.p + 1 - s)
- p = number of processors
- s = fraction of code that must run sequentially

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

weak scaling

A

Gustafson’s law -
T1 = s.Tp + (1 - s).Tp.p
- s = fraction of code that must be run sequentially
- p = number of processors
- Tp = execution time with p processors

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

speedup in weak scaling

A

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

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

waiting time in queue systems

A

Little’s law -
L = lambda x W
- L = items waiting in the system
- lambda - average arrival time (items per unit time)
- W = average waiting time in the system

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

pipeline performance: cycle time

A

t = max1<=i<=k( ti )+ d = tm + d
- ti = time delay of ith pipeline stage
- k = number of pipeline stages
- d = delay of latch
- tm = maximum stage delay

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

pipeline performance: total pipeline time

A

Tk,n = (k + n - 1).t
- Tk,n = execution time of n instructions in k-stages
- t = cycle time
- k = number of pipeline stages
- n = number of instructions

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

pipeline: speedup

A

Sk = T1,n/Tk,n = (n.k)/(k + n - 1)
- Sk = speedup of k-stage over 1-stage pipeline
- Tk,n = execution time of n instructions in k-stage pipeline
- t = cycle time
- k = number of pipeline stages
- n = number of instructions

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

pipeline: limit of speedup

A

k

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

memory hierarchy performance modelling: expected access time

A

ts = h.t1 + (1 - h).(t1 + t2)
= t1 + (1 - h).t2
- ts = average system access time
- h = M1 hit ratio
- t1 = access time of M1
- t2 = access time of M2

20
Q

memory hierarchy performance modelling: average cost per bit

A

Cs = (C1.S1 + C2.S2)/(S1 + S2)
- Cs = average system cost per bit
- C1 = average cost per bit of M1
- C2 = average cost per bit of M2
- S1 = size of M1
- S2 = size of M2

21
Q

memory hierarchy performance modelling: access efficiency

A

T1/Ts = T1/(T1 + (1 - H).T2)
- T1 = access time of M1
- Ts = average system access time
- H = M1 hit ratio
- T2 = access time of M2

22
Q

performance modelling memory hierarchy: average access time

A

Ts = sum(harmonic((1 - hj).hi.ti))
-Ts = average system access time
- h = Mi hit ratio
- ti = access time of Mi

23
Q

non RAM transfer formula

A

Tn = Ta + n/R
- Ta = access time
- n = number of bits
- r = transfer rate in bps

24
Q

main memory formula

A

M = 2^n/K
- k = blocks
- 2^n = addressable words

25
cache line size
tag + control bits
26
direct mapping formula
i = j mod m - i = cache line - j = main memory block - m = number of cache lines
27
direct mapping: word
w bits
28
direct mapping: cache line
r
29
direct mapping: tag bits
s - r
30
direct mapping: address length
s + w
31
direct mapping: block size
2^w
32
direct mapping: number of blocks in main memory
2^s
33
direct mapping: number of lines in cache
m = 2^r
34
set-associative mapping: relationship
m = v.k, i = j mod v - m = number lines of cache - v = number of sets - k = number of lines per set - i = cache set number - j = main memory block memory
35
k-way set associative mapping: number of sets
v = 2^d
36
k-way set associative mapping: number of lines in set
k
37
k-way set associative mapping: total lines in cache
m = k.v = k.2^d
38
k-way set associative mapping: tag size
s - d
39
write back cache & write through cache equation
N x Twt >= Twb - N = how many writes must occur for a write-back (WB) cache to outperform a write-through (WT) cache
40
external memory: transfer time
T = b/rN - b = number of bytes to be transferred - N = number of bytes per track - r = revolutions per second
41
external memory: one full rotation
1/r
42
external memory: average rotational delay
1/2r
43
external memory: total read/write time
Ttotal = Ts + 1/2r + b/rN - Ts = seek time - 1/2r = average rotational delay - b/rN = transfer time
44
MIPSe
MIPSr = f x IPC - f = clock frequency - IPC = instructions per cycle
45
speedup in multicore
speedup(N) = 1/((1-f) + f/N) - f = fraction of the program that is parallelisable - N = number of cores