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 1lvYI7-0002kI-Ei for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Jun 2021 04:45:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lvYI6-0006bU-2u for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Jun 2021 04:45:38 +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 1lvYI5-0006bL-RO for pgsql-hackers@lists.postgresql.org; Tue, 22 Jun 2021 04:45:37 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lvYI2-000194-1o for pgsql-hackers@postgresql.org; Tue, 22 Jun 2021 04:45:36 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C17585C0156; Tue, 22 Jun 2021 00:45:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 22 Jun 2021 00:45:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=BQpzWyBE+SNCBgovKx505REtT9G pI05sdl/JAwHUV4k=; b=mxPsXI0YHqEu0UA9pPpae2rWmk8Frv8p13YHWwPB5aw 7KHUeBREprKThUeshY3JXKwEXwnaFg7gWGrN1YXEa7OaM3VurH20T3DXnc2GLwHY M6DDp/Hf2oVr5ZoFrV7YHWjcGUPLcIjmhsyqVHwgSQyLfbNoXy35vNfn9o++zr/9 gMZs4odqu9i8X6ZuxdTMx4QHAhy3KLOgB7MetNWBSqr1JvL2qZ5SWPzPcskfFyaK goDx4sl8CajXqFzNfOOVHvlvTR0DoYxuGHH6+OOT11WtcUosOrovus71m7n4sMA6 JmhqncSHT/IUe3j7U2c8jDSU1wICgroOMI2uWjXd8EQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=BQpzWy BE+SNCBgovKx505REtT9GpI05sdl/JAwHUV4k=; b=Q7LYlgkeMVuUjuP702WVd6 5i4R/Tad87amB8NK1DMmNcePXYHOyBQwVmEaQhZycb1id/mGKHo9git7uWhtj+JZ wECB8EoYPZuiyz8Opi/SitQSF3Ah7YVoQ6dTFxXWRjPSa/V9vsMcoBCGk1577PFg QJ7sfltD2v3tIVCsyLPPeSSXNzy76ecDAytF7gv/cA0sO5qz21oEA0SbXUzXnZpB 3wB2p+kUx/UiU2YVrjnXEjOEl89+TvjJKLn+62CG1MQV5B4P7gDjrHO4taBu/Zd5 OIfDvRGICA+iPyjoPQD0mONnVSI+Sz93+TwVFzBk/747fRKtA4dCG9LPRi5EhiEw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeegtddgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Jun 2021 00:45:28 -0400 (EDT) Date: Tue, 22 Jun 2021 13:45:24 +0900 From: Michael Paquier To: Fujii Masao Cc: Justin Pryzby , Thomas Munro , David Steele , Bruce Momjian , Paul Guo , Tom Lane , Michael Brown , pgsql-hackers@postgresql.org Subject: Re: fdatasync performance problem with large number of DB files Message-ID: References: <7716fafe-fcab-3faf-c337-d1e8c6ae6191@pgmasters.net> <20210526001359.GE3676@telsasoft.com> <20210529192321.GM2082@telsasoft.com> <20210604143904.GQ14099@telsasoft.com> <2589e842-41be-5d83-4616-216acf0a59da@oss.nttdata.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Pr15rAmAYaTwoFJI" Content-Disposition: inline In-Reply-To: <2589e842-41be-5d83-4616-216acf0a59da@oss.nttdata.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Pr15rAmAYaTwoFJI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 18, 2021 at 06:18:59PM +0900, Fujii Masao wrote: > On 2021/06/04 23:39, Justin Pryzby wrote: >> You said switching to SIGHUP "would have zero effect"; but, actually it = allows >> an admin who's DB took a long time in recovery/startup to change the par= ameter >> without shutting down the service. This mitigates the downtime if it cr= ashes >> again. I think that's at least 50% of how this feature might end up bei= ng >> used. >=20 > Yes, it would have an effect when the server is automatically restarted > after crash when restart_after_crash is enabled. At least for me +1 to > your proposed change. Good point about restart_after_crash, I did not consider that. Switching recovery_init_sync_method to SIGHUP could be helpful with that. -- Michael --Pr15rAmAYaTwoFJI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmDRauQACgkQnvQgOdby QH2gAg/+JvGpfowZvCscIL1Ftg3Yxd3GhCEtLh8wCpGiz1ddBaZpmSw7DHlY3bsS ZWSzSIg69HE3h+wReZtA8tdAFb6wkAsebo2OXDpcQmv1qI2M8dQOlgQUI45OomBD euxQx7tKrc/f+TV+M+kgDWu5/KpxeUSasd8owq8MO93Ar7ur45STsbHuD+Supg4W a+WbU6S0WPSZ0X4/6wcF3qHzztr3/SD/QE2pa0S/UGTg1onNNxPJL71RByrZiT7t Aa4skI5xJnhZDgIRLUb1FmmbKHuUNJQ1QQzP2I5KFsE5B//3C1VKrY1haUgPgDrr OW5VAHfW7rWRDY8zubwQg36Dm03PSMQmxmUMquhjjnZ7xD6sto5xgz0nH/GVeS1d cPNyruT+f4DtUyh8GobjD6NosnDoGAUwVSDn+aMk6JuNVWCm/hVP/sS8WIASgEos yX4qb/F8pRFM7Qv7OkAf3wCx8hDVAgCVQuuaUkQYhpcBG+lgP7NEIkc1Gx+PYuoN sfONjUfTqnhlYxjalGlEkiE05kcWGIESXLnq53PKgXCn88A6fHRPKYNTndz+qNmf x5neO+u6eAgiA8GtXKL2Xa89lPiRBZ2VmnPVyZt21mLCgfQILis/ajB2CJqUDNyA JPHiB/q65Q+39c23Qc1vLGB46raKv4eu7ET2rUhfhq6lEgECjbE= =nGU9 -----END PGP SIGNATURE----- --Pr15rAmAYaTwoFJI--