linux - TLB translation vs cache -


i having doubt regarding memory management in operating systems.i know cache temporary storage location used speed memory accesses whereas tlb used speed translation virtual address physical address.

  1. now if virtual memory address generated,what first step taken?
  2. if first step referring tlb , generating physical address, second step taken?(is referring cache see whether data stored in cache)?
  3. do modern computers use tlbs?
  4. how cpu know page table located?

  1. it depends mean "generated". if meant "read", first step either tlb if address has been translated or, if cache supports virtual addresses, in cache see if there entry corresponding virtual address (and if belongs appropriate process, virtual address not enough).
  2. if first step virtual physical translation, cache physical addresses. assuming want read, indeed next step @ cache.
  3. yes do. processors using virtual memory use tlb.
  4. yes, depends on architecture. on intel(x86) processor, instance, page table pointer stored cr3 register.

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -