Physical mem vs virtual mem
Virtual memory has many purposes and advantages:
The way to achieve that is to have a Virtual Address Space different from the Physical Memory Address. The CPU is equipped to handle Virtual Memory and will translate the Virtual address to its Physical equivalent.(Using an MMU)
Memory on X86_64 CPUs is handled in Pages which are 4KB long, the kernel keeps a Page Table that specify where the CPU should look for a given Page frame.
This makes Memory handling easier as you don't need Physical Memory to be contiguous for Virtual Memory to be.
page
page table
TLB