您的位置:首页 > 移动开发

the mapping between virtual addresses and physical addresses

2017-11-11 15:00 363 查看
a page table is the data structure used by a virtual memory computer operating system to store the mapping between virtual addressess and physical addresses.

the virtual addresses are used by accessing process and the physical address used by accessing hardware.

the page table is where the operating system storess its mappings of  virtual addresses to physical addresses. 

the translation process

the cpu's memory management uint (MMU).store a cache of recently used mapping from the operating system's page table.this is called the translation lookaside buffer(TLB).which is an associative cache.

when a virtual address need to be translated into a physical address the TLB is serched first.if a mach is found.(a TLB  hit)the physical address is returned and  memory access can continue.however, there is no mach(called a TLB miss).the handler will typically
look up the address mapping in the page table to see whether the mapping exits(a page walk).if one exits,it is writen back ot the TBL.(this is must be done ,as the hardware accesses memory through the TLB in a virtual memory system).the fauting instrucation
is restarted(this may happen in parallel as well).this subsequent translation will found a TLB hit.and the memory access will continue.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: