describe what
reloaction
is
this is a mechanism provided by the memory management module that enables a process to be loaded anywhere in memory and still be able to function
note
name 4
tasks that the memory management modue
must carry out in order to provide a multitasking environment
the tasks this carrys out are:
describe the linux file
/proc/swaps
this is a file that contains details about the swap spaces that are available such as partition and file swaps.
describe the following state:
Modify bit
Reference bit
1
1
what state are the modify bit and reference bit in when:
Page modified and referenced
(dont swap highly likely to be used again)
what is
paged virtual memory
this is a modern approach that operating systems use to handle memory
it invloves slicing memory into what are known as pages typically one page will be 4KiB
it also involves processes being alloacted virtual memory and the MMU will always translate to physical addressses
TRUE
each process will have its own page table
true/false
each process has its own page table
this is a memory address that is used by an application program and executed by the processor
it does not correspond to the real location of the resource in memory but will later be mapped to a physical memory address represnting where the resource actually exists in memory
what is a
logical/virtual address
this involves:

how does a
virtual memory system
operate in 3 steps
false
the contents of the Translation look-aside buffer (TLB) is not saved upon a context switch.
instead it is flushed and repopulated for the new process
true/false
is the contents of the
Translation look-aside buffer (TLB)
saved on a context switch
name 2 instances upon which a
page fault can occur
this can occur when either:
describe the following state
Modify bit
Reference bit
1
0
what state are the modify bit and reference bit in when:
Page is modified and not referenced
(can be written to swap as is unlikely to be used again, this could be initialisation instructions or error handling instructions page)
when this occurs:
what events are called when a page table entry is marked as invladid
this is a part of the operating system kernel and is charged with the management of memory
what is the
Memory Management Module
This command is used to show information about virtual memory and various events such as interrupts
describe the linux command
vmstat
what is the default unit
used by the linux free command
the default unit that this uses is
kibibyte
this is cache that is dedicated to holding entries from a page table.
it is used by the Memory Management Unit so that it can translate pages from here instead of from main memory.
if the MMU always had to go to main memory then it would be a bottlneck for the CPU
what is the
Translation look-aside buffer (TLB)
the execution process for this is as follows:

describe the execution process of
paged virtual memory
what events are called when a page table entry is marked as invladid
when this occurs:
this is overcome by the operating system by
making use of a modify bit (dirty bit) and a reference bit which are stored with each entry in the page table and is updated by the MMU
how does the operating system appropriately decide which pages should be swapped in order to overcome swapping problems
what are 4 advantages and 1 disadvantage of paged virtual memory
advantages
Disadvantages:
this is a file that contains details about the swap spaces that are available such as partition and file swaps.
describe the linux file
/proc/swaps
if this was the case it would be catastrophic and a bottlneck for the cpu since the memory management unit would have to make two trips to main memory every time an instruction was executed
what would happen if the
Memory Mangement Unit (MMU) did not have the dedicated Translation look-aside buffer (TLB)
what is the
Translation look-aside buffer (TLB)
this is cache that is dedicated to holding entries from a page table.
it is used by the Memory Management Unit so that it can translate pages from here instead of from main memory.
if the MMU always had to go to main memory then it would be a bottlneck for the CPU
what were the
base and length registers
historically used for
these were historically used so that a virtual memory system could be implemented