Storage and I/O Flashcards

1
Q

The CPU is attached to main memory via the _______ ____

A

memory bus

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

Devices are connected to the system via the ___ ____

A

I/O bus

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

What are buses?

A

Data paths provided to enable information between CPU(s), RAM, and I/O devices

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

The I/O bus connects a ____ to an ____ device

A

CPU, I/O

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

What 3 hardware components connect the I/O bus to I/O device?

A
  • I/O ports
  • Interfaces
  • Device controllers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Software interacts with device though device _______

A

interfaces

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

Device interfaces are just _________ and _______ device registers

A

programming, reading

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

What 3 values does an interface register have?

A
  • Status
  • Command
  • Data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The status value in an interface register shows the current _______ of the device

A

status

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

The command value in an interface register tells the device to perform a _____

A

task

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

The data value in an interface register ______ or ____ data from the device

A

passes, gets

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

Devices are addressed by direct I/O __________ or _____-______ I/O

A

instructions, memory-mapped

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

In memory-mapped I/O, a device’s data and command registers are mapped to the _______ ______ _____

A

processor address space

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

What is the interrupt-driven I/O cycle?

A
  • CPU device driver initiates I/O
  • I/O controller initiates I/O
  • I/O controller generates interrupt signal with input, output, or error
  • CPU receives interrupt and transfers control to interrupt handler
  • Interrupt handler processes data and returns
  • CPU resumes interrupted task
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Direct memory access transfers data _____ between I/O device and memory

A

directly

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

___________ I/O suspends processes until the I/O is complete

A

blocking

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

Blocking I/O is easy to ___ and ________

A

use, understand

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

Blocking I/O us ________ and _______ for some needs

A

inefficient, insufficient

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

__________ I/O return I/O calls as much as possible

A

nonblocking

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

Nonblocking I/O is implemented via __________

A

multi-threading

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

_____________ I/O allows processes to run while the I.O executes

A

asynchronous

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

Asynchronous I/O is _________ to use

A

difficult

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

The hard disk has been the main form of _____________ storage for decades

A

persistent

24
Q

The hard disk consists of a large amount of ______

A

sectors

25
Q

Sectors in a hard disk are in _____-byte blocks

A

512

26
Q

Hard disks can be viewed as an _____ of sectors

A

array

27
Q

In hard disks, only single sector accesses are ______

A

atomic

28
Q

When does a torn write occur?

A

When a hard disk is accessing multiple sectors at once

29
Q

What is a torn write?

A

power loss during the multi-sector write, and only some of the sectors were successfully updated

30
Q

In hard disk access, _________ access is faster than _______ access

A

sequential, random

31
Q

What are four sections of a hard disk?

A
  • Platter
  • Track
  • Sector
  • Cylinder
32
Q

In the hard disk, the _____ moves horizontally from one track to another

A

head

33
Q

Disk rotate from __ to ____ times/sec

A

60, 250

34
Q

Explain the process of accessing a block in hard disks

A

Move the head to desired track (seek time)
•Wait for desired sector to rotate under the head (rotational latency time)
•Transfer the block to a local buffer, then to main memory (transfer time)

35
Q

In hard disks, accesses should minimize ______ _____

A

seek time

36
Q

Hard disks typically have small ______ (____)

A

caches, DRAM

37
Q

The DRAM in hard disks hold data _____ from or ________ to the physical disk structure

A

read, written

38
Q

The DRAM in hard disks allow the device to respond _______ to requests

A

quickly

39
Q

In the write-back policy, the disk returns ‘completed’ as long as data is in ______

A

cache

40
Q

Write-back policy as fast, but can be ________

A

dangerous

41
Q

In the write-through policy, data is guaranteed to reach the ___

A

disk

42
Q

The write-through policy is safe, but _____

A

slow

43
Q

What are the 3 objectives of a disk scheduling algorithm?

A
  • Fast disk access time
  • High disk bandwidth
  • Fairness (maybe)
44
Q

What are 4 disk scheduling algorithms?

A
  • FCFS
  • Shortest Scan time first (FCFS)
  • C-/SCAN/Elevator
  • C-/LOOK
45
Q

The FCFS disk scheduling algorithm processes requests in _____ order

A

arrival

46
Q

The SSTF disk scheduling algorithm processes requests with the minimum _____ time from current position

A

seek

47
Q

The main issue of SSTF is ________

A

starvation

48
Q

In the SCAN/Elevator disk scheduling algorithm, the OS moves across the disk processing requests in order across the ______

A

tracks

49
Q

What is a sweep in the SCAN algorithm?

A

A single pass across the disk

50
Q

During SCAN, what happens when a request comes for a block on track that has already been sweeped?

A

It is queued until the next sweep

51
Q

F-SCAN ______ the queue to be serviced when doing a _______

A

freezes, sweep

52
Q

F-SCAN avoids _______

A

starvation

53
Q

C_SCAN sweeps from ______ to ______, then ______ to ______

A

outer, inner, inner, outer

54
Q

SSTF is _____ and has a natural ______

A

common, appeal

55
Q

SCAN and C_SCAN perform ________ for systems that place _______ loads on the disk

A

better, heavy