Measuring Performance Flashcards

1
Q

Latency

A

time needed to complete a task. Usually related to execution time of a program.

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

Throughput

A

no. of tasks completed in a fixed time. Related to bandwidth.

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

Latency/CPU Performance equation/total time to run a program

A

time = dynamic instruction count x CPI x clock period

time = no. of instructions x CPI x clock period

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

Dynamic instruction count

A

the number of instruction count at run time, related to execution of program. Different from static instruction count that does not change.

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

Speedup

A

old time/new time
assuming old time is longer than new time

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

Amdahl’s Law equation

A

speedup = 1/ ( (1 - f) + (f/s) )
f is the fraction of time spend in optimisable code
s is the speed up of the optimized code

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

Amdahl’s Law in words

A

The maximum speedup of a program is limited by the fraction of the program that can not be improved.

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

Lab 1 only uses functional execution driven. What does this mean?

A

The program is compiled with a certain optimization and the simulation runs the binary file.

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

What did you do in Lab 1?

A

Wrote the simulator that simulates a different stage pipelines and verified its accuracy using a microbenchmark. Then ran the simulator with a given trace file to calculate the %drop in performance compared to an ideal pipeline with no stalls.

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

-O0

A

no optimization, all data is saved on the stack

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

-O1

A

optimization made, a lot of code

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