Re: Estimating HugePages Requirements?
Nathan Bossart <bossartn@amazon.com>
From: "Bossart, Nathan" <bossartn@amazon.com>
To: Andres Freund <andres@anarazel.de>
Cc: Magnus Hagander <magnus@hagander.net>, Michael Paquier <michael@paquier.xyz>, Mark Dilger <mark.dilger@enterprisedb.com>, Don Seiler <don@seiler.us>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2021-08-27T20:16:40Z
Lists: pgsql-hackers
Attachments
- 0001-Move-the-shared-memory-size-calculation-to-its-own-f.patch (application/octet-stream) patch 0001
On 8/27/21, 12:39 PM, "Andres Freund" <andres@anarazel.de> wrote: > One thing I wonder is if this wouldn't better be dealt with in a more generic > way. While this is the most problematic runtime computed GUC, it's not the > only one. What if we introduced a new shared_memory_size GUC, and made > --describe-config output it? Perhaps adding --describe-config=guc-name? > > I also wonder if we should output the number of hugepages needed instead of > the "raw" bytes of shared memory. The whole business about figuring out the > huge page size, dividing the shared memory size by that and then rounding up > could be removed in that case. Due to huge_page_size it's not even immediately > obvious which huge page size one should use... I like both of these ideas. > Can you split this into a separate commit? It feels fairy uncontroversial to > me, so I think we could just apply it soon? I attached a patch for just the uncontroversial part, which is unfortunately all I have time for today. Nathan
Commits
-
Silence extra logging when using "postgres -C" on runtime-computed GUCs
- 8bbf8461a3a2 15.0 landed
-
doc: Improve postgres command for shared_memory_size_in_huge_pages
- bbd4951b73ec 15.0 landed
-
Introduce GUC shared_memory_size_in_huge_pages
- 43c1c4f65eab 15.0 landed
-
Support "postgres -C" with runtime-computed GUCs
- 0c39c292077e 15.0 landed
-
Make shared_memory_size a preset option
- 3b231596ccfc 15.0 landed
-
Introduce GUC shared_memory_size
- bd1788051b02 15.0 landed
-
Move the shared memory size calculation to its own function
- 0bd305ee1d42 15.0 landed
-
Add new GUC, max_worker_processes, limiting number of bgworkers.
- 6bc8ef0b7f1f 9.4.0 cited