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 1ngw5k-0005Bt-C0 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 22:13:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngw5h-00065s-TU for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 22:12:57 +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 1ngw5g-00064f-AD for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 22:12:57 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngw5c-0002cl-CZ for pgsql-hackers@postgresql.org; Tue, 19 Apr 2022 22:12:55 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6D57A5C0045; Tue, 19 Apr 2022 18:12:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 19 Apr 2022 18:12:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1650406369; x=1650492769; bh=2a2e8Wu2i7 7P1xKTp2hYTI9ocBR49bLbFcVrlV0DRpk=; b=oHB1RZ19TC4AIvAUhDChiA2h7w AJ7He9eV5NkRLTB5QLReBbf2EQQg4ExWooJiBnBHEKT2eczyNqlkO/DfVOppAZoz oikX3UvhVt61iOr7ZIe6LDow8JF1l6RlCLkvfpQx4ofUjftNTVD2GsET+86E1bCT KP8OncOYy2E31cq5FU0ID/hajm7Tfta+4Vi3LHZzZbFDVwKyyOoppPKobkQ44onQ V3eWo+eYWTgU88YD4qq9/mu5YzgzTRkqNbb93oRgnQkJFban0thQILxGYbBBY0h8 oNPeBbsIhrSTZv75/vv5ztE5lD2oSSr/Je3FHy+Wiwwv3+5jGG84uYiL+kZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1650406369; x= 1650492769; bh=2a2e8Wu2i77P1xKTp2hYTI9ocBR49bLbFcVrlV0DRpk=; b=S K0fjTfPN0DVI/NWPVacmfl/p+JSOs40gNxh2tWs0nR56RiC+/T6+21qJmlXDPcRH CQlSjfSA5S5s6yKpzpMBnuAH5ptj1CIuV7Dwu9yD+7kIuV7P95UM5VMFn5WqUStX IUuLE3oWXHXlHRbHX7qajiZ/tzCeQ/vPKAUzoilCXi8AFpBWswIC9swGrKNyDdrf +4UlAVMpHhjcDg9WGMZf7d4pMjNSCVmVyp6UWcTtx3QwG5uYK8WeN85tXqNIc0Bz QaDGH0wyMDq4xKxamw/2uOWNSQhasQg+F0ZQeItLrgp+/lr667WsA/enc7eXdSw1 +ZbkUbDPTpXis4GLTsCAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvddtgedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 19 Apr 2022 18:12:45 -0400 (EDT) Date: Wed, 20 Apr 2022 07:12:39 +0900 From: Michael Paquier To: Magnus Hagander Cc: Nathan Bossart , "Bossart, Nathan" , Fujii Masao , Justin Pryzby , Andres Freund , Mark Dilger , Don Seiler , "pgsql-hackers@postgresql.org" Subject: Re: Estimating HugePages Requirements? Message-ID: References: <6AE0285D-0917-4C05-B6AA-4AEDD2FCBA52@amazon.com> <20220314173417.GA1020555@nathanxps13> <20220315224439.GA1133771@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d3ridMs2T0q+nH+S" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --d3ridMs2T0q+nH+S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 24, 2022 at 02:07:26PM +0100, Magnus Hagander wrote: > But neither would the suggestion of redirecting stderr to /dev/null. > In fact, doing the redirect it will *also* throw away any FATAL that > happens. In fact, using the 2>/dev/null method, we *also* remove the > message that says there's another postmaster running in this > directory, which is strictly worse than the override of > log_min_messages. Well, we could also tweak more the command with a redirection of stderr to a log file or such, and tell to look at it for errors. > That said, the redirect can be removed without recompiling postgres, > so it is probably still hte better choice as a temporary workaround. > But we should really look into getting a better solution in place once > we start on 16. But do we really need a better or more invasive solution for already running servers though? A SHOW command would be able to do the work already in this case. This would lack consistency compared to the offline case, but we are not without option either. That leaves the case where the server is running, has allocated memory but is not ready to accept connections, like crash recovery, still this use case looks rather thin to me.=20 >> My solution for the docs is perhaps too confusing for the end-user, >> and we are talking about a Linux-only thing here anyway. So, at the >> end, I am tempted to just add the "2> /dev/null" as suggested upthread >> by Nathan and call it a day. Does that sound fine? >=20 > What would be a linux only thing? Perhaps not at some point in the future. Now that's under a section of the docs only for Linux. -- Michael --d3ridMs2T0q+nH+S Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJfM9cACgkQnvQgOdby QH1CrBAAp0sP8BTrrLIDG/OZqczCvKrauRpVGzBDXEOuVbCpvfzuX19JzBOI411p VrTf09wiAZEzzdJKXiXKa4FooquW8D+FkFGodlRXJnwDM22/kx/TGnBnybaL5asb eW1sZFuLVgUvprQcga5gm6wD/yAx2Yya3BU2U9zFvMcfx92GkrJyl0/lbRsKEIHg C44nqlQd68KpnE2ufwoq9TIaLIyZ8gE2a2PfqgJllVoB/KBabMkAiRmOOPz3gmKF HrHFvVwRdGyDQu3cUTsBqnBWo424Nl7Wa1zEY1+CUmqYXweZFka4Pf+9EhVOKqcz D9P//HSl4fp3YvbTyYZ+y7Md5jhBOn3LbK2VcqoH3NgEOWOCmWdK2/UlLqTYhnEO 58wYV8kmd9Mgqjr5XLzvDfuD/ksscPLYdU9efAV7MW+a6fIm8vpL7O0D5Gfyy9H/ vYNATN1UPmQfaqsnYjRCgzW+Ei3/Qn91+Na3AidpVGRWJ7qFoA/mg/ewWHGQrxIX lMiFUoEg4FTT2J+5bfZ5n1/nGNxiA4CSDI2cNAyIE75RuyTLTgJKrMV2SU3/RrZ8 JW7dcymcdg9K6fO2aEfH6fz9VhpNbC5qApCjI48Defd49gpoxj0lFMCfFn/Z5d3v 0cThhnXNBPi3BiWs3oNeHh7e0kJjfYQt2hDKd02RYMq/STVp1SQ= =P5rA -----END PGP SIGNATURE----- --d3ridMs2T0q+nH+S--