Memory Management Flashcards

1
Q

Address Binding?

A

Programs on disk, ready to be brought into memory to execute form an input queue

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

Logical vs Physical Address Space?

A

The concept of a logical address space that is bound to a separate physical address space is central to proper memory management

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

Logical Address?

A

Generated by the CPU, also referred to as virtual addres

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

Physical Address?

A

Address seen by the memory unit

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

Logical Address Space?

A

Is the set of all logical addresses generated by a program

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

Physical Address Space?

A

Is the set of all physical addresses generated by a program

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

MMU?

A

Memory Management Unit

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

What does MMU do?

A

Hardware device that at run time maps virtual to physical address.

Many methods possible, covered in the rest of this chapter.

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

The user program deals with what?

A

Logical addresses it never sees the real physical addresses.

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

Dynamic relocation using a relocation register?

A

Routine is not loaded until it is called
Better memory-space utilization
Unused routine is never loaded
All routines kept on disk in relocatable load format

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

Contiguous Allocation?

A

Main memory must support both OS and user processes
Limited resource, must allocate efficiently
Contigous allocation is one early method

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

Main memory two partitions?

A

Resident operating system
User processes then held in high memory
Each proces contained in a single contiguous section of memory

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

Different Registers?

A

base register contains value of smallest physical address.

Limited register contains range of logical addresses each logical address must be less than the limit register

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

Multiple-Partition Allocation?

A

Degree of multiplrogramming limited by number of partitions
Variable-partition sizes for efficiency
Hole - block of available memory; holes of various size are scattered through memory
When a process arrives, it is allocated memory from a hole large enough to accomodate it

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

Dynamic Storage-Allocation Problem?

A

First-fit: Allocate first hole that is big enough
Best-Fit: Allocate the smallest hole that is big enough, must search entire list, unless ordered by size.
Worst-Fit: Allocate the largest hole, must also search entire list.

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

Fragmentation?

A

External Fragmentation

Internal Fragmentation

17
Q

External Fragmentation?

A

Total memory space exists to satisfy a request, but it is not contiguous

18
Q

Internal Fragmentation?

A

Allocated memory may be slightly larger than requested memory, this size difference is memory internal to a partition, but not being used.

19
Q

How do you reduce external fragmentation?

A

Compaction
Shuffle memory contents to place all free memory together in one large block
Compaction is possible only if relocation is dynamic, and is done at execution time.

20
Q

Segmentation?

A

Memory-Management scheme that supports user view of memory

A program is a collection of segments

21
Q

What is a segment?

A
Segment is a logical unit such as:
Main program
Procedure
Function
Method
Object
Local vars, Global Vars
22
Q

Segmentation Architecture?

A

Logical address consists of a two tuple

segment number, offset

23
Q

Segment Table?

A

Maps two dimensional physical addresses

24
Q

Each Segment Table has?

A

base - contains the starting physical address where the segments reside in memory
limit - specifies the length of the segment

25
Q

STBR?

A

Segment-Table base Register

Points to segment table’s memory location in memory

26
Q

STLR?

A

Segment-Table Length Register

Indicates number of segments used by a program

27
Q

Paging?

A

Physical address space of a process can be noncontiguous; process is allocated physical memory whenever the latter is available

28
Q

Paging frag?

A

Avoids external fragmentation

Avoids problem of varying sized memory chunks

29
Q

Paging, frame, page?

A

Dividing physical memory into fixed-sized blocks called frames

Divide logical memory into blocks of the same size called pages.

30
Q

Address Translation Scheme?

A
Page Number (p)
Page Offset (d)
31
Q

Page Number?

A

Used as an index into a page table which contains base addresses of each page in physical memory

32
Q

Page Offset?

A

Combined with base address to define the physical memory address that is sent to the memory unit

33
Q

What is ARM?

A

Dominant mobile platform chip.

Modern, energy efficient, 32-bit CPU