Storage Flashcards

1
Q

Describe the relationship between platters, tracks, sectors and cylinders.

A

The platter is the flat, circular disk that data is stored on magnetically. A track is a circular subdivision of a platter. A sector is a section of a track. A cylinder is the set of tracks at one arm position.

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

Magnetic drives vs Solid State drives

A

Magnetic drives have a longer life span.

SSD have faster data transfer rates.

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

What is the transfer rate?

A

The rate at which data flows between the disk and the computer.

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

What does an I/O bus do?

A

An I/O bus is a set of wires that attaches a disk drive to a computer.

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

What are controllers and what do they do?

A

Controllers are special electronic processors that handle data transfer to on a bus.

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

Host controller vs Disk controller

A

Host controller is on the computer end of a bus.

Disk controller is built into the disk

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

Talk me through a disk I/O operation.

A

To perform a disk I/O operation, the computer places a command into the host controller, typically using memory-mapped I/O ports. The host controller then sends the command via messages to the disk controller, and the disk controller operates the disk-drive hardware to carry out the command. Disk controllers usually have a built-in cache. Data transfer at the disk drive happens between the cache and the disk surface, and data transfer to the host, at fast electronic speeds, occurs between the cache and the host controller.

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

What are IOPS and what are the performance categories associated with it?

A

IOPS = Input Output Operations Per Second

Performance Categories:

  • Sequential
  • Random
  • Combination of both
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the queue length and what is the recommended ratio of average queue length to PIOPS on an EBS volume

A

The queue length is the number of pending I/O requests queued on the system. The recommended ratio is 1 per minute for every 200 PIOPS.

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

How can the average queue length be checked by the customer?

A

There is a cloudwatch metric called “volumequeuelength”

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

How is latency determined?

A

Latency = service time + time spent in the EBS client queue.

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

What is the relationship between IOPS and block size?

A

Using IOPS and block size, one can determine the throughput.

Inversely proportional

throughput(bytes/sec) = IOPS * block size(bytes)

Changing the block size won’t matter b/c the IOPS will adjust accordingly. Therefore, the throughput will be the same as well.

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

EBS prewarm situations

A

Brand new volume - write to all blocks first to avoid first use penalty
Volume restored from a snapshot - read all blocks to avoid first-use penalty

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

How can one read all blocks on the device

A

$ sudo dd if=/dev/xvdf of=/dev/null
OR
$ sudo fio –filename=/dev/xvdf –rw=read –bs=128k –iodepth=32 –ioengine=libaio –direct=1 –name=volume-initialize

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