13-Load-Balancing Flashcards

(22 cards)

1
Q

What is load balancing?

A

Ensuring each processing unit performs similar amount of work to minimize idle time

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

Why is load balancing important?

A

Poor balancing causes some processors to wait for slowest one, wasting resources

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

What is load imbalance overhead?

A

Time processors spend idle waiting for slowest processor to finish

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

What is the goal of load balancing?

A

Minimize idle time by equalizing work across all processors

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

What is static load balancing?

A

Distribute work at compile/startup time based on predicted workloads

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

What is dynamic load balancing?

A

Distribute work at runtime based on actual execution patterns

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

What is the advantage of static load balancing?

A

No runtime overhead, predictable

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

What is the disadvantage of static load balancing?

A

Can’t adapt to varying execution times

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

What is the advantage of dynamic load balancing?

A

Adapts to real execution patterns, handles heterogeneity

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

What is the disadvantage of dynamic load balancing?

A

Runtime overhead for task distribution

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

What is a task in load balancing?

A

Independent unit of work that can be executed by any processor

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

What is a work pool?

A

Centralized queue of tasks that processors request work from

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

What is the master-worker pattern?

A

One process distributes tasks, others execute and return results

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

What is MIMD?

A

Multiple Instruction Multiple Data - different processes execute different code

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

What is the difference between SIMD and MIMD?

A

SIMD: same instruction on different data; MIMD: different instructions on different data

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

What is the master process role?

A

Manages task queue, sends tasks to workers, collects results

17
Q

What is the worker process role?

A

Requests tasks, executes them, returns results to master

18
Q

What is the communication pattern in work pools?

A

Workers send requests to master, master sends tasks, workers return results

19
Q

What is the scalability issue with centralized work pools?

A

Master becomes bottleneck with many workers

20
Q

What are the solutions for scalability?

A

Hierarchical work pools, distributed work pools

21
Q

What is the advantage of work pools?

A

Simple to implement, handles variable task sizes well

22
Q

What is the disadvantage of work pools?

A

Communication overhead, potential master bottleneck