返回列表 发帖
禁止 Page File 只会会浪费内存。Page File 大小不用跟内存大小挂勾,亦不必比内存大,Page File + 内存 >= 系统 + 运行程序需要就行了。

内存充足的话 Page File 小设 100mb 也可以,设成 10g 也不会影响性能,但记紧不要设上限。

TOP

回复 11# akwak 的帖子

http://members.shaw.ca/bsanders/ ... moryPageFileEtc.htm 是官方 knowledge base 的完整文章,看完便会明白我的说法,下面是部份 excerpt:  

Most newer computers will have more than I GB of RAM and, in most cases, there is sufficient RAM available that having more virtual memory than the available RAM is a relatively rare occurrence.  There is little point in allocating a large minimum size pagefile, since it typically won’t be used.  However, having a relatively large maximum will avoid “out of virtual memory” conditions without dedicating a big chunk of disk space for that rare situation.

A common recommendation is to make the page file 1.5 times the size of the installed RAM.  This recommendation makes sense only for computers with small amounts of RAM (256 MB or less)...


An argument sometimes made is that the minimum pagefile has to be at least the size of the RAM so that a full memory dump can be taken when the operating system crashes.  However, this is not a very powerful argument because:...

The best way to size the pagefile is to monitor how much of the pagefile is in use and the system paging activity.  If very little of the pagefile is ever used, there is not much point in having a large minimum size.  Conversely if the pagefile is typically 80% or more used, increasing the minimum size may be advantageous.  See 2.8. Monitoring RAM and Virtual Memory usage for more information about monitoring memory and pagefile use.


至于不设 Page File 上限可能会做成碎片,这只会在 Page File + RAM 不够用的情况下发生。要是真的发生,则表示 RAM 不充足,要是不能再添加 RAM 可以加大 Page File。而即使 Page File 出现碎片,以后可以 defrag 及加大,总比程序/系统崩溃要强。

[ 本帖最后由 AY 于 2009-1-28 00:02 编辑 ]

TOP

返回列表