|
此文章由 uni 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 uni 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 lingyang 于 2012-1-11 22:41 发表 
nyway, different ppl has different flavour.
the bottom line is If you don't have virtual memory setup you can't use all the RAM you have. simply because Windows preallocates virtual memory in anticipation of a possible need for it, even though that allocated virtual memory may never be used at all. Without enabling it, that allocation has to be made in real memory, thus tying up that memory and preventing it from being used for any purpose. Simple like that.
不知是我英文不好,还是你的描述有问题,或者你说的不是Windows系统?但是实在难以想象会有任何操作系统需要用物理内存来用作虚拟内存的!或者你可以指明你的引用的出处? 在我看来,虚拟内存存在的唯一原因是解决物理内存不够用的问题,用物理内存来实现虚拟内存的做法是本末倒置的。
在Windows下,内存足够情况下(现在阶段我觉得3G就够用了),禁用虚拟内存绝对有好处.我有的时候非常怀疑即使在物理内存有空闲的情况下,windows可能还是会将一些闲置的内存交换到硬盘的虚拟内存中。 另外,在Windows下,从来没有听说过一定要启用虚拟内存,否则会在物理内存中分配虚拟内存的做法。以前windows采用内存映射表的方法来管理物理内存以及虚拟内存, 对系统而言其实可以简单的理解为物理内存以及虚拟内存是一块管理的,只是系统会自动交换将最不需要访问的内存交换到虚拟内存中, 把最需要访问的切换到物理内存中。
[ 本帖最后由 uni 于 2012-1-12 00:03 编辑 ] |
|