CS-3310 - 03 Memory, 04 I/O and Disks - Extra Concepts

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/56

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

57 Terms

1
New cards

Question

Answer

2
New cards

What is segmentation in memory management?

A scheme dividing memory into variable-sized logical segments.

3
New cards

How does segmentation differ from paging?

Segments vary in size; pages are fixed size.

4
New cards

Why combine segmentation and paging?

Segmentation gives logical organization, paging provides efficiency and protection.

5
New cards

What is a segment fault?

An illegal access outside a segment's limit.

6
New cards

What problem does the TLB solve?

It caches recent address translations for faster lookup.

7
New cards

What is a TLB shootdown?

Invalidation of TLB entries across multiple CPUs after a mapping change.

8
New cards

What is demand paging?

Loading a page into memory only when it is first accessed.

9
New cards

What is prepaging?

Loading additional pages the OS predicts will be used soon.

10
New cards

Describe the steps in a page-fault handling sequence.

Trap, locate page on disk, allocate frame, read page, update tables, resume.

11
New cards

What is the working set model?

A set of pages a process actively uses; helps reduce thrashing.

12
New cards

How does WSClock improve on simple LRU?

It combines clock replacement with working-set tracking.

13
New cards

What is copy-on-write (COW)?

A mechanism that delays copying shared pages until a write occurs.

14
New cards

What is memory compression used for?

Reducing swap I/O by storing compressed pages in RAM.

15
New cards

What is NUMA and why does it matter?

Non-Uniform Memory Access; access time depends on which CPU node owns the memory.

16
New cards

What is page coloring?

A cache-aware page allocation strategy to minimize cache conflicts.

17
New cards

How does shared memory differ from private memory?

Shared memory regions are accessible by multiple processes.

18
New cards

What are the main stages of an I/O operation?

Request, scheduling, execution, completion.

19
New cards

What is an I/O request queue?

A per-device queue storing pending read/write requests.

20
New cards

What is interrupt coalescing?

Combining multiple interrupts into one to reduce overhead.

21
New cards

What is asynchronous I/O?

I/O where processes continue running while operations complete.

22
New cards

What is the benefit of direct I/O?

Avoids OS buffering for faster transfers.

23
New cards

What is zero-copy I/O?

Transfers data directly between disk and user space without copies.

24
New cards

What is an upper-half and lower-half driver?

Upper handles high-level logic, lower interacts with hardware.

25
New cards

What is hot-plugging?

Adding or removing hardware while the system is running.

26
New cards

What is PnP (Plug and Play)?

Automatic hardware detection and configuration by the OS.

27
New cards

What is hybrid polling?

A mix of polling and interrupts for high-speed devices.

28
New cards

Why might an OS reorder I/O requests?

To minimize seek time and latency.

29
New cards

What is I/O virtualization?

Allowing virtual machines to share or emulate I/O devices.

30
New cards

What key difference distinguishes SSDs from HDDs?

SSDs have no moving parts.

31
New cards

What is the Flash Translation Layer (FTL)?

Firmware mapping logical to physical flash addresses.

32
New cards

What is wear leveling?

Technique to evenly distribute writes on flash memory.

33
New cards

What is the TRIM command used for?

Informing SSD which blocks are unused for reuse.

34
New cards

What is NCQ (Native Command Queuing)?

Feature allowing disks to handle multiple queued requests efficiently.

35
New cards

What are IOPS?

Input/Output operations per second.

36
New cards

How do SSDs differ in failure mode from HDDs?

SSDs lose entire blocks; HDDs lose sectors gradually.

37
New cards

What is disk caching?

Using onboard RAM in drives to buffer data.

38
New cards

What is SMR (Shingled Magnetic Recording)?

A method to overlap tracks for higher density.

39
New cards

What is MTBF?

Mean time between failures; reliability measure.

40
New cards

What is RAID-Z?

ZFS's improved parity RAID for fault tolerance.

41
New cards

What is advanced format?

Using 4KB physical sectors instead of 512B.

42
New cards

What is the purpose of the buffer cache?

To store frequently accessed file data in memory.

43
New cards

What is write-back caching?

Delaying disk writes until later to improve performance.

44
New cards

What is write-through caching?

Writing data immediately to ensure consistency.

45
New cards

What are access control lists (ACLs)?

Extended permissions allowing fine-grained access control.

46
New cards

What does the 'noexec' mount option do?

Prevents execution of binaries from the filesystem.

47
New cards

What is the dentry cache used for?

To speed up file name lookups.

48
New cards

What is a log-structured file system?

A file system that writes data sequentially like a log.

49
New cards

What is delayed allocation?

Deferring block assignment to optimize layout.

50
New cards

What is defragmentation?

Rearranging data to make files contiguous.

51
New cards

What is an atime update?

A record of the last access time for a file.

52
New cards

What is an extended attribute (xattr)?

Extra metadata stored alongside a file.

53
New cards

What is the benefit of file checksums?

Detecting and repairing data corruption.

54
New cards

What is copy-on-write in file systems?

Writing new blocks instead of overwriting old ones.

55
New cards

What is journaling metadata-only mode?

Only filesystem metadata is logged for recovery.

56
New cards

What is soft updates?

Ordered writes to maintain consistency without journaling.

57
New cards

What is a bind mount?

Re-mounting a directory at another path.