Re: Changing shared_buffers without restart

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Changing shared_buffers without restart
Date: 2024-11-21 07:55:40
Message-ID: cadf4502-a808-4840-872f-589b66eba538@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 19.11.24 14:29, Dmitry Dolgov wrote:
>> I see that memfd_create() has a MFD_HUGETLB flag. It's not very clear how
>> that interacts with the MAP_HUGETLB flag for mmap(). Do you need to specify
>> both of them if you want huge pages?
> Correct, both (one flag in memfd_create and one for mmap) are needed to
> use huge pages.

I was worried because the FreeBSD man page says

MFD_HUGETLB This flag is currently unsupported.

It looks like FreeBSD doesn't have MAP_HUGETLB, so maybe this is irrelevant.

But you should make sure in your patch that the right set of flags for
huge pages is passed.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiro Ikeda 2024-11-21 08:47:51 Re: Adding skip scan (including MDAM style range skip scan) to nbtree
Previous Message Nazir Bilal Yavuz 2024-11-21 07:38:28 Re: Add a write_to_file member to PgStat_KindInfo