1 - Memory Management Flashcards

1
Q

If program A is loaded into memory starting at physical (real) address 1000 with logical (virtual) address 23, where is it bound?

A

1023

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

What does a process consist of

A

Code, variables and constants

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

Give Kibibytes in bytes

A

2^10

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

Give Mebibytes in bytes

A

2^20

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

Give Gibibytes in bytes

A

2^30

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

Segmentation

A

Splitting a process up logically. Each segment has read, write and execute protection

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

What is paging?

A

Paging splits process up into smaller size parts of equal size

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

What is a page in real memory called?

A

Frame

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

Pros and cons of pure paging

A

Poor Protection/sharing

Little wasted space

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

What does a page table denote?

A

Where each of the process’ virtual pages are in main memory

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

Demand Paging

A

Wait until a process makes reference to a page before loading.

upon page fault (page not in memory) load it rom backing store

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

What is the valid-invalid bit?

A

Valid if page is in memory

Invalid if not

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

What is page replacement?

A

When a free page is not available, use a page replacement algorithm to deicide victim frame to replace

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

FIFO Page Replacement

A

First in First Out.

Simple queue of page age

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

Modified Bit

A

Set to 1 when page is changed in main memory.

Speeds up replacement as only need to write to backing store if changed

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

What is Thrashing?

A

Running processes are spending more time loading pages into memory than executing code

Reduce degree of multiprogramming to stop it

17
Q

Define working set

A

Set of pages accessed by a process in the past x ref

Each set being a locality

18
Q

Working Set Size

A

Tells us how many pages are in the WS of i (ie actively in use)

D <= m to avoid thrashing (m is total num of frames avail.)

19
Q

What is total demand?

A

D = WSS(i) where that is the sum of all processes working set sizes

20
Q

What is an inverted page table?

A

A table that reflects the state of the real memory

Find by using the pair (process_id, virtual page number)

Resort to process page table if virtual page not found in main memory

21
Q

What is Belady’s Anomaly?

A

More frames = more page faults in some ref strings