Week 7 - Memory Management Flashcards

1
Q

What is internal memory fragmentation?

A

When memory is split into equal size blocks, if the data stored in a block is less than the size of the block, there are gaps in memory that are left unused.

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

What is external memory fragmentation?

A

When there is enough space in memory to store new data, but the data can’t be stored in one continuous segment.

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

What causes internal fragmentation?

A

Paging and fixed partitioning

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

What causes external fragmentation?

A

Segmentation and dynamic partitioning

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

What is a page fault?

A

An interrupt that occurs when a process tries to access a block of memory not currently stored in memory

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

Virtual memory is implemented using demand paging. What is demand paging?

A

A page is only copied from virtual memory into physical memory when a program tries to access it.

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

What are the two solutions to prevent thrashing?

A

Working set model - Define the working set as the set of pages used in the most recent x page references. Keep only the working set in main memory.
Page-fault frequency – Give process additional frames if page fault frequency high. Remove frame from process if page fault rate low.

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