Memory Management (paging, segmentation and virtual memory)
1.2.1 Systems Software
Practise exam questionsSystems Software — Note 2 of 8
Candidates need to understand how operating systems manage memory. They need to understand the need for, purpose and function of paging to divide memory into usable fixed-size pages and how this aids in the transfer of memory for example virtual memory. Candidates need to understand what is meant by segmentation and how memory is divided into segments to allow access to memory. Candidates need to understand what is meant by virtual memory and why this is needed in a computer system. Candidates need to understand how paging is used in virtual memory, and the benefits and drawbacks of having and using virtual memory in a computer system.
The operating system must share RAM between the OS and all running programs, keep each program's memory separate and make use of secondary storage when RAM is full. Paging, segmentation and virtual memory are the techniques used.
Memory is divided into fixed-size blocks called pages. A program's pages can be stored in any free page frames in RAM, not necessarily next to each other. A page table maps each page to its physical location.
Memory is divided into variable-size logical blocks called segments, matching the structure of the program (e.g. a subroutine or a data structure).
Part of secondary storage used as an extension of RAM. Pages not currently needed are swapped out to disk and swapped back into RAM when needed.
When the computer spends more time swapping pages between RAM and disk than executing instructions, causing it to slow down dramatically.
Ready to test yourself?
Practise 1.2.1 questions