Re: Estimating HugePages Requirements?
От
Michael Paquier
Тема
Re: Estimating HugePages Requirements?
Дата
Msg-id
YS8jgN37QvlrKnzQ@paquier.xyz
Ответ на
Re: Estimating HugePages Requirements? (Bossart, Nathan)
Список
Дерево обсуждения
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Magnus Hagander <magnus@hagander.net>
Re: Estimating HugePages Requirements? Andres Freund <andres@anarazel.de>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Andres Freund <andres@anarazel.de>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Justin Pryzby <pryzby@telsasoft.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Andres Freund <andres@anarazel.de>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Robert Haas <robertmhaas@gmail.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Robert Haas <robertmhaas@gmail.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Tom Lane <tgl@sss.pgh.pa.us>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Robert Haas <robertmhaas@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Magnus Hagander <magnus@hagander.net>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Magnus Hagander <magnus@hagander.net>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Magnus Hagander <magnus@hagander.net>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Magnus Hagander <magnus@hagander.net>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Magnus Hagander <magnus@hagander.net>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Nathan Bossart <nathandbossart@gmail.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? Michael Paquier <michael@paquier.xyz>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
Re: Estimating HugePages Requirements? "Bossart, Nathan" <bossartn@amazon.com>
On Tue, Aug 31, 2021 at 05:37:52AM +0000, Bossart, Nathan wrote: > I moved the GUC calculation to ipci.c, adjusted the docs, and added a > huge_pages_required GUC. It's still a little rough around the edges, > and I haven't tested it on Windows, but this seems like the direction > the patch is headed. Hmm. I am not sure about the addition of huge_pages_required, knowing that we would have shared_memory_size. I'd rather let the calculation part to the user with a scan of /proc/meminfo. +#elif defined(WIN32) + hp_size = GetLargePageMinimum(); +#endif + +#if defined(MAP_HUGETLB) || defined(WIN32) + hp_required = (size_b / hp_size) + 1; As of [1], there is the following description: "If the processor does not support large pages, the return value is zero." So there is a problem here. [1]: https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-getlargepageminimum -- Michael
В списке pgsql-hackers по дате отправления