mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Support huge pages on Windows
Add support for huge pages (called large pages on Windows) to the Windows build. This (probably) breaks compatibility with Windows versions prior to Windows 2003 or Windows Vista. Authors: Takayuki Tsunakawa and Thomas Munro Reviewed by: Magnus Hagander, Amit Kapila
This commit is contained in:
@@ -1369,14 +1369,26 @@ include_dir 'conf.d'
|
||||
</para>
|
||||
|
||||
<para>
|
||||
At present, this feature is supported only on Linux. The setting is
|
||||
ignored on other systems when set to <literal>try</literal>.
|
||||
At present, this feature is supported only on Linux and Windows. The
|
||||
setting is ignored on other systems when set to <literal>try</literal>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The use of huge pages results in smaller page tables and less CPU time
|
||||
spent on memory management, increasing performance. For more details,
|
||||
see <xref linkend="linux-huge-pages"/>.
|
||||
spent on memory management, increasing performance. For more details about
|
||||
using huge pages on Linux, see <xref linkend="linux-huge-pages"/>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Huge pages are known as large pages on Windows. To use them, you need to
|
||||
assign the user right Lock Pages in Memory to the Windows user account
|
||||
that runs <productname>PostgreSQL</productname>.
|
||||
You can use Windows Group Policy tool (gpedit.msc) to assign the user right
|
||||
Lock Pages in Memory.
|
||||
To start the database server on the command prompt as a standalone process,
|
||||
not as a Windows service, the command prompt must be run as an administrator
|
||||
User Access Control (UAC) must be disabled. When the UAC is enabled, the normal
|
||||
command prompt revokes the user right Lock Pages in Memory when started.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
Reference in New Issue
Block a user