vm.overcommit_ratio

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: splarv(at)ya(dot)ru
Subject: vm.overcommit_ratio
Date: 2024-12-26 07:44:33
Message-ID: 173519907373.680.4776998956524739143@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/kernel-resources.html
Description:

PostgreSQL documentation point to kernel documentation for info about
vm.overcommit_ratio. But kernel documentation slightly incorrect, so may be
write slightly more here. Kernel documentation said:

The total address space commit
for the system is not permitted to exceed swap + a
configurable amount (default is 50%) of physical RAM.

Where 50% is the default for vm.overcommit_ratio. But really not "physical
RAM" is taken in case when using hugepage memory (common practice for
postgresql). For instance I have 1TiB physical memory and 800 GiB is
reserved for hugepage (1GiB pagesize). "50% of physical RAM" will be not 500
GiB, as expected, but roughly 100GiB=0.5*(1000-800), and commit limit will
be 100GiB+swap size.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2024-12-26 15:43:32 Typo in doc page?
Previous Message jian he 2024-12-21 03:32:53 restart-footnote-numbering-in-each-sect1