IO Flashcards

(46 cards)

1
Q

what’s a bus?

A

a communication pathway between components of a computer

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

what’s a crossbar?

A

connects any input to any output

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

what’s a bridge?

A

connects two different buses

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

IO APIC is?

A

IO advanced programmable interrupt controller
the part of the processor that handles interrupts from devices

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

SRAM

A

static
very fast, used to cache slower memory

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

DRAM

A

dyanmic
capacitor + gate to store a bit
very dense, but slower

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

VRAM

A

video
dual ported i.e. can write while another component reads

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

ways to communicate with a device

A

mmapped device registers
device memory
direct memory access

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

mmapped device regs

A

some ranges of physical addresses correspond to device registers
lw/sw gets status/sends instructions to a device, not RAM

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

device memory

A

device has memory and OS can write to the device through the IO bus rather than an address
uses special IO instructions in and out

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

DMA

A

place instructions to device in RAM
poke device by writing to its registers
device performs action and generates interrupt when done

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

disadvantages of polling

A

busy waiting
xor high latency

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

receive livelock is

A

CPU spends all its time handling device interrupts because packets arrive too quickly and the interrupt handler has high priority

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

what are interrupt driven devices good for?

A

disk requests

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

head switch times are comparable to

A

short seek times

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

LBA

A

logical block addressing
disk interface presents the disk as a linear array of blocks

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

CHS

A

cylinder, head, sector

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

zoning

A

more sectors on larger tracks

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

track skewing

A

sector 0 position varies by track to improve sequential access times

20
Q

sparing

A

flawed sectors not properly storing data are remapped to locations

21
Q

seek phases

A

speedup
coast
slowdown
settle

22
Q

avg seek

23
Q

FCFS tradeoffs

A

+ easy impl
+ good fairness
- cannot exploit locality to min seek time
- increases avg latency and decreases throughput

24
Q

SPTF tradeoffs

A

+ exploit locality to min seek time
+ higher throughput
- starvation
- hard to know fastest request

25
idea of aged SPTF
give older requests higher priority
26
elevator scheduling (SCAN)
sweep across disk, service requests as track is approached
27
SCAN tradeoffs
+ takes advantage of locality + bounded waiting - middle tracks serviced more often - could miss locality SPTF exploits
28
C-SCAN is
only sweep in one direction and return to the beginning again
29
VSCAN(r)
uses effective positioning time if request not in same direction of previous seek, Teff = Tpos + r Tmax penalty for changing directions
30
special values of VSCAN(r)
r = 0 gives SPTF r = 1 gives SCAN r = 0.2 good in practice
31
interrupt driven devices
device interrupts processor when an event happens handler asks device what happened (data ready, buffer free, request complete)
32
limitations of flash memory
limited number of overwrites possible random writes very expensive limited durability (charge can wear out over time)
33
flash translation layer
FTL provides wear leveling so writing to the same logical block doesn't wear out a physical block
34
NAND flash
used for storage high density faster erase/write times needs error correction
35
NOR flash
faster reads in smaller data units can execute code much slower erases
36
NAND flash page
2112 bytes - 2048 data 64 metadata/error correcting code
37
NAND flash blocks
blocks = 64 (SLC) 128 (MLC) pages blocks divided into 2-4 planes
38
NAND flash planes
planes can access their blocks in parallel to overlap latencies
39
NAND flash read/reuse
can read one page at a time must erase a whole block before reusing it
40
SCSI domain consists of
devices and an SDS bus connecting the devices
41
devices in SCSI are
host adapters (system bus to SCSI bus) and SCSI controllers (bus to device)
42
device roles in SCSI
initiator, target traditionally host adapter initiator and controllers targets
43
SCSI request is
a command from initiator to target
44
LUN in SCSI
controllers have >= 1 LUN each LUN maintains a queue of tasks initiator can link commands, so no intervening tasks i.e. atomic
45
SCSI exceptions/errors
after an error, stop executing most commands prevents unwanted commands from executing simplifies device impl
46
cost to transfer 1 sector?
max_rot_latency/sectors_per_track