Re: Estimating HugePages Requirements?
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: Michael Paquier <michael@paquier.xyz>, "Bossart, Nathan" <bossartn@amazon.com>, Fujii Masao <masao.fujii@oss.nttdata.com>, Justin Pryzby <pryzby@telsasoft.com>, Andres Freund <andres@anarazel.de>, Mark Dilger <mark.dilger@enterprisedb.com>, Don Seiler <don@seiler.us>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2022-03-28T17:35:03Z
Lists: pgsql-hackers
Attachments
- v3-0001-Silence-extra-logging-with-postgres-C.patch (text/x-diff)
On Thu, Mar 24, 2022 at 01:31:08PM -0700, Nathan Bossart wrote: > A couple of other options to consider: > > 1) Always set log_min_messages to WARNING/ERROR/FATAL for 'postgres -C'. > We might need some special logic for handling the case where the user is > inspecting the log_min_messages parameter. With this approach, you'd > probably never get extra output unless something was wrong (e.g., database > already running when inspecting a runtime-computed GUC). Also, this would > silence any extra output that you might see today with non-runtime-computed > GUCs. > > 2) Add some way to skip just the shutdown message (e.g., a variable set > when output_config_variable is true). With this approach, you wouldn't get > extra output by default, but you still might if log_min_messages is set to > something like DEBUG3. This wouldn't impact any extra output that you see > today with non-runtime-computed GUCs. I've attached a first attempt at option 1. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com
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