I/O Devices Flashcards

1
Q

What sort of structure does I/O hardware have?

A

Hierarchical structure

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

Which piece of I/O hardware is this?
Connection point for devices

A

Port

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

Which piece of I/O hardware is this?
Enables shared direct access

A

Bus

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

Which piece of I/O hardware is this?
Electronics that operate port & bus device. Contains processor, microcode, private memory & bus controller

A

Controller

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

Which piece of I/O hardware is this?
Present uniform device-access interface to I/O subsystem

A

Device driver

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

Which register in the canonical device communicating with the OS is this?
Can be read to see the current status of the device

A

Status register

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

Which register in the canonical device communicating with the OS is this?
Tells the device to perform a certain task

A

Command register

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

Which register in the canonical device communicating with the OS is this?
Passes data to / gets data from the device

A

Data register

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

What is the goal of I/O interrupts?

A

To lower CPU overhead

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

Should polling or interrupts be used in the case described below?
A fast device

A

Polling - better to spin than to take the interrupt overhead

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

Which register in the canonical device communicating with the OS is this?
Unknown speed for device

A

Both - spin, then use interrupts

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

Give the definition:
Batching together several interrupts

A

Interrupt coalescing

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

What can a flood of arriving interrupts lead to?

A

Livelock

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

Give the definition:
Always handling interrupts

A

Livelock

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

What type of I/O is this?
CPU directly controls data transfer between memory & an I/O device

A

Programmed I/O (PIO)

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

What type of I/O has this downside?
High CPU overhead - the CPU is fully occupied during transfera

A

Programmed I/O (PIO)

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

Give the definition:
Bypasses CPU to transfer data directly between I/O device & memory

A

Direct Memory Access (DMA)

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

What is used to avoid PIO for large data movement?

A

DMA (Direct Memory Access)

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

What communication method for an I/O is this?
Each device has a port & IN/OUT instructions communicate with the device using reg ports

A

I/O instructions

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

What communication method for an I/O is this?
Hardware maps registers into memory address. Addresses are loaded/mapped during system initialization & remain active until shutdown

A

Memory-Mapped I/O (MMIO)

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

What part of the I/O software is this?
Divers components that each have their own protocols. An abstraction that hides details & differences, and provides standard interfaces

A

Device driver

22
Q

What part of a Hard Disk Drive (HDD) is this?
A circular hard surface on which data is stored persistently by inducing magnetic changes to it

23
Q

What sort of address space does a magnetic disk have?

A

Sector-addressable

24
Q

What does a magnetic disk have a array of?

25
Q

What is the smallest unit of transfer on a magnetic disk?

26
Q

What are the two main operations for a HDD?

A

Read & write

27
Q

What’s the equation for the overall latency of a HDD?

A

Seek time + Rotational delay + Transfer latency

28
Q

What part of a operation for a magnetic disk is this?
Function of cylinder distance that may take several ms. The entire part often takes 4 - 10 ms.

29
Q

What part of a operation for a magnetic disk is this?
Rotation time in seconds / RPM. Depends on the RPM and takes 4.2 ms on average.

30
Q

What part of a operation for a magnetic disk is this?
Transfer time / bytes per sector. Depends on the RPM & sector density. Pretty fast.

31
Q

Are the seek and rotations in a HDD slow or fast?

32
Q

Is the transfer in a HDD slow or fast?

33
Q

Which type of workload for a HDD is this?
Access sectors in order. Most of the time is spent on transfer.

A

Sequential I/O

34
Q

Is sequential I/O the best- or worst-suited type of workload for a HDD?

A

Best-suited

35
Q

Which type of workload for a HDD is this?
Random workloads access sectors in a random order. Slow on HDD due to seek and rotation dominating.

A

Random I/O

36
Q

Give the definition:
Manages the order of I/O requests to optimize performance. Follows the SJF (Shortest Job First) principle

A

Disk scheduling

37
Q

Which type of disk scheduling algorithm for a HDD is this?
Pros: simple
Cons: low performance

38
Q

Which type of disk scheduling algorithm for a HDD is this?
Pros: Minimal seek time compared to FIFO
Cons: Starvation

A

Shortest Seek Time First (SSTF)

39
Q

Which type of disk scheduling algorithm for a HDD is this?
The head moves back and forth across the tracks, and favors the middle tracks. An elevator algorithm.

40
Q

Which type of disk scheduling algorithm for a HDD is this?
The head sweeps in one direction, from outer to inner track, & resets to the outer.
Cons: Slightly higher seek time than SCAN

41
Q

Which type of disk scheduling algorithm for a HDD is this?
Takes both seek time & rotation time. Has Positioning time = Seek time + Rotational latency. Faster than SSTF

A

Shortest Positioning Time First (SPTF)

42
Q

Does HDD or SSD have the following pros?
Cheap
High capacity

43
Q

Does HDD or SSD have the following pros?
Single/multiple transistors for storage
Fast: no rotating/moving & noe seek
Parallell

44
Q

Does HDD or SSD have the following cons?
Slow: Seek + Rotate + Transfer
Poor performance for random I/O

45
Q

Does HDD or SSD have the following cons?
More expensive
Wear out issue

46
Q

What type of disk consists of NAND-flash memory divided into banks that can be accessed in parallell?

47
Q

Each bank in an SSD consists of what?

48
Q

Each block in an SSC consists of what?

49
Q

What are the three main operations on an SSD?

A

Read, erase & program

50
Q

Give the definition:
The even distribution of data over SSD to avoid overuse of some pages & banks

A

Wear leveling