Storage and I/O Flashcards

(55 cards)

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

24
Q

The hard disk consists of a large amount of ______

25
Sectors in a hard disk are in _____-byte blocks
512
26
Hard disks can be viewed as an _____ of sectors
array
27
In hard disks, only single sector accesses are ______
atomic
28
When does a torn write occur?
When a hard disk is accessing multiple sectors at once
29
What is a torn write?
power loss during the multi-sector write, and only some of the sectors were successfully updated
30
In hard disk access, _________ access is faster than _______ access
sequential, random
31
What are four sections of a hard disk?
- Platter - Track - Sector - Cylinder
32
In the hard disk, the _____ moves horizontally from one track to another
head
33
Disk rotate from __ to ____ times/sec
60, 250
34
Explain the process of accessing a block in hard disks
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
In hard disks, accesses should minimize ______ _____
seek time
36
Hard disks typically have small ______ (____)
caches, DRAM
37
The DRAM in hard disks hold data _____ from or ________ to the physical disk structure
read, written
38
The DRAM in hard disks allow the device to respond _______ to requests
quickly
39
In the write-back policy, the disk returns 'completed' as long as data is in ______
cache
40
Write-back policy as fast, but can be ________
dangerous
41
In the write-through policy, data is guaranteed to reach the ___
disk
42
The write-through policy is safe, but _____
slow
43
What are the 3 objectives of a disk scheduling algorithm?
- Fast disk access time - High disk bandwidth - Fairness (maybe)
44
What are 4 disk scheduling algorithms?
- FCFS - Shortest Scan time first (FCFS) - C-/SCAN/Elevator - C-/LOOK
45
The FCFS disk scheduling algorithm processes requests in _____ order
arrival
46
The SSTF disk scheduling algorithm processes requests with the minimum _____ time from current position
seek
47
The main issue of SSTF is ________
starvation
48
In the SCAN/Elevator disk scheduling algorithm, the OS moves across the disk processing requests in order across the ______
tracks
49
What is a sweep in the SCAN algorithm?
A single pass across the disk
50
During SCAN, what happens when a request comes for a block on track that has already been sweeped?
It is queued until the next sweep
51
F-SCAN ______ the queue to be serviced when doing a _______
freezes, sweep
52
F-SCAN avoids _______
starvation
53
C_SCAN sweeps from ______ to ______, then ______ to ______
outer, inner, inner, outer
54
SSTF is _____ and has a natural ______
common, appeal
55
SCAN and C_SCAN perform ________ for systems that place _______ loads on the disk
better, heavy