public inbox for [email protected]
help / color / mirror / Atom feedFrom: Roland Müller <[email protected]>
To: Laurenz Albe <[email protected]>
Cc: Ron Johnson <[email protected]>
Cc: Pgsql-admin <[email protected]>
Subject: Re: Setting huge_pages=off when HugePages are allocated in Linux?
Date: Thu, 29 Jan 2026 13:31:17 +0200
Message-ID: <CA+8p0G2TAVw7+h2s60cPe3K9=YWPWjm+sf4a_aJOb=kC-E6BDQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CANzqJaD0Nj2SvXrGCM-p_TUaeN84TzRteo7jxqSdARaZDiXABA@mail.gmail.com>
<[email protected]>
When does it make sense to use hugepages in Postgresql?
Is usage of hugepages only available in release 18?
Laurenz Albe <[email protected]> ezt írta (időpont: 2026. jan. 28.,
Sze 19:02):
> On Wed, 2026-01-28 at 10:31 -0500, Ron Johnson wrote:
> > In the example in this (quite helpful) Cybertec post, 10475 HugePages
> are allocated.
> > https://www.cybertec-postgresql.com/en/huge-pages-postgresql/
> >
> > If we set "huge_pages = off" within PG and then restart PG, will Linux
> see those 10475 HugePages as off-limits to normal 4KiB allocations?
>
> Yes. That's why it is a good idea to set "huge_pages = on" if you intend
> to use them with
> PostgreSQL. Otherwise it may happen that PostgreSQL resorts to allocating
> shared buffers
> using normal memory, and your huge pages just sit around and are wasted.
>
> Yours,
> Laurenz Albe
>
>
>
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Setting huge_pages=off when HugePages are allocated in Linux?
In-Reply-To: <CA+8p0G2TAVw7+h2s60cPe3K9=YWPWjm+sf4a_aJOb=kC-E6BDQ@mail.gmail.com>
* 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