Re: The huge_pages parameter doesn't work when shared_memory_type is sysv

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: The huge_pages parameter doesn't work when shared_memory_type is sysv
Date: 2021-10-22 03:59:49
Message-ID: CA+hUKG+JJEk=Tg0r+-gHSX=9CPJe2UyFXgvh7c4Sd+0k_PO+eg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Mon, Sep 27, 2021 at 9:04 PM PG Doc comments form
<noreply(at)postgresql(dot)org> wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/13/kernel-resources.html
> Description:
>
> It seems that the huge_pages parameter is ignored when shared_memory_type is
> sysv. The server successfully starts with huge_pages=on, but actually
> doesn't use huge pages (relying on /proc/meminfo). I think that this is
> worth mentioning in the "Linux Huge Pages" section.

Yeah. The thread that added shared_memory_type=sysv had an unfinished
follow-up patch that stalled[1]. The goal of that patch was to add
huge page support for shared_memory_type=sysv on AIX, and it is still
waiting for testing and polishing by an AIX-enabled hacker. That
second patch included exactly such a documentation adjustment, and an
error message too (the idea was to reject that combination on Linux
but allow it on AIX). Here are those bits, extracted.

https://www.postgresql.org/message-id/flat/HE1PR0202MB28126DB4E0B6621CC6A1A91286D90%40HE1PR0202MB2812.eurprd02.prod.outlook.com

Attachment Content-Type Size
0001-Reject-huge_pages-on-if-shared_memory_type-sysv.patch text/x-patch 1.9 KB

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2021-10-22 08:24:43 information_schema.tables table broken in versions 13+
Previous Message CONVERS Yann - DREAL Auvergne-Rhône-Alpes/CIDDAE/SIG 2021-10-20 05:20:06 Re: migrate from PG 9.5 to PG 12 or more