From: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> |
---|---|
To: | noriyoshi(dot)shinoda(at)hpe(dot)com |
Cc: | masao(dot)fujii(at)oss(dot)nttdata(dot)com, pgsql-hackers(at)postgresql(dot)org, rjuju123(at)gmail(dot)com, tgl(at)sss(dot)pgh(dot)pa(dot)us, pryzby(at)telsasoft(dot)com |
Subject: | Re: Improve logging when using Huge Pages |
Date: | 2021-09-09 05:34:42 |
Message-ID: | 20210909.143442.1420418137984948166.horikyota.ntt@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thanks!
At Wed, 8 Sep 2021 07:52:35 +0000, "Shinoda, Noriyoshi (PN Japan FSIP)" <noriyoshi(dot)shinoda(at)hpe(dot)com> wrote in
> Hello,
>
> Thank you everyone for comments.
> I have attached a patch that simply changed the message like the advice from Horiguchi-san.
>
> > Even with the patch, there are still some cases where huge pages is disabled silently. We should report something even in these cases?
> > For example, in the platform where huge pages is not supported, it's silently disabled when huge_pages=try.
>
> The area where this patch is written is inside the "#ifdef MAP_HUGETLB #endif" block.
> For this reason, I think it is excluded from binaries created in an environment that does not have the MAP_HUGETLB macro.
Ah, right.
> > One big concern about the patch is that log message is always reported when shared memory fails to be allocated with huge pages enabled when huge_pages=try. Since
> > huge_pages=try is the default setting, many users would see this new log message whenever they start the server. Those who don't need huge pages but just use the default
> > setting might think that such log messages would be noisy.
>
> This patch is meant to let the admin know that HugePages isn't being used, so I'm sure you're right. I have no idea what to do so far.
It seems *to me* sufficient. I'm not sure what cases CreateFileMapping
return ERROR_NO_SYSTEM_RESOURCES when non-huge page can be allocated
successfully, though, but that doesn't matter much, maybe.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2021-09-09 05:37:06 | Re: [PROPOSAL] new diagnostic items for the dynamic sql |
Previous Message | Kyotaro Horiguchi | 2021-09-09 05:14:50 | Re: strange case of "if ((a & b))" |