页面和页面文件
页面是 4 kb 的连续块,那么什么是页面文件? 32位进程如何使用它?
A page is a contiguous of block of 4 kb and so what is page file? how it is used by 32 bit processes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如今,大多数处理器都支持一种称为“虚拟内存”的概念,它让程序的行为就像计算机中的物理内存多于内存一样。当访问该“内存”时,操作系统会从某处的存储中获取相应的页面,并进行设置,使其看起来一直在那里……而程序却一无所知。这有时涉及将其他页面放入存储中,因为正如我所提到的,我们假装内存比实际存在的要多——因此,实际执行某些操作的程序是使用物理 RAM 的程序,而懒惰者会被推送到存储中直到他们决定做某事。
页面文件是这些页面在不使用时存储在 Windows 中的位置。在某些操作系统中它也称为“交换文件”。
Most processors these days support a concept called "virtual memory", which lets programs act like there's more memory than is physically in the computer. When that "memory" is accessed, the operating system gets a corresponding page from storage somewhere, and sets things up so it looks like it's always been there...and the program is none the wiser. This sometimes involves putting other pages out to storage, since as i mentioned, we're pretending there's more memory than there is -- so the programs that are actually doing something are the ones using physical RAM, and the slackers get pushed out to storage til they decide to do something.
A page file is where those pages are stored in Windows when they're not in use. It's also called a "swap file" in some OSes.