zoukankan      html  css  js  c++  java
  • Operating System: Three Easy Pieces --- Paging: TLB (Note)

    Using paging as the core mechanism to support virtual memeory can lead to high performance

    overheads. By chopping the address space into small, fixed-sized units (pages), paging requires

    a large amount of mapping information. Because that mapping information is generally stored in

    physical memory, paging logically requires an extra memory lookup for each virtual address generated

    by program. Going to memory for translation information before every instruction fetch or explicit 

    load or store is prohibitively slow. And thus our problem: How to speed up address translation?

    when we want to make things fast, the OS usually needs some help. And help often comes from the

    OS's old friend: the Hardware. To speed address translation, we are going to add what is called a 

    translation-lookaside buffer, or TLB. A TLB is a part of the chip's memory-management unit (MMU),

    and is simply a hardware cache of popular virtual-to-physical address translations; thus a better name

    would be an address-translation cache. Upon each virtual memory reference, the hardware first 

    checks the TLB to see if the desired translation is held therein; if so, the translation is performed

    quickly withour having to consult the page table which has all translations. Because of their tremendous

    performance impact, TLBs in a real sense make virtual memeory possible. 

  • 相关阅读:
    C#练习记录(统计字符串中的字符数和计算最大值)
    C#练习记录(交换两个数)
    Cyberdebut's daily record_3
    SWJTU_LightMoon Training #16~20 补题
    zzh训练日志3
    SWJTU_LightMoon Training #11~15 补题
    Megumin's daily record3
    2017网络赛
    zzh的训练日志2
    Cyberdebut's daily record_2
  • 原文地址:https://www.cnblogs.com/miaoyong/p/4851810.html
Copyright © 2011-2022 走看看