21. Beyond physical memory: Mechanisms Flashcards

1
Q

How is act of accessing page that is not currently in memory, but on disk, called?

A

Page fault

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

What happens on a page fault?

A

‘trap’ occurs, and the request is dispatched to page-fault handler which is run by OS

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

Why is page fault services by OS in the hardware-managed TLBs?

A

Because the disk access is so slow, the overhead of OS is unnoticable and hardware would also need to know how to operate with I/O directly.

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

Where is disk address stored when page is swapped to disk?

A

In bits used for PFN in PTE

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

What bit is used to indicate the page is not in memory right now?

A

Present bit

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

What does OS implement to decide when to evict page?

A

High and low watermarks.

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

How is LW and HW utilized?

A

When lower than LW pages available, a thread runs to evict all pages until HW pages available

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

How is thread that uses LW and HW called?

A

Swap or page daemon

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

Beside the swap space, where can some specific area of address space be swapped? And what area is it?

A

The code area. It can be swapped back to the file on disk where it was loaded from.

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

When memory is full and we need to put a page in there from swap space, how is process of choosing a current page to evict called?

A

Page replacement policy

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

How can a process that swap daemon performs be optimized?

A

By grouping or clustering the number of pages to write them to disk

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

What does OS do where is no memory to swap pages in?

A

It notifies swap/page daemon and it runs in background freeing up pages according to LW and HW.

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