Re: Estimating HugePages Requirements?

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: "Bossart, Nathan" <bossartn(at)amazon(dot)com>
Cc: 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-08-09 23:10:27
Message-ID: CALNJ-vTfe9sre2m+wRgQx3HGO2hU-a18qP+d66g4bqajO9hn-g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On Mon, Aug 9, 2021 at 3:57 PM Bossart, Nathan <bossartn(at)amazon(dot)com> wrote:

> On 6/9/21, 8:09 PM, "Bossart, Nathan" <bossartn(at)amazon(dot)com> wrote:
> > On 6/9/21, 3:51 PM, "Mark Dilger" <mark(dot)dilger(at)enterprisedb(dot)com> wrote:
> >>> On Jun 9, 2021, at 1:52 PM, Bossart, Nathan <bossartn(at)amazon(dot)com>
> wrote:
> >>>
> >>> I'd be happy to clean it up and submit it for
> >>> discussion in pgsql-hackers@ if there is interest.
> >>
> >> Yes, I'd like to see it. Thanks for offering.
> >
> > Here's the general idea. It still needs a bit of polishing, but I'm
> > hoping this is enough to spark some discussion on the approach.
>
> Here's a rebased version of the patch.
>
> Nathan
>
> Hi,

-extern void CreateSharedMemoryAndSemaphores(void);
+extern Size CreateSharedMemoryAndSemaphores(bool size_only);

Should the parameter be enum / bitmask so that future addition would not
change the method signature ?

Cheers

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bossart, Nathan 2021-08-09 23:48:34 Re: Estimating HugePages Requirements?
Previous Message Bossart, Nathan 2021-08-09 22:57:18 Re: Estimating HugePages Requirements?

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2021-08-09 23:20:05 Re: ECPG bug fix: DECALRE STATEMENT and DEALLOCATE, DESCRIBE
Previous Message Bossart, Nathan 2021-08-09 22:57:18 Re: Estimating HugePages Requirements?