Memory Management Flashcards

1
Q

Which of the following is a benefit of allowing a program that is only partially in memory to
execute?
A) Programs can be written to use more memory than is available in physical memory.
B) CPU utilization and throughput is increased.
C) Less I/O is needed to load or swap each user program into memory.
D) All of the above

A

D- ALL OF THE ABOVE

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

In systems that support virtual memory, ____.
A) virtual memory is separated from logical memory.
B) virtual memory is separated from physical memory.
C) physical memory is separated from secondary storage.
D) physical memory is separated from logical memory

A

D- PHYSICAL MEMORY IS SEPARATED FROM LOGICAL MEMORY

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

The vfork() system call in UNIX ____.
A) allows the child process to use the address space of the parent
B) uses copy-on-write with the fork() call
C) is not intended to be used when the child process calls exec() immediately after creation
D) duplicates all pages that are modified by the child process

A

A- ALLOWS THE CHILD PROCESS TO USE THE ADDRESS SPACE OF THE PARENT

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

Belady’s anomaly states that ____.
A) giving more memory to a process will improve its performance
B) as the number of allocated frames increases, the page-fault rate may decrease for all page
replacement algorithms
C) for some page replacement algorithms, the page-fault rate may decrease as the number of
allocated frames increases
D) for some page replacement algorithms, the page-fault rate may increase as the number of
allocated frames increases

A

D- FOR SOME PAGE REPLACEMENT ALGORITHMS, THE PAGE-FAULT RATE MAY INCREASE AS THE NUMBER OF ALLOCATED FRAMES INCREASES

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

Optimal page replacement ____.
A) is the page-replacement algorithm most often implemented
B) is used mostly for comparison with other page-replacement schemes
C) can suffer from Belady’s anomaly
D) requires that the system keep track of previously used pages

A

B- IS USED MOSTLY FOR COMPARISON WITH OTHER PAGE-REPLACEMENT SCHEMES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
The \_\_\_\_\_ allocation algorithm allocates available memory to each process according to its
size.
A) equal
B) global
C) proportional
D) slab
A

C- PROPORTIONAL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
The \_\_\_\_ is the number of entries in the TLB multiplied by the page size.
A) TLB cache
B) page resolution
C) TLB reach
D) hit ratio
A

C- TLB REACH

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

. ________ allows the parent and child processes to initially share the same pages, but when
either process modifies a page, a copy of the shared page is created.
A) copy-on-write
B) zero-fill-on-demand
C) memory-mapped
D) virtual memory fork

A

A- COPY-ON-WRITE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
. \_\_\_\_\_ is the algorithm implemented on most systems.
A) FIFO
B) Least frequently used
C) Most frequently used
D) LRU
A

D- LRU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
. \_\_\_\_\_ occurs when a process spends more time paging than executing.
A) Thrashing
B) Memory-mapping
C) Demand paging
D) Swapping
A

A- THRASHING

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

Windows uses a local page replacement policy _____.
A) when a process exceeds its working set minimum
B) when a process exceeds its working set maximum
C) when the system undergoes automatic working set trimming
D) under all circumstances

A

B- WHEN A PROCESS EXCEEDS ITS WORKING SET MAXIMUM

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

Which of the following statements is false with regard to Solaris memory management?
A) The speed at which pages are examined (the scanrate) is constant.
B) The pageout process only runs if the number of free pages is less than lotsfree.
C) An LRU approximation algorithm is employed.
D) Pages selected for replacement may be reclaimed before being placed on the free list.

A

A- THE SPEED AT WHICH PAGES ARE EXAMINED (THE SCANRATE) IS CONSTANT

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

Which of the following statements is false with regard to allocating kernel memory?
A) Slab allocation does not suffer from fragmentation.
B) Adjacent segments can be combined into one larger segment with the buddy system.
C) Because the kernel requests memory of varying sizes, some of which may be quite small, the
system does not have to be concerned about wasting memory

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
The \_\_\_\_\_ is an approximation of a program's locality.
A) locality model
B) working set
C) page fault frequency
D) page replacement algorithm
A

B- WORKING SET

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
\_\_\_\_\_\_ allows a portion of a virtual address space to be logically associated with a file.
A) Memory-mapping
B) Shared memory
C) Slab allocation
D) Locality of reference
A

A- MEMORY MAPPING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
Systems in which memory access times vary significantly are known as \_\_\_\_\_\_\_\_\_\_.
A) memory-mapped I/O
B) demand-paged memory
C) non-uniform memory access
D) copy-on-write memory
A

C- NON-UNIFORM MEMORY ACCESS

17
Q

Which of the following is considered a benefit when using the slab allocator?
A) Memory is allocated using a simple power-of-2 allocator.
B) It allows kernel code and data to be efficiently paged.
C) It allows larger segments to be combined using coalescing.
D) There is no memory fragmentation.

A

D- THERE IS NO MEMORY FRAGMENTATION