From: Tomas Vondra <tomas@vondra.me>
To: szmscy4nfxk@protonmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #19096: Hugepages configuration is probably not reserving the allocated number of pages
Date: Wed, 29 Oct 2025 20:08:58 +0100
Message-ID: <04c36177-74fc-4d4e-b492-e3d00099190e@vondra.me> (raw)
In-Reply-To: <19096-9c7bdf8a427906f3@postgresql.org>
References: <19096-9c7bdf8a427906f3@postgresql.org>
On 10/28/25 10:37, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference: 19096
> Logged by: dex terity
> Email address: szmscy4nfxk@protonmail.com
> PostgreSQL version: 18.0
> Operating system: Debian 12, 13
> Description:
>
> Thanks for Postgresql
> I have been exploring hugepages functionality in PG and other applications,
> found out there's actually a worthy performance improvement. The problem is
> that while other applications such as libvirt, php all play nice with HP, if
> I launch PG with HP then the next apps will show problems, even though the
> number of pages is in excess. Without PG it is possible to run any
> combination of apps and instances without problems. PG runs happy when alone
> or with one libvirt vm. One thing I noticed is PG does not reserve the full
> number of pages when started... maybe that's the problem.
> Regards
>
I have no idea what "play nice" means for the other apps. Either there
are enough huge pages or not. And if the apps "show problems" after the
pages get used by Postgres, I'd not call that "play nice".
Postgres does not reserve huge pages (and the documentation makes this
fairly clear [1]). Because how would it know how many huge pages to
reserve? There can be other stuff running on the system, and we have no
idea how much memory / hugepages that may need.
[1]
https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-HUGE-PAGES
--
Tomas Vondra
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-bugs@postgresql.org
Cc: tomas@vondra.me, noreply@postgresql.org
Subject: Re: BUG #19096: Hugepages configuration is probably not reserving the allocated number of pages
In-Reply-To: <04c36177-74fc-4d4e-b492-e3d00099190e@vondra.me>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox