Multiprocessor Scheduling Flashcards

(34 cards)

1
Q

What are the three multiprocessor systems?

A
  1. Multicore processor
  2. Multiprocessor
  3. Multithreaded core
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the cache of a CPU hold?

A

Copies of popular data that’s found in the main memory

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

What does the main memory of a CPU hold?

A

All data

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

Is access to the cache faster or slower than access to the main memory of a CPU?

A

Faster

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

What two forms of locality does the cache of a CPU utilize?

A

Temporal & spatial locality

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

A multiprocessor with a cache must ensure … of shared resource data stored in multiple caches

A

consistency

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

What sort of primitives should be used to guarantee correctness when accessing shared shared data across CPUs in a multiprocessor with cache?

A

Mutual exclusion primitives

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

Will a process on a multiprocessor run faster or slower if its executed on the same CPU as it has its states stored in the cache of?

A

Faster

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

What problem is it important that a multiprocessor considers when making its scheduling decisions?

A

Cache affinity

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

Give the definition:
The binding & unbinding of a process/thread to a CPU/CPUs, so that the process/thread only executes on the designated CPU/CPUs

A

Cache affinity

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

Describe the policy of Single Queue Multiprocessor Scheduling (SQMS)

A

Puts all jobs that need to be scheduled into a single/global queue

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

A synonym for SQMS is:

A

Asymmetric MultiProcessing (AMP)

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

Describe the structure of SQMS

A

One processor/core manages the scheduling queue - master processor - while the rest are slave processors

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

What are the pros of SQMS?

A

Simple
Reduced data sharing

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

What are the cons of SQMS?

A

Lack of scalability
Cache affinity
Complex

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

What does the lack of scalability that SQMS has mean that we have to insert in a multiprocessor?

17
Q

Describe the MQMS policy

A

Consists of multiple scheduling queues. Where each processor has its own scheduling queue & an incoming job is assigned to a specific processor (queue)

18
Q

What’s a synonym for MQMS?

A

Symmetric MultiProcessing (SMP)

19
Q

What are the pros of MQMS?

A
  • Better cache affinity
  • Scalability
20
Q

What are the cons of MQMS?

A

Load imbalance

21
Q

Give the definition:
Some processes having more workloads in a multiprocessor

A

Load imbalance

22
Q

What are the 3 solutions to load imbalance?

A
  1. Migration
  2. Continously switching jobs
  3. Work stealing
23
Q

Give the definition:
Binding jobs to specific cores

A

Processor affinity

24
Q

What type of affinity is this?
Jobs are expected to execute on a single processor, but it’s possible to migrate them between processors

A

Soft affinity

25
What type of affinity is this? Jobs are specified to (can only be executed on) a subset of processors
Hard affinity
26
What is processor affinity used to avoid high memory access overhead in?
Non-Uniform Memory Access (NUMA)
27
What type of affinity does Linux deploy?
Soft affinity
28
What type of affinity does Linux provide with the sced_setaffinity() system call?
Hard affinity
29
What type of multiprocessing is this? Heterogeneous cores on a single chip
Heterogeneous multiprocessing
30
⭐️ Give the definition: A simple but unscalable method for scheduling on multiprocessor systems
SQMS
31
⭐️ Give the definition: The widely used scheduling method for modern multiprocessor systems
MQMS
32
⭐️ Give the definition: An architecture that introduces new challenges for scheduling
Heterogeneous scheduling
33
SQMS generally offers better cache affinity than MQMS (T/F)
False
34
In MQMS, all cores/processors must use the same scheduling algorithm (T/F)
False