22 - Swapping Policies

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/32

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:23 PM on 9/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

33 Terms

1
New cards

Memory Pressure

forces the OS to start paging out to make room for actively-used pages

2
New cards

Encapsulated

deciding which page to evict is _ within the replacement policy of the OS

3
New cards

Minimize the number of cache misses

cache management, goal in picking a replacement policy for this cache is to _ _ _ _ _ _

4
New cards

(Phit * Tm) + (Pmiss * Td)

formula of AMAT

5
New cards

Cost of accessing memory

meaning of Tm

6
New cards

Cost of accessing disk

meaning of Td

7
New cards

Probability of finding data

meaning of Phit

8
New cards

Probability of not finding data

meaning of Pmiss

9
New cards

Optimal Replacement Policy

leads to the fewest number of misses overall

10
New cards

Future

replaces the page that will be accessed furthest in the _ , optimal replacement policy

11
New cards

Fewest possible

resulting in the _ _ cache misses , optimal replacement policy

12
New cards

Optimal Replacement Policy

serve only as a comparison point, to known how close we are to perfect

13
New cards

FIFO

pages are placed in a queue when they enter the system

14
New cards

Belady’s Anomaly

expect the cache hit rate to increase when the cache gets larger. But in this case, with FIFO, it gets worse

15
New cards

Random

picks a random page to replace under memory pressure

16
New cards

History

lean on the past and use _

17
New cards

Recency

the more recently a page has been accessed the more likely it will be accessed again

18
New cards

LRU

algorithm of recency

19
New cards

Frequency

if a page has been accessed many times, it should not be replaced as it clearly has some value

20
New cards

LFU

algorithm of frequency

21
New cards

No Locality Workload

each reference is to a random page within the set of accessed page

22
New cards

100

workload accesses _ unique pages over time

23
New cards

Random

choosing the next page to refer to at _

24
New cards

Every memory reference

to keep track of which pages have been least-and-recently used, the system has to do some accounting work on _ _ _ (implementing historical algorithm)

25
New cards

Referenced, 1

approximating LRU, whenever a page is _ the use bit is set by hardware to _

26
New cards

Never clears, OS

approximating LRU, hardware _ _ clears the bit; though that is the responsibility of the _

27
New cards

Clock Algorithm

all pages of the system arranged in a circular list

28
New cards

Clock Algorithm

a clock hand points to some particular page to begin with

29
New cards

0

clock algorithm, the algorithm continues until it finds a use bit that is set to _

30
New cards

Dirty Pages

the hardware include a modified bit or dirty bit

31
New cards

Prefetching

the OS guess that a page is about to be used, and this bring it in ahead of time

32
New cards

Clustering, Grouping

collect a number of pending writes together in memory and write them to disk in one write

33
New cards

Thrashing

memory is oversubscribed and the memory demands of the set of running processes exceeds the available physical memory