虚拟内存是无限的吗? [英] Is Virtual memory infinite?

查看:142
本文介绍了虚拟内存是无限的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一次采访中有人问我虚拟内存是否无限?我回答说这不是无限的.然后,面试官问了一下解释,我的建议是,在Windows中,我们确实有一种手动方式将虚拟内存配置为一定的限制.

I have been asked in an interview if virtual memory is infinite? I answered saying that it is not infinite. Then the interviewer asked the explanation and what I suggested was that in windows we do have a manual way to configure virtual memory to a certain limit.

我想知道虚拟内存是否真的是无限的吗?

I would like to know if Virtual memory is really Infinite?

推荐答案

首先,请忘记虚拟内存受计算机指针大小限制的想法.

虚拟内存限制与寻址空间不同.使用分页,与基于指针的地址空间相比,您可以寻址更多的虚拟内存.

Virtual memory limits are not the same as addressing space. You can address more virtual memory than is available in your pointer-based address space using paging.

  • 虚拟内存上限由 操作系统:例如,在32位Windows上 限制是16TB,并且在64位上 Windows的限制为256TB.
  • 虚拟内存在物理上也受到 可用磁盘空间.
  • Virtual memory upper limits are set by the OS: for example, on 32-bit Windows the limit is 16TB, and on 64-bit Windows the limit is 256TB.
  • Virtual memory is also physically limited by the available disc space.

要获得出色的概述,以解决各种误解,请参见以下内容:

For an excellent overview, which addresses various misconceptions, see the following:

http://blogs.msdn.com/b/ericlippert/archive/2009/06/08/out-of-memory-does-not-refer-to-physical-memory.aspx

这篇关于虚拟内存是无限的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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