disk head scheduling Flashcards

1
Q

what is the aim of disk scheduling and what three things are we trying to improve

A

ordering requests to the disk so its moving its head in an optimal way
fairness, throughput and response time

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

what are some of the disk scheduling techniques

A

fcfs: first come first served
sstf/ssf: shortest seek time first
scan/elevator scheduling
cscan: circular scan
edf: earliest deadline first
scan + edf

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

scan + edf

A

priority based with the head moving in one direction

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

how does fcfs work

A

always completing the first request in the queue

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

what are 2 positives of fcfs

A

shortest response time and fair as no request is ever being held back in the queue

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

what are negatives of fcfs

A

leads to longer seek times due to the random head movements
also poor throughput as the head may have to travel a while to get the next request

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

sstf/ssf

A

find the request closest to the one just serviced so the head moves the shortest distance possible

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

what are positives of ssft/ssf

A

smoother head movements
short seek times and high throughput as the head is moving as little as possible

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

what are negatives of sstf/ssf

A

each process has longer response times as other processes can jump ahead
the head usually stays around one position (middle)
can lead to starvation as processes not close to the others wont get serviced

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

scan/elevator

A

go for the shortest head movement in one direction until no more requests in that direction

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

what is a positive of scan

A

no starvation

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

what is a negative of scan

A

could be unfair as requests clustered at the edge of the disk may get two chances of data access

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

cscan

A

the head should always move in one direction and jumps back to the opposite side when all requests on that side are complete

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

+ cscan

A

improves fairness

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

takes longer due to going back
so lower throughput

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

edf

A

chooses the request with the highest priority and if there are multiple then it reads the closest one

17
Q

what is edf used for

A

real time systems

18
Q

soft real time system + example

A

missing the deadline is file
e.g. playing a video

19
Q

hard real time system

A

achieving deadlines is critical

20
Q
  • edf
A

long seek times
long deadlines may have to wait a long time