如果我的計算機有很多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
  • 閱讀 ( 41 )
  • 分類:網際網路

你可能感興趣的文章

Windows10中7種修復緩慢啟動時間的方法

... 如果您沒有看到這裡的快速啟動,您沒有啟用休眠,因此它不會出現。要啟用休眠,請開啟管理員命令提示符或PowerShell視窗。您可以透過右鍵單擊開始按鈕或單擊Win+X並選...

  • 發佈於 2021-03-11 02:02
  • 閲讀 ( 57 )

關閉時windows可以自動清除的5項內容

... 如果你有你自己的建議分享一些東西自動清除關閉,讓我們知道在下面的評論。 ...

  • 發佈於 2021-03-13 06:17
  • 閲讀 ( 45 )

6個預設的windows檔案和資料夾,您不應觸控

...多空間。只要稍加搜尋,就可以找到隱藏的Windows快取,如果需要回收空間,可以安全地清除這些快取。 ...

  • 發佈於 2021-03-15 10:38
  • 閲讀 ( 53 )

cleanmem-一個windows記憶體清理器可以工作嗎?

...意,在我們的測試中,Panda Antivirus將下載視為威脅,因此如果您決定嘗試此工具,請小心。 ...

  • 發佈於 2021-03-16 14:22
  • 閲讀 ( 41 )

提高電腦效能的10個快速步驟

...。 你真的需要蒸汽啟動時,你登入到你的電腦,例如?如果你在這臺電腦上所做的只是遊戲,那麼答案可能是肯定的。如果是多功能PC,答案几乎肯定是“不”。你不想關閉任何關鍵任務,即使它確實有“高”的影響,但要好好...

  • 發佈於 2021-04-02 05:59
  • 閲讀 ( 58 )

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

...的RAM中。 你擁有的記憶體越多,你一次能做的就越多。如果您沒有足夠的RAM用於開啟的應用程式,則系統會減慢速度,因為Windows(或其他作業系統)必須將資料移入和移出系統驅動器上的頁面檔案。如果記憶體不足,甚至可能...

  • 發佈於 2021-04-03 06:52
  • 閲讀 ( 39 )

什麼是Windows10中的記憶體壓縮?

...在系統記憶體中儲存的資料比其他方法儲存的資料要多。如果您訪問工作管理員並檢視記憶體使用情況的詳細資訊,您可能會看到一些記憶體被“壓縮”。這就是它的含義。 什麼是記憶體壓縮(memory compression)? 記憶體壓縮是Win...

  • 發佈於 2021-04-07 10:18
  • 閲讀 ( 73 )

如何讓windows更快地關閉

...以透過移除計算機硬碟並檢查頁面檔案來訪問的位置。 如果啟用此選項,則Windows擦除頁面檔案時,計算機可能需要幾分鐘才能關閉。它需要多長時間取決於頁面檔案的大小和硬碟的速度。但是,如果硬碟加密(如果尚未加密,...

  • 發佈於 2021-04-08 16:15
  • 閲讀 ( 53 )

什麼是windows頁面檔案,您應該禁用它嗎?

...indows將嘗試將您不使用的資料移動到頁面檔案中。例如,如果你有一個程式最小化了很長一段時間,它沒有做任何事情,它的資料可能會從RAM移動到你的頁面檔案。如果您稍後將程式最大化並注意到它需要一段時間才能恢復,而...

  • 發佈於 2021-04-08 16:21
  • 閲讀 ( 50 )

如何讓windows在關機時清除頁面檔案(以及何時清除)

...除,它會被擦除,每當它失去電源。但是頁面檔案沒有。如果你擔心有人在監視可能留在你的頁面檔案中的敏感資料,Windows可以在每次關閉時刪除它。它透過向頁面檔案的每一位寫入0,覆蓋任何現有資料來實現這一點。如果有...

  • 發佈於 2021-04-08 16:22
  • 閲讀 ( 34 )
山佬的逼帳號
山佬的逼帳號

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦