Week 11 AOS: Memory Management (Content)

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/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

42 Terms

1
New cards

Memory hierarchy

Registers, cache, RAM, disk. (Different speeds/capacities.)

2
New cards

Primary memory

RAM/ROM used for active processes. (Fast.)

3
New cards

Virtual address

Address relative to process’s address space. (Logical.)

4
New cards

Physical address

Actual RAM location. (Hardware.)

5
New cards

Address space

Range of virtual addresses a process can use. (Process view.)

6
New cards

Compile-time binding

Addresses fixed at compile time. (No relocation.)

7
New cards

Load-time binding

Addresses assigned when loaded. (Static.)

8
New cards

Execution-time binding

Addresses translated dynamically. (Flexible.)

9
New cards

Transparency requirement

Processes unaware of memory sharing. (Abstraction.)

10
New cards

Safety requirement

Processes cannot corrupt each other or OS. (Protection.)

11
New cards

Efficiency requirement

Sharing must not degrade performance. (Speed.)

12
New cards

Relocation definition

Mapping logical to physical addresses. (Movement allowed.)

13
New cards

Static relocation

Fixed at load time; cannot move. (Inflexible.)

14
New cards

Dynamic relocation

Base + limit registers allow movement. (Flexible.)

15
New cards

Swapping

Move process to disk and back. (Handles overload.)

16
New cards

Backing store

Disk area storing swapped-out processes. (Fast enough for swapping.)

17
New cards

Contiguous allocation

Each process in one block. (Simple but fragmented.)

18
New cards

Holes

Free memory blocks of various sizes. (Fragmentation.)

19
New cards

First-fit

Use first hole big enough. (Fast.)

20
New cards

Best-fit

Use smallest suitable hole. (Less leftover.)

21
New cards

Worst-fit

Use largest hole. (Creates big leftovers.)

22
New cards

Limitations of relocation

External fragmentation; poor growth handling. (Rigid.)

23
New cards

External fragmentation

Free memory split into small pieces. (Wasted.)

24
New cards

Internal fragmentation

Allocated block larger than needed. (Wasted inside.)

25
New cards

Compaction

Shuffle memory to combine free space. (Expensive.)

26
New cards

Paging motivation

90/10 rule; only active pages needed. (Efficiency.)

27
New cards

Paging definition

Divide memory into fixed-size pages/frames. (Eliminates external fragmentation.)

28
New cards

Paging drawback

Internal fragmentation (½ page). (Small waste.)

29
New cards

Page table

Maps virtual pages to physical frames. (Translation.)

30
New cards

MMU

Hardware translating virtual to physical addresses. (Fast.)

31
New cards

Virtual address structure

Page number + offset. (Two parts.)

32
New cards

TLB

Cache of recent page translations. (Speeds up paging.)

33
New cards

TLB miss handling

Hardware or OS loads entry. (Extra cycle.)

34
New cards

Shared pages

Multiple processes map same physical page. (Efficient.)

35
New cards

Reentrant code

Code that can be shared safely. (No self-modification.)

36
New cards

Segmentation

Divide program into logical units (code, stack, heap). (Logical view.)

37
New cards

Segment table

Maps segment number + offset to physical memory. (Translation.)

38
New cards

Segmentation drawback

External fragmentation. (Variable sizes.)

39
New cards

Segmented paging

Segments divided into pages. (Combines benefits.)

40
New cards

Paging vs segmentation

Paging = fixed size; segmentation = logical units. (Different purposes.)

41
New cards

Combined approach

Segments paged into frames. (Flexible + scalable.)

42
New cards