Abstract
- An abstraction of that maps Virtual Address to Physical Address and Flash Memory. The mapping is handled by Memory Management Unit (MMU)
Handle Memory Fragmentation
With Virtual Address, Kernel decouples data placement from the Main Memory. It is able to break down data like Address Space into smaller sizes and fit them inside fragmented main memory. Thus solving the Memory Fragmentation issue.
Use storage as part of the memory
With virtual address, kernel is in control of labelling the memory. It is able assign some virtual address to point to the Flash Memory - Swap Space to have data of some Process (进程) stored outside of the main memory. However, we will suffer from Page Fault if we want to use these data.
C & Memory
Virtual Address
- Also known as Logical Address
- The addressing system for Virtual Memory, not bounded to physical Main Memory
- The address that the Process (进程) “thinks” it is using