agora inbox for pgsql-docs@postgresql.org  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: splarv@ya.ru
Subject: vm.overcommit_ratio
Date: Thu, 26 Dec 2024 07:44:33 +0000
Message-ID: <173519907373.680.4776998956524739143@wrigleys.postgresql.org> (raw)

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.


view thread (2+ messages)  latest in thread

Message-ID: <173519907373.680.4776998956524739143@wrigleys.postgresql.org>
Permalink:  ../173519907373.680.4776998956524739143@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/173519907373.680.4776998956524739143@wrigleys.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, splarv@ya.ru
  Subject: Re: vm.overcommit_ratio
  In-Reply-To: <173519907373.680.4776998956524739143@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox