如果我的计算机有很多ram,我应该禁用页面文件吗?

如果你有一台内存很大的电脑,你是否会从禁用页面文件中得到好处,或者你应该保持足够好的状态?今天的超级用户问答讨论这个话题,以帮助满足读者的好奇心。...

如果我的计算机有很多ram,我应该禁用页面文件吗?

如果你有一台内存很大的电脑,你是否会从禁用页面文件中得到好处,或者你应该保持足够好的状态?今天的超级用户问答讨论这个话题,以帮助满足读者的好奇心。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

照片由柯林·安德森(Flickr)提供。

问题

超级用户阅读器user1306322想知道如果一个人的计算机有大量RAM,禁用页面文件是否有好处:

Imagine that I have t*** of RAM, say 64 GB, for example. That is a lot, even for gaming computers. Now the default location of a page file in Windows is on the main operating system drive (be it HDD or SSD), which is faster in general but still not as fast as RAM.

Something tells me that disabling the page file on the hard-drive or creating a virtual RAM drive and letting the page file be there could make Windows move all its virtual memory to RAM and increase the system’s performance. But I am not very knowledgeable in that area, so that might not be true at all.

I tried both, but I could not ****yze the results to reach a definite conclusion with my knowledge level in memory-related matters. Would this work? If not, then why?

用户1306322是否会从禁用页面文件中获益?

答案

超级用户贡献者David Schwartz为我们提供了答案:

No matter how much RAM you have, you want the system to be able to use it efficiently. Not having a page file at all forces the operating system to use RAM inefficiently for two reas***:

  • First, it cannot make pages discardable, even if they have not been accessed or modified in a very long time, which forces the disk cache to be **aller.
  • Second, it has to reserve physical RAM to back allocati*** that are very unlikely to ever require it (for example, a private, modifiable file mapping), leading to a case where you can have plenty of free physical RAM and yet allocati*** are refused to avoid over-committing.

C***ider, for example, if a program makes a writable, private memory mapping of a 4 GB file. The operating system has to reserve 4 GB of RAM for this mapping because the program could conceivably modify every byte and there is no place but RAM to store it. So from the start, 4 GB of RAM is basically wasted (it can be used to cache clean disk pages, but that is about it).

You need to have a page file if you want to get the most out of your RAM, even if it is never used. It acts as an insurance policy that allows the operating system to actually use the RAM it has, rather than having to reserve it for possibilities that are extraordinarily unlikely.

The people who designed your operating system’s behavior are not fools. Having a page file gives the operating system more choices, and it will not make bad ones.

There is no point in trying to put a page file in RAM. And if you have lots of RAM, the page file is very unlikely to be used (it just needs to be there), so it does not particularly matter how fast the device it is on is.

请务必通过下面的链接查看有关该主题的生动讨论主题!


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-11 05:24
  • 阅读 ( 184 )
  • 分类:互联网

你可能感兴趣的文章

如何在windows10中节省磁盘空间

... 如果您使用的是1 TB HDD,这可能不是一个问题,但在32或64 GB SSD上浪费这么多空间可能会令人沮丧。(您应该使用SSD!)幸运的是,windows10提供了一些功能和方法来减少操...

  • 发布于 2021-03-14 10:03
  • 阅读 ( 216 )

使用系统技术使您的电脑达到最高性能

...台应用程序浪费的内存分配给活动程序。AcceleWrite通过使计算机更快地写入硬盘驱动器来提高性能。 ...

  • 发布于 2021-03-15 05:07
  • 阅读 ( 210 )

6个默认的windows文件和文件夹,您不应触摸

...本上,您将看到一个附加的ProgramFiles(x86)文件夹。您的计算机在那里存储32位软件,而64位兼容软件在标准程序文件文件夹中。 ...

  • 发布于 2021-03-15 10:38
  • 阅读 ( 176 )

cleanmem-一个windows内存清理器可以工作吗?

... 每个人都希望让他们的计算机运行得更快,而不必购买升级或删除一些软件。我们回顾了多年前的免费工具CleanMem,发现它对Windows的RAM使用有影响。但是这真的会加速你的电脑吗?我们来看看。...

  • 发布于 2021-03-16 14:22
  • 阅读 ( 251 )

如何查看您的pc中有多少ram(及其速度)

计算机的RAM是它用来运行应用程序和打开文件的快速短期内存。你的计算机内存越多,你一次能做的事情就越多。下面是如何检查你的系统有多少。 我们还将向您展示如何检查RAM的速度。就像几乎所有的技术一样,除了电池,RA...

  • 发布于 2021-04-03 06:52
  • 阅读 ( 278 )

不要抱怨你的浏览器使用了大量的内存:这是一件好事

...一些宝贵的资源,去使用那些让你的生活更方便的功能。计算机一直都是这样工作的。 你的浏览器比以前做得更多。还记得当时的网络只是一堆背景糟糕的静态HTML页面和偶尔的动画GIF吗?那些日子早就过去了。现在,您可以使...

  • 发布于 2021-04-07 01:04
  • 阅读 ( 213 )

什么是Windows10中的内存压缩?

...中有9gb的存储空间,那么至少1gb必须被“调出”并存储在计算机磁盘上的页面文件中。与RAM相比,访问页面文件中的数据非常慢。 通过内存压缩,一些9gb的数据可以被压缩(就像压缩文件或其他压缩数据可以被压缩一样)并保...

  • 发布于 2021-04-07 10:18
  • 阅读 ( 320 )

什么是windows页面文件,您应该禁用它吗?

Windows使用一个页面文件来存储计算机随机存取内存填满时无法保存的数据。虽然您可以调整页面文件设置,但Windows可以自己管理页面文件。 对Windows页面文件有点误解。人们把它看作是速度变慢的原因,因为使用页面文件比使...

  • 发布于 2021-04-08 16:21
  • 阅读 ( 180 )

如何让windows在关机时清除页面文件(以及何时清除)

...入0,覆盖任何现有数据来实现这一点。如果有人从您的计算机中取出硬盘,他们无法检查页面文件以查找可能存储在内存中的任何潜在敏感数据。 启用此功能确实有缺点。这会使你的电脑需要更长的时间才能关机。你的关机时...

  • 发布于 2021-04-08 16:22
  • 阅读 ( 149 )

什么是固态硬盘(ssd),我需要它吗?

...年。最早的是基于RAM的,成本太高,只能在超高端和超级计算机中出现。在20世纪90年代,基于Flash的ssd出现了,但对于消费市场来说仍然过于昂贵,在专业计算领域之外几乎没有什么起色。整个21世纪,闪存的价格持续下跌,到...

  • 发布于 2021-04-09 01:46
  • 阅读 ( 297 )
山佬的逼账号
山佬的逼账号

0 篇文章

相关推荐