linux虚拟内存管理中的页表项 [英] page table entry in linux virtual memory managment

查看:339
本文介绍了linux虚拟内存管理中的页表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果pte的当前位清零,内核如何知道它在硬盘中的位置,并将其传回物理内存。是的,我知道硬盘的LBA模式,说所有内存都可以通过序号访问,但是现在500G是硬盘的常用容量,80x86的地址线是32,加上4GB的地址,那么它如何处理500G或1TB,并与物理地址空间不同?

谢谢提前!

if a pte's present bit is clear, how does the kernel know where it lies in harddisk, and transfer it back to physic memory. Yes i know the LBA mode of harddisk which says all memory can be accessed by their ordinal,but nowadays 500G is a common capacity of harddisk,the address line of 80x86 is 32,which addrss up to 4GB,then how does it deal whith 500G or 1TB,and differenciate with the physical address space?
Thanks advance!

推荐答案

谁告诉你文件流中的位置是32位?通常,uint64类型用于此。当然,您不能总是将整个文件映射到物理内存,但实际上并不需要它,即使在64位指令集架构中也是如此,它们也在平面内存空间中使用uint64指针。 br $>


-SA
Who told you that the position in file streams are 32-bit? Usually, uint64 type is used for that. Of course, you cannot always map the whole file onto physical memory, but you don't really need it, even in 64-bit instruction-set architectures which also use uint64 pointers in flat memory space.

—SA


这篇关于linux虚拟内存管理中的页表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆