Main Memory Flashcards

1
Q

This sits between main memory and CPU registers

A

Cache

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

These two registers define logical address space usable by a process

A

Base and limit registers

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

A device that maps virtual to physical addresses

A

Memory Management Unit

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

Simple Scheme

A

A scheme where a relocation register just adds a base value to an address

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

Swapping

A

Allowing the physical memory space of a process to exceed physical memory by temporarily moving the process to backing store before being brought back for continued execution.

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

Backing Store

A

A fast disk large enough to accommodate copies of all memory images

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

Roll Out / Roll In

A

A swapping variant for priority-based scheduling where lower priority processes are swapped out so a higher priority process can be loaded.

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

Solutions to Dynamic Storage-Allocation Problem

A

First Fit
Best Fit
Worst Fit

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

First Fit

A

Allocate the first hole big enough

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

Best Fit

A

Allocate the smallest hole big enough, must search entire list

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

Worst Fit

A

Allocate the largest hole by searching entire list

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

Internal Fragmentation

A

Occurs when allocated memory might be slightly larger than requested memory.

Physical memory is divided into fixed-size frames with a power of 2 between 512b and 16MB.
The logical memory is divided into same-size blocks called pages.
A page table is used to translate logical and physical addresses. (storing page number (p) as an index for the page table and offset (d) which is combed with the base address to find the physical memory address.)
Free-frame list is maintained to keep track of frames that are free for allocation.

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

External Fragmentation

A

When the total memory space does exist but is not contiguous and is then reduced by compaction where the free memory is relocated to be together in one block. This relocation must be dynamic.

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

Transition Look-aside Buffer (TLB)

A

A cpu cache that memory management hardware uses to improve virtual address translation speed.

Typical small , 64 - 1024 entries
On miss, value loaded to TLB for faster access next time
TLB is associative (searched in parallel)

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

EAT (Effective Access Time)

A

(1 - e) * a + (2 + e) (1 - a)

e = time unit, a = hit ratio

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

Hashed Page Table

A

A page table with virtual page numbers hashed into the table.

Each element has:
Virtual Page Number
Value of Mapped Page Frame
A Pointer to Next Element