Chapter 9 - Main Memory Flashcards

1
Q

What is memory central to?

A

Memory is central to the operation of a modern computer system and consists of a large array of byes, each with its own address.

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

Describe one way to allocate an address space to each process.

A

One way to allocate an address space to each process is through the use of base and limit registers. The base register holds the smallest legal physical memory address, and teh limit specifies the size of the range.

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

When can binding symbolic addresses to actual physical addresses occur?

A

during:
1. compile
2. load
3. execution time

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

What is an address generated by the CPU?

A

An address generated by the CPU is known as a logical address, which the memory management unit (MMU) translates to a physical address in memory.

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

Mention one approach to allocate memory.

A

One approach to allocating memory is to allocate partitions of contiguous memory of varying sizes. These partitions may be allocated based on the three possible strategies:
1. first fit
2. best fit
3. worst fit

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

What do modern operating systems use to manage memory?

A

Modern operating systems use paging to manage memory. In this process, physical memory is divided into fixed-sized blocks called frames and logical memory into blocks of the same size called pages.

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

What happens when paging is used?

A

When paging is used, a logical address is divided into two parts: a page number and a page offset. The page number servers as an index into a preprocess page table that contains the frame in the physical memory that holds the page. The offset is the specific location in the frame being referenced.

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

What is a translation look-aside buffer (TLB)?

A

A translation look-aside buffer (TLB) is a hardware cache of the page table. Each TLB entry contains a page number and its corresponding frame.

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

What does using a TLB in address translation involve?

A

Using a TLB in address translation for paging systems involves obtaining the page number from the logical address and checking if the frame for the page is in the TLB. If it is, the frame is obtained from the TLB. If the frame is not present in the TLB, it must be retrieved from the page table.

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

What does hierarchical paging involve?

A

Hierarchical paging involves dividing a logical address into multiple parts, each referring to different levels of page tables. As addresses expand beyond 32 bits, the number of hierarchical levels may become large. Two strategies that address this problem are hashed page tables and inverted page tables.

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

What does swapping do?

A

Swapping allows the system to move pages belonging to a process to disk to increase the degree of multiprogramming.

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

How many levels of page tables does the intel 32-bit architecture have?

A

The Intel 32-bit architecture has two levels of page tables and supports either 4-KB or 4-MB page sizes. This architecture also supports page-address extension, which allows 32-bit processors to access a physical address space larger than 4 GB. The x86-64 and ARMv9 architectures are 64-bit architectures that use hierarchical paging.

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