Linux memory management. Linux uses demand paging where the virtual pages are only loaded into physical memory when needed by the process. Swapping occurs when a process needs to bring data from the virtual memory to the physical memory,

Authors Avatar

Linux Memory Management

Memory management is an important part of a computers operating system, even from the early days a program will require more and more memory than actually exists. A strategy to overcome this is to use a virtual memory, virtual memory make a system appear that it has more memory as it shares it with other processes. The memory management sub system in Linux provides

  • Large address spaces
  • Protection
  • Memory Mapping
  • Fair physical memory allocation
  • Shared virtual memory

 In a virtual memory system all of the addresses are virtual and not physical. The page table converts virtual to physical addresses. Each of the physical and virtual memory is split up into pages, usually the same size .On alpha AXP the page sizes are 8 Kbytes and on Intel x86 systems the pages are 4kbytes. Each of these pages has a page frame number (PFN).

Join now!

Linux uses demand paging where the virtual pages are only loaded into physical memory when needed by the process. Swapping occurs when a process needs to bring data from the virtual memory to the physical memory, if there is no space available an old page is swapped out of memory to bring in the new one. Linux the Least Recently Used (LRU) technique to efficiently choose pages which are to be removed from the system. This scheme requires every page in the system having an age which changes as the page is accessed. The more frequently that ...

This is a preview of the whole essay