Re: Estimating HugePages Requirements?

From: "Bossart, Nathan" <bossartn(at)amazon(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, "Andres Freund" <andres(at)anarazel(dot)de>, Magnus Hagander <magnus(at)hagander(dot)net>, "Mark Dilger" <mark(dot)dilger(at)enterprisedb(dot)com>, Don Seiler <don(at)seiler(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Estimating HugePages Requirements?
Date: 2021-09-13 18:49:16
Message-ID: AD880348-DEA9-4C81-B55B-DF28AC859ABA@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On 9/13/21, 8:59 AM, "Robert Haas" <robertmhaas(at)gmail(dot)com> wrote:
> On Fri, Sep 10, 2021 at 7:43 PM Bossart, Nathan <bossartn(at)amazon(dot)com> wrote:
>> I think that's an improvement. The only other idea I have at the
>> moment is num_huge_pages_required_for_shared_memory.
>
> Hmm, that to me sounds like maybe only part of shared memory uses huge
> pages and maybe we're just giving you the number required for that
> part. I realize that it doesn't work that way but I don't know if
> everyone will.

Yeah, I agree. What about
huge_pages_needed_for_shared_memory_size or
huge_pages_needed_for_main_shared_memory? I'm still not stoked about
using "required" or "needed" in the name, as it sounds like huge pages
must be allocated for the server to run, which is only true if
huge_pages=on. I haven't thought of a better word to use, though.

Nathan

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Frost 2021-09-13 19:43:55 Re: PgBackRest PITR restore
Previous Message Robert Haas 2021-09-13 15:49:49 Re: Estimating HugePages Requirements?

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-09-13 19:30:19 Re: Is SPI + Procedures (with COMMIT) inside a bgworker broken?
Previous Message Dean Rasheed 2021-09-13 18:29:13 Re: Numeric x^y for negative x