4 - Devices Flashcards

1
Q

What are the two device types?

A

Shareable

  • based on space sharing
  • multiple requests

Non-shareable
- allocated to one program/request

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

What are the components of device driver software

A
Init
Request Queuer
Queue
Request Dequeuer
---> Device Controller/Device
Transfer initiator
Interrupt Service ROutiner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define disk scheduling

A

Takes requests from the queue so as to optimise transfer of data

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

How fast do magnetic drives rotate

A

60 to 200 times a second

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

Transfer rate

A

speed at which data flows between drive and computer

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

Access Time

A

Random access time is the time to move the disk arm to desired track (seek) and for the sector to rotate under the disk head (rotational latency)

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

Head Crash

A

When the disk head makes contact with the disk surface

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

FCFS Disk Scheduling

A

First COme First Served.

Order in which requests come

fair but not fast

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

SSTF Disk Scheduling

A

Shortest Seek time first

Select the next closest request from the current pos.

May starve some requests that endlessly wait

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

SCAN disk scheduling

A

Disk arm starts at end, moves towards other and services requests then reverses etc

elevator algorithm

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

How does UNIX treat devices that can be written to or read from?

A

As special files (according to the inode)

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

What is RAID?

A

Redundant Array of Independent Disks

Set of drives viewed as single logical unit

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

What is RAID 0?

A

Striping

Distribute data over multiple disks in two forms:

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

How does bit level striping work?

A

Split the bits across multiple disks

  • take 8 disks, bit i to disk i for each byte then access rate is eight times as large
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How does block level striping work?

A

Given n disks, block i of a file goes to disk (i mod n ) + 1

  • block nums from 0 and disks from 1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the pros and cons of RAID 0?

A

Pros
- Faster

Cons
- Any drive fails = lost data

17
Q

What is RAID 1?

A

Mirroring

improve reliability through redundancy

Copy data to two separate disks
- good error rec

  • expensive
  • writing slow
  • reading improved
18
Q

What is the MTTF for mirroring?

A

If the mean time to failure of a single disk is 100,000 hours and the mean time to repair is 10 hours, the mean time to data loss is (100,000)^2 / (210) = 500106
hours, or 57,000 years!

19
Q

What are the various RAID levels?

A
  • RAID 0 striping
  • 1 mirroring
  • 2 to 5 use parity bits to reduce disks required while still being redundant and higher performance through striping
  • 6 uses parity and a different error code. Tolerates two disk failures