Week 1 Flashcards

(18 cards)

1
Q

What do Linux Files include?

A

Regular Files

Directories

Special Files (Character or Block)

Pipes

Links(Soft or Hard)

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

What is a Hard Link?

A

Another name for an existing File

Points directly to inode of file

If file is moved or deleted, link will still work

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

What is a Soft Link?

A

Pointer to a filename

If link is moved or deleted the file won’t work

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

What is a Block?

A

Filesystems divide storage space into fixed size blocks

Typical block size is 4096 bytes (4KB)

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

How is a Magnetic Disk Organised?

A

Platters - Circular Disks

Read/ Write Heads

For reading and writing, the head senses/ changes magnetism of a sector

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

How are the platters organised in a Magnetic Disk?

A

Each platter divided into circular tracks

Each track divided into sectors, each sector has fixed size

Set of all tracks that are above one another makes up a cylinder

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

How do Magnetic Disks Operate?

A

Read/ Written by moving arms in/out to required cylinder

All heads/ arms move together

Platters rotate, rotation speed related to transfer rate

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

What is an SSD?

A

No moving parts

Instead store data using flash memory

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

How is an SSD organised?

A

A controller (Embedded Processor)

Buffer Memory (Volatile Memory)

Flash Memory is divided into pages that are grouped into blocks

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

What is the Read, Write and Erasing speed of an SSD?

A

Read - Fast

Write - Fast

Erase - Slow

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

How is an SSD read?

A

Copying flash memory into the buffer

Reading data from page in the buffer

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

How does an SSD get overwritten?

A
  1. Copying memory block into buffer
  2. Erasing block in the flash memory
  3. Modifying block in the buffer
  4. Writing block from buffer into flash memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the Fors and Againsts of SSD’s vs Magnetics?

A

FORS:

SSDs faster than magnetic

More reliable

More power efficient

AGAINST:

More expensive

deteriorate with every write

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

What is wear levelling?

A

A process designed to extend life of SS Devices

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

How does wear levelling work?

A

Data written on block with lowest erase count

Writing and erasing data evenly distributed. Blocks maximised and fall at same time

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

What is Dynamic Wear-Levelling?

A

New data is written to least recently-used block

Avoid wearing out certain blocks by writing to same block again and again

Remaining problem: “cold” data is not m

17
Q

What is Static wear-levelling?

A

Same as Dynamic, with few extras:

Periodically moves existing data to least-recently-used block

avoid wearing out certain blocks while block with cold data is never moved

17
Q

What is the benefit of Wear-Levelling?

A

A block will fail when it reaches critical number of writes

Thanks to wear levelling, we spread writes evenly among blocks