Disk Management Flashcards

1
Q

Disk Access Time

A

For b bytes:
Ta = Ts + 1/(2r) + b/(rN)

  • N = bytes per track
  • Ts = seek time
  • r = spinning speed
  • b = bytes to access
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Seek Times: 4 phases

A
  • speed-up
  • coast
  • slowdown
  • settle
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Skewing

A

Goal: keep read speed high
=> shift sectors on consecutive tracks somewhat -> reduce rotational delay

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

Sparing

A

Map faulty sectors to other sectors via a list passed to the controller

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

Disk Scheduling Algorithm: FIFO

A

= Process requests in order of arrival

-> fair
-> very efficient for clustered operations
-> inefficient for random reads

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

Disk Scheduling Algorithm: Shortest Seek Time (SSTF)

A

= process first request with smallest seek time

-> requires estimation of seek time
-> high utilization/efficiency

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

Disk Scheduling Algorithm: SCAN

A

= SSTF with arm changing direction when reaching the extremes of the disk

-> less starvation than SSTF
-> lower delay variance, higher average delay
-> unfairness center vs. extreme tracks

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

Disk Scheduling Algorithm: C-SCAN

A

= SCAN but once extreme is reached, continue from the other extreme

-> reduces unfairness

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

Disk Scheduling Algorithm: LOOK

A

= SCAN but the arm changes direction if there are no more requests in the current direction

-> slightly more efficient than SCAN
-> more complex
-> unfairness center vs. extreme tracks

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

Disk Scheduling Algorithm: C-LOOK

A

= C-SCAN but changes direction if there are no more requests in the current direction

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

Disk Scheduling Algorithm: V-SCAN

A

Process first request which is closest located with:
distance = SSTF distance + 1 (if changing direction) * R * width of the disk

  • VSCAN(0) = SSTF
  • VSCAN(1) = LOOK
  • VSCAN(0.2) gives good balance between SSTF and LOOK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Disk Scheduling Algorithm: FSCAN

A

Use a 2-stage buffer to handle I/O
Apply SCAN on the requests in the first buffer, then process requests in the second buffer

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

RAID

A

= Redundant Arrays of Independent Disks
=> many inexpensive disks form one large, fast and reliable disk

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

RAID 0

A

Data equally striped over N disks:
Disk i contains blocks i, i+N, i+2N,..

-> poor robustness

effect of stripe length:
- large: random reads simultaneous
- small: sequential read fast

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

RAID 1

A

Data mirroring over 2 discs
-> all data on both disks

Very high robustness but expensive solution

Profit on random reads but write is slower than with one disk

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

RAID 3+4

A

= striping over N disks (RAID 0) + 1 extra disk for parity bits
-> RAID 3 = short stripe, synchronized disk heads (fast sequential reads, parity on write mostly no read required)
-> RAID 4 = long stripe (random read fast, 1 write = 2 writes + 2 reads

17
Q

RAID 5+6

A

= RAID 4 with parity information spread across all disks
-> better random read performance

RAID 6 = one more disk

18
Q

RAID 0+1 & 1+0

A

RAID 0+1 = mirroring and then striping
-> on read operation: select mirror first, then use striping

RAID 1+0 = striping and then duplicate
-> more robust, can handle many double disk failures
-> on read operation: striping and for each stripe we choose a mirror

19
Q

Combinate RAIDS: X+Y

A

organize data according RAID Y, then subdivide each of the obtained disks according to X

20
Q

What is Zone Bit Recording?

A

◦ Modern discs divided into zones (~15)
▪ Within a zone: fixed number of sectors on each track
▪ Across zones: Number of sectors per track varies (decreases towards the inside)
◦ In practice: up to 2 times as many sectors in outer zone (several hundreds)
◦ Result: almost double reading and writing speed on the outside (filling from outside to inside)

21
Q

What are the disk components?

A

◦ One or more circular (metal) disks
◦ Disk head (per disk)
◦ Fixed rotation speed

22
Q

How is a disk partioned?

A

◦ Tracks (concentric circles)
◦ Sectors (fixed number of bytes): unit of reading and write operations

23
Q

What is the classical layout of a disk?

A

◦ Fixed number sectors per track
◦ Compact storage near the center [high density]
◦ Low density on the outside
◦ Fixed read and write speed

24
Q

What is the disk controller?

A

◦ Connected to the bus
◦ Receives request (via device driver software) and handles them
◦ Can buffer at least one sector (necessary because of faster bus)
◦ Command Queueing:
controller can receive multiple requests and determine the order of processing

25
Q

What is disk caching?

A

◦ Cache with read-ahead strategy
◦ Read data from cache is replaced immediately
→ file reading is usually sequential
◦ Aggressive read-ahead: over multiple tracks
◦ Old disk: on-arrival read-ahead
▪ Reading begins when the head is in the right track location
▪ Useful if we usually need the largest part of the track (increasingly less the case)
◦ Cache useful for quickly writing the same data, but volatile