Memory Management Unit (MMU)
As, CPU generates virtual address to get data from main memory. But main memory works with Physical address. So, Physical address is the basic need to get data form main memory. For this purpose, Memory management unit (MMU) comes into picture which converts virtual address to physical address.
MMU is a computer hardware component that responsible for all memory and caching operations which are associated with the CPU. MMU usually exist in CP but in some cases it operates on separate integrated circuit (IC) chip. It uses the Page Table.
The MMU has a section, named as translation look aside buffer (TLB). It contains some pages of running process and their corresponding virtual addresses to physical addresses. The concept of TLB, we will cover in next lecture.
Functions of Memory Management Unit
- Hardware memory management: it deals with RAM and cache memory.
- OS memory management: it deals with resources among objects and data structures.
- Application memory management: it allocates and manages the memory among programs.