19. Disks Flashcards

1
Q

What is stable storage?

A

Storage that does not lose its contents when the computer is turned off

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

What are the two categories of stable storage?

A

HDD (hard disk drive), spinning disk, or hard drive

SSD (solid state drive) or flash drive

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

Describe the hard drive category of stable storage.

A

A stable storage device constructed of rotating magnetic platters

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

Describe the solid state drive category of stable storage.

A

A stable storage device constructed of non-moving, non-volatile memory

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

What are the key differences between HDDs and SSDs?

A

HDDs are bigger, slower, and cheaper than SSDs.

Ex: HHD is $0.07 per GB, SSD is $0.15 per GB

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

Why study spinning disks?

A

HDDs are still around and will be for awhile. Flash storage is definitely the future though.

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

What are the three parts of the hardware disk?

A

Platter, Spindle, and Head

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

What is the platter in a HDD?

A

A circular flat disk on which magnetic data is stored.

Constructed of a rigid non-magnetic material coated with a very thin layer of magnetic material.

Can have data written on both sides.

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

What is the spindle in a HDD?

A

The drive shaft on which multiple platters are mounted and spun between 4200-15,000 RPM

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

What is the head in a HDD?

A

The actuator that reads and writes data onto the magnetic surface of the platters while rotating at tens of nanometers over the platter surface

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

What are the three components of disk location?

A

Track, Sector, and Cylinder

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

What is the track?

A

Think of a lane on a race track running around the platter.

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

What is a sector?

A

It resembles a slice of pie cut out of a single platter.

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

What is a cylinder?

A

Imagine the intersection between a cylinder and the set of platters. It’s composed of a set of vertically-aligned tracks on all platters.

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

How are disks different from other hardware components?

A

Disks move, disks are slow, and disks are devices, meaning they are less tightly coupled to the abstractions built on top of them.

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

Describe the difference between the electronics time scale and the mechanics time scale.

A

The time necessary for electrons to flow from one part of the computer or chip to another is VERY fast.

The time necessary for a physical object to move gently and precisely from one point to another point is VERY slow comparatively.

17
Q

What do we mean when we say that disks can fail by parts?

A

Many disks ship with sectors that are already broken. The operating system - or disk software - detect and ignore these sectors.

Sectors may also fail over time, potentially resulting in data loss.

18
Q

What do we mean when we say that disks can fail catastrophically?

A

A head crash occurs when a jolt or violent event sends the disk heads crashing into the magnetic surface, scraping off material and destroying the platter.

When this happens, you have about 20 seconds to say goodbye.

19
Q

On the surface, what is RAID?

A

A clever way to use multiple disks to create a more reliable and better-performing device that looks like a single disk.

20
Q

How can the OS get directly involved to hide disk latency?

A

OS can use the past to predict the future, use a cache, or procrastination.

This is in contrast with how memory latencies hare handled. These are usually handled transparently by the processor through out-of-order execution.

21
Q

What are the 5 time-consuming steps of a read/write to disk?

A
  1. Issue the command: OS has to tell device what to do and device selects which head to use
  2. Seek time: Drive has to move the heads to appropriate track
  3. Settle time: Heads have to stabilize on the (very narrow) track
  4. Rotation time: Platters have to rotate to the position where the data is located
  5. Transfer time: Data has to be read and transmitted back across the interconnect into system memory
22
Q

What improvements can we make on the harddrive to improve disk latencies?

A

Improve interconnect speeds (SATA-6?)

Improve seek times (Not improving rapidly. This is the moving physical object part).

Improve rotation speeds (This can vary between devices, but isn’t typically the major source of latency anyway. Physical limitations come into play here as well as to how fast the disk can spin.)

23
Q

Give a broad overview of the I/O “crisis” that arose across the 90s and 00s.

A

Hard drive densities and capacities soared, which encouraged users to save more stuff, thus increasing I/O demand.

At the same time, seek times limited the ability of disks to keep up with the added demand.

Capacity increased by three orders of magnitude, while speed only increased by two orders of magnitude.

24
Q

How is the file (disk) abstraction fundamentally different than the thread (CPU) and address space (memory) abstractions?

A

The file abstraction is almost entirely implemented in software.

25
Q

What is true about the nature of disk hardware that motivated the file abstraction?

A

The low-level disk interface is messy and very limited. It requires reading and writing entire 512-byte blocks without any notion of files or directories.

The file abstraction, through software, creates the ability to name, reference, and organize by directory data on the disk.

26
Q

What are two limitations of flash memory?

A

We have to erase entire large chunks before we can rewrite to that space.

Flash wears out faster than magnetic drives and can wear unevenly if certain areas are used more than others.