Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWQG8-0002pU-Sl for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Mar 2022 22:12:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nWQG6-0000KL-C9 for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Mar 2022 22:12:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWQG6-0000KC-1j for pgsql-hackers@lists.postgresql.org; Mon, 21 Mar 2022 22:12:14 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nWQG3-0003gn-Cw for pgsql-hackers@postgresql.org; Mon, 21 Mar 2022 22:12:13 +0000 Received: by mail-pl1-x62f.google.com with SMTP id j13so4013416plj.8 for ; Mon, 21 Mar 2022 15:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=i4GfzisH3JsLyYpT5nvopclakHh3O2LdVkp/1epadpY=; b=ZaTwLEqxe3qzyBjZrfYsjArI9U8il7yXk+sWE+4yAI8RebDxuz0Gyw27NiT2dkjmWG tXGif/5C31hlvP6UA6O2nELEUkr7O1LVqio+ExVAst0YkqWipqneEroU5ilyZnciovw4 0n/AqViEUGvlYgQxEHq+FbGtUnbkJqUAvRhYPvYjypjZy/2g6aJPAsciiN7Onlt6q5C5 Qy2irULGgLq/nrIjVhfY+klunSX3y6lUx4fBqlpq+GQtriY9e702Y0r/eL62GEuORdMS yMZAZYZBwjzsQ6GWuy6Dc5cfzNNO/94ZtWMnAv38TuJV7+7zQWMv5RLXAJgNIKtR0a6f oTHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=i4GfzisH3JsLyYpT5nvopclakHh3O2LdVkp/1epadpY=; b=tnc5/5NQrrj5hBknCyo5X4L5pgxPOUb5pVT+W/rpePSXIly/NxSXOH7R+OMfqBPgXp E7Ic9PVbQbB9y+ncdI4myjWqr4f9+HdlfAkNLV0E+uGeFweS8P/qZxN95XUoaKV7odW4 4jbRnAcOy5uCyp8MWNWMjhzOT7geEJkp0rB3tVuXeH5sp/HyleRB2aBFiRrWGvbUmHPx KkRgvB4zirapxVVemCLAxGOnOQZeP5uYkPRsYfADnmxYQH67AfHHmf2sc5N/bBYfpPHi /mAp021cqonr62Nme0SL1jAOCsrJGZwl6kkhQpuCrEFpnY6mg16RCFB+Ys5fF1Y1GGVO XUIw== X-Gm-Message-State: AOAM53343xyv8esdPwEzzxnVQwix5qKN2lhOAzsW+NQcxDSy7Xok1AW5 IWGFrhy2kspzYSBAtkdpwL0= X-Google-Smtp-Source: ABdhPJys7WXfqNEK8rW3ghaIlVjQAEfhA0zGhz3THId1pW6RpwvqA8uZW4dPIf5Ip1SAfLwuCOTQBg== X-Received: by 2002:a17:902:b709:b0:151:49e7:d4e1 with SMTP id d9-20020a170902b70900b0015149e7d4e1mr15351243pls.144.1647900729462; Mon, 21 Mar 2022 15:12:09 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id w21-20020a056a0014d500b004f7261ad03esm21853904pfu.35.2022.03.21.15.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:12:08 -0700 (PDT) Date: Mon, 21 Mar 2022 15:12:05 -0700 From: Nathan Bossart To: Magnus Hagander Cc: Michael Paquier , "Bossart, Nathan" , Fujii Masao , Justin Pryzby , Andres Freund , Mark Dilger , Don Seiler , "pgsql-hackers@postgresql.org" Subject: Re: Estimating HugePages Requirements? Message-ID: <20220321221205.GA1514705@nathanxps13> References: <4cc5b434-b174-9aae-197b-737db6cac4e3@oss.nttdata.com> <6AE0285D-0917-4C05-B6AA-4AEDD2FCBA52@amazon.com> <20220314173417.GA1020555@nathanxps13> <20220315224439.GA1133771@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315224439.GA1133771@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 15, 2022 at 03:44:39PM -0700, Nathan Bossart wrote: > A simple approach could be to just set log_min_messages to PANIC before > exiting. I've attached a patch for this. With this patch, we'll still see > a FATAL if we try to use 'postgres -C' for a runtime-computed GUC on a > running server, and there will be no extra output as long as the user sets > log_min_messages to INFO or higher (i.e., not a DEBUG* value). For > comparison, 'postgres -C' for a non-runtime-computed GUC does not emit > extra output as long as the user sets log_min_messages to DEBUG2 or higher. I created a commitfest entry for this: https://commitfest.postgresql.org/38/3596/ -- Nathan Bossart Amazon Web Services: https://aws.amazon.com