<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TLB</title>
	<atom:link href="https://www.aitaocui.cn/tag/262997/feed" rel="self" type="application/rss+xml" />
	<link>https://www.aitaocui.cn</link>
	<description>翡翠玉石爱好者聚集地</description>
	<lastBuildDate>Mon, 28 Nov 2022 16:15:30 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>

<image>
	<url>https://www.aitaocui.cn/wp-content/uploads/2022/11/taocui.png</url>
	<title>TLB</title>
	<link>https://www.aitaocui.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>TLB(转译后备缓冲区)</title>
		<link>https://www.aitaocui.cn/article/375263.html</link>
					<comments>https://www.aitaocui.cn/article/375263.html#respond</comments>
		
		<dc:creator><![CDATA[毛新语]]></dc:creator>
		<pubDate>Mon, 28 Nov 2022 16:15:30 +0000</pubDate>
				<category><![CDATA[知识]]></category>
		<category><![CDATA[TLB]]></category>
		<guid isPermaLink="false">https://www.aitaocui.cn/?p=375263</guid>

					<description><![CDATA[TLB（Translation Lookaside Buffer）传输后备缓冲器是一个内存管理单元用于改进虚拟地址到物理地址转换速度的缓存。TLB是一个小的，虚拟寻址的缓存，其中每...]]></description>
										<content:encoded><![CDATA[</p>
<article>
<p>TLB（Translation Lookaside Buffer）传输后备缓冲器是一个内存管理单元用于改进虚拟地址到物理地址转换速度的缓存。TLB是一个小的，虚拟寻址的缓存，其中每一行都保存着一个由单个PTE组成的块。如果没有TLB，则每次取数据都需要两次访问内存，即查页表获得物理地址和取数据。</p>
</article>
<article>
<h1>概述</h1>
<h2 id="a-dee21f71">英文缩写</h2>
<p>Translation Lookaside Buffer的缩写，用于虚拟地址与实地址之间的交互，提供一个寻找实地址的缓存区，能够有效减少寻找物理地址所消耗时间。</p>
<h2 id="a-9ec2cd47">库文件</h2>
<p>OLE库文件，其中存放了OLE自动化对象的数据类型、模块和接口定义，自动化服务器通过TLB文件就能了解自动化对象的使用方法。</p>
<h1>基本概念</h1>
<p>TLB：Translation lookaside buffer,即旁路转换缓冲，或称为页表缓冲；里面存放的是一些页表文件（虚拟地址到物理地址的转换表）。</p>
<p>又称为快表技术。由于“页表”存储在主存储器中，查询页表所付出的代价很大，由此产生了TLB。</p>
<p>X86保护模式下的寻址方式：段式逻辑地址—〉线形地址—〉页式地址；</p>
<p>页式地址=页面起始地址+页内偏移地址；</p>
<p>对应于虚拟地址：叫page（页面）；对应于物理地址：叫frame（页框）；</p>
<p>X86体系的系统内存里存放了两级页表，第一级页表称为页目录，第二级称为页表。</p>
<p>TLB和CPU里的一级、二级缓存之间不存在本质的区别，只不过前者缓存页表数据，而后两个缓存实际数据。</p>
<h1>内部组成</h1>
<p>1：TLB在X86体系的CPU里的实际应用最早是从Intel的486CPU开始的，在X86体系的CPU里边，一般都设有如下4组TLB:</p>
<p>第一组：缓存一般页表（4K字节页面）的指令页表缓存（Instruction-TLB）；</p>
<p>第二组：缓存一般页表（4K字节页面）的数据页表缓存（Data-TLB）；</p>
<p>第三组：缓存大尺寸页表（2M/4M字节页面）的指令页表缓存（Instruction-TLB）；</p>
<p>第四组：缓存大尺寸页表（2M/4M字节页面）的数据页表缓存（Data-TLB）；</p>
<p>2：TLB命中和TLB失败</p>
<p>如果TLB中正好存放着所需的页表，则称为TLB命中（TLB Hit）；如果TLB中没有所需的页表，则称为TLB失败（TLB Miss）。</p>
<p>3:TLB条目数即TLB里面可以存储的表项数目，一般也叫entry数。</p>
<p>4：TLB的联合方式</p>
<p>1〉全相联方式：Athlon XP</p>
<p>2〉组相联方式：P4</p>
<p>当CPU执行机构收到应用程序发来的虚拟地址后，首先到TLB中查找相应的页表数据，如果TLB中正好存放着所需的页表，则称为TLB命中（TLB Hit）,接下来CPU再依次看TLB中页表所对应的物理内存地址中的数据是不是已经在一级、二级缓存里了，若没有则到内存中取相应地址所存放的数据。既然说TLB是内存里存放的页表的缓存，那么它里边存放的数据实际上和内存页表区的数据是一致的，在内存的页表区里，每一条记录虚拟页面和物理页框对应关系的记录称之为一个页表条目（Entry），同样地，在TLB里边也缓存了同样大小的页表条目（Entry）。</p>
</article>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aitaocui.cn/article/375263.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
