頁面檔案簡介Introduction to page files

頁面檔案 (也稱為 "分頁檔案" ) 是硬碟上的選擇性、隱藏系統檔案。A page file (also known as a "paging file") is an optional, hidden system file on a hard disk.

功能Functionality

頁面檔案具有下列功能。Page files have the following functionalities.

RAM 的物理延伸Physical extension of RAM

[頁面檔案] 可讓系統從實體記憶體移除不常存取的已修改頁面,讓系統更有效率地使用實體記憶體,以獲得更頻繁存取的頁面。Page files enable the system to remove infrequently accessed modified pages from physical memory to let the system use physical memory more efficiently for more frequently accessed pages.

應用程式需求Application requirements

某些產品或服務需要頁面檔案的原因有多種。Some products or services require a page file for various reasons. 如需詳細資訊,請參閱產品檔。For specific information, check the product documentation.

例如,下列 Windows 伺服器需要頁面檔案:For example, the following Windows servers requires page files:

  • Windows Server 網網域控制站 (Dc) Windows Server domain controllers (DCs)
  • Dfs 複製 (的 DFS-R) 伺服器DFS Replication (DFS-R) servers
  • 憑證伺服器Certificate servers
  • ADAM/LDS 伺服器ADAM/LDS servers

這是因為可延伸儲存引擎 (ESENT 或 Microsoft Exchange Server) 中的 ESE 的資料庫快取演算法,取決於「\Memory\Transition 頁面用途/秒」效能監視計數器。This is because the algorithm of the database cache for Extensible Storage Engine (ESENT, or ESE in Microsoft Exchange Server) depends on the "\Memory\Transition Pages RePurposed/sec" performance monitor counter. 需要頁面檔案,以確保資料庫快取可以在其他服務或應用程式要求記憶體時釋放記憶體。A page file is required to make sure that the database cache can release memory if other services or applications request memory.

如果您使用的是 Windows Server 2012 Hyper-v 和 Windows Server 2012 R2 Hyper-v,管理 OS 的頁面檔案 (通常稱為主機 OS) 應該保留 [系統管理] 的預設設定。For Windows Server 2012 Hyper-V and Windows Server 2012 R2 Hyper-V, the page file of the management OS (commonly called the host OS) should be left at the default of setting of "System Managed" .

支援系統損毀傾印Support for system crash dumps

頁面檔案可以用來「返回」 (或支援) 系統損毀傾印,並延伸系統提交的記憶體, (又稱為「虛擬記憶體」 ) 系統可支援。Page files can be used to "back" (or support) system crash dumps and extend how much system-committed memory (also known as “virtual memory”) a system can support.

如需系統損毀轉儲的詳細資訊,請參閱 系統損毀傾印選項For more information about system crash dumps, see system crash dump options.

Windows 中有大型實體記憶體的頁面檔案Page files in Windows with large physical memory

安裝大型實體記憶體時,可能不需要在高峰使用期間支援系統認可費用的頁面檔案。When large physical memory is installed, a page file might not be required to support the system commit charge during peak usage. 例如,64位版本的 Windows 和 Windows Server 支援更多 (RAM) 的實體記憶體,而不支援32位版本。For example, 64-bit versions of Windows and Windows Server support more physical memory (RAM) than 32-bit versions support. 可用的實體記憶體可能足夠大。The available physical memory alone might be large enough.

不過,設定頁面檔案大小的理由不會變更。However, the reason to configure the page file size has not changed. 它一直是支援系統損毀轉儲(如果有必要的話),或延伸系統認可限制(如果需要的話)。It has always been about supporting a system crash dump, if it is necessary, or extending the system commit limit, if it is necessary. 例如,當您安裝了大量的實體記憶體時,可能不需要頁面檔案,就能在高峰使用期間傳回系統認可費。For example, when a lot of physical memory is installed, a page file might not be required to back the system commit charge during peak usage. 可用的實體記憶體可能會足夠大,才能執行此動作。The available physical memory alone might be large enough to do this. 不過,可能仍需要使用頁面檔案或專用的 dump 檔案,才能備份系統損毀傾印。However, a page file or a dedicated dump file might still be required to back a system crash dump.

系統承諾記憶體System committed memory

頁面檔案會擴大多少「已確認的記憶體」 (又稱為「虛擬記憶體」 ) 用來儲存已修改的資料。Page files extend how much "committed memory" (also known as "virtual memory") is used to store modified data.

[系統認可記憶體限制] 是合併的實體記憶體與所有頁面檔案的總和。The system commit memory limit is the sum of physical memory and all page files combined. 它代表系統認可的最大記憶體 (也稱為「系統認可費用」 ) 供系統支援。It represents the maximum system-committed memory (also known as the "system commit charge") that the system can support.

工作管理員

系統認可費用是系統中所有已確認虛擬記憶體的全部承諾或「已承諾」記憶體。The system commit charge is the total committed or "promised" memory of all committed virtual memory in the system. 如果系統認可費用達到系統認可限制,系統和進程可能無法取得已提交的記憶體。If the system commit charge reaches the system commit limit, the system and processes might not get committed memory. 這種情況可能會造成凍結、當機及其他問題。This condition can cause freezing, crashing, and other malfunctions. 因此,請確定您已將系統認可限制設為足夠高,以支援在使用高峰期間的系統認可費。Therefore, make sure that you set the system commit limit high enough to support the system commit charge during peak usage.

記憶體不足

工作管理員

系統承諾的費用與系統承諾的限制可以在工作管理員中的 [ 效能 ] 索引標籤上,或使用 "\Memory\Committed Bytes" 和 "\Memory\Commit limit" 效能計數器來測量。The system committed charge and system committed limit can be measured on the Performance tab in Task Manager or by using the "\Memory\Committed Bytes" and "\Memory\Commit Limit" performance counters. [使用中的 \Memory% 認可位元組] 計數器是 \Memory\Committed 位元組數與 \Memory\Commit 限制值的比值。The \Memory% Committed Bytes In Use counter is a ratio of \Memory\Committed Bytes to \Memory\Commit Limit values.

注意

系統管理的頁面檔案會自動增長到最多三倍的實體記憶體或 4 GB () 當系統認可費用達到系統認可限制的90% 時,就會顯示較大的時間。System-managed page files automatically grow up to three times the physical memory or 4 GB (whichever is larger) when the system commit charge reaches 90 percent of the system commit limit. 這假設有足夠的可用磁碟空間來容納增長。This assumes that enough free disk space is available to accommodate the growth.