Contemporary Architectures Flashcards

1
Q

Do all components in the computer affect performance?

A

Yes

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

What are the measurements of the following: CPU, memory and cache and buses?

A
  1. CPU - speed, number of registers
  2. Memory & Cache - access time and bandwidth
  3. Buses - transfer speed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What’s Amdahl’s Law?

A

Potential speed up of a program using multiple processors compared to a single processor

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

What’s the equation for speedup?

A

Time to execute program on a single processor / time to execute program on N parallel processors

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

What’s the latency?

A

Time to solution for 1 instruction (response time)

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

What’s the throughput?

A

Tasks per unit of time (bandwidth)

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

Give an in-real-life example of latency:

A

Airplane takes one hour and has 1000 boxes - clock speed

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

Give an in-real-life example of throughput:

A

Transport shiploads 100,000 boxes - pipelining

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

How do you calculate performance?

A

1 / CPU time

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

How do you calculate CPU time?

A

time / cycle, x cycles / instruction, x instructions / task

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

What’s MIPS?

A

Million Instructions Per Second

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

How do you calculate IPS?

A

sockets * (cores/socket) * clock * (instructions/cycle)

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

What do IPS measure?

A

Non-numerical performance

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

What’s a FLOPS?

A

Floating Point Operations Per Second

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

How do you calculate FLOPS?

A

sockets * (cores/socket) * (cycles/second) * (FLOPS/cycle)

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

How do you calculate availability in server metrics?

A

(total elapsed time - a sum of downtime) / total elapsed time

17
Q

How do you calculate reliability in server metrics?

A

(total elapsed time - a sum of downtime) / number of failures

18
Q

How badly power consumption matters? Explain

A

Larger and larger databases are taking far more power to run including embedded devices and their battery lives

19
Q

What is the benchmark?

A

Designed to mimic a particular type of workload on a component or system

20
Q

What are the two types of benchmark?

A

Synthetic benchmarks responsible for the workload and real-world which give better measurements

21
Q

What’s Goodhart’s Law of 1975?

A

When a measure becomes a target it ceases to be a good measure

22
Q

What’s quantitative RISC design?

A

Count frequencies of actual instruction use then reduce instruction set to optimise most common needs

23
Q

Which architecture is the most successful so far?

A

x86 that is part of CISC family, backward compatibility

24
Q

In 2018, what was the percentage of CPUs that made using RISC?

A

99%

25
Q

How many bit versions and what are they in RISC?

A

32, 64 and 128bit versions

26
Q

What are RISC style instructions?

A
  1. Separate memory access from ALU
  2. Specify output register
  3. Improves pipelines
27
Q

What does X0 - X32 integer registers have?

A

Standard names for their uses e.g. argument passing

28
Q

What does 32 optional floating-point have?

A

Registers, control, status registers, stack pointer and no ALU exceptions but you can extend it by having multiplications or division

29
Q

What’s the model of the 1980s operating system?

A

Everyone has the same CPU, differentiated by computer design very useful for programmers

30
Q

What’s the model of the 1990s - onwards operating system?

A

Defines the platform, it’s for commercial use

31
Q

What’s CPU privileged mode?

A

Access to all memory and real addresses and uses stacks to save and restore user program contexts

32
Q

What’s CPU restricted mode?

A

Only for user programs, it prevents all access

33
Q

What’s an IRQ timer?

A

Switches to privileged mode than jumps back to the kernel code

34
Q

What’s a UEFI?

A

Unified Extended Firmware Interface which replaces old BIOS and it executes subroutines

35
Q

Explain what was a meltdown of CPU’s (2018)

A

One of two exploits discovered on a CPU bug in 2018, people could initially expose the security measures like steal customer’s data, but the vulnerability existed before we knew and to resolve the issue numerous patches were introduced