Re: Estimating HugePages Requirements?

From: "Bossart, Nathan" <bossartn(at)amazon(dot)com>
To: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Cc: "michael(at)paquier(dot)xyz" <michael(at)paquier(dot)xyz>, "pryzby(at)telsasoft(dot)com" <pryzby(at)telsasoft(dot)com>, "andres(at)anarazel(dot)de" <andres(at)anarazel(dot)de>, "magnus(at)hagander(dot)net" <magnus(at)hagander(dot)net>, "mark(dot)dilger(at)enterprisedb(dot)com" <mark(dot)dilger(at)enterprisedb(dot)com>, "don(at)seiler(dot)us" <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-07 17:09:08
Message-ID: 34EA778E-AEAC-433B-BE62-DFC01C197959@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On 9/6/21, 11:24 PM, "Kyotaro Horiguchi" <horikyota(dot)ntt(at)gmail(dot)com> wrote:
> At Fri, 3 Sep 2021 17:46:05 +0000, "Bossart, Nathan" <bossartn(at)amazon(dot)com> wrote in
>> On 9/2/21, 10:12 PM, "Kyotaro Horiguchi" <horikyota(dot)ntt(at)gmail(dot)com> wrote:
>> > I noticed that postgres -C shared_memory_size showed 137 (= 144703488)
>> > whereas the error message above showed 148897792 bytes (142MB). So it
>> > seems that something is forgotten while calculating
>> > shared_memory_size. As the consequence, launching postgres setting
>> > huge_pages_required (69 pages) as vm.nr_hugepages ended up in the
>> > "could not map anonymous shared memory" error.
>>
>> Hm. I'm not seeing this with the v5 patch set, so maybe I
>> inadvertently fixed it already. Can you check this again with v5?
>
> Thanks! I confirmed that the numbers match with v5.

Thanks for confirming.

Nathan

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Paquier 2021-09-08 03:50:08 Re: Estimating HugePages Requirements?
Previous Message Bossart, Nathan 2021-09-07 17:08:43 Re: Estimating HugePages Requirements?

Browse pgsql-hackers by date

  From Date Subject
Next Message Bossart, Nathan 2021-09-07 17:28:45 Re: .ready and .done files considered harmful
Previous Message Bossart, Nathan 2021-09-07 17:08:43 Re: Estimating HugePages Requirements?