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 1jqI7K-0000ML-Ki for pgsql-performance@arkaria.postgresql.org; Tue, 30 Jun 2020 15:24:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqI7I-0007NI-6C for pgsql-performance@arkaria.postgresql.org; Tue, 30 Jun 2020 15:24:12 +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 1jqI7H-0007NA-VN for pgsql-performance@lists.postgresql.org; Tue, 30 Jun 2020 15:24:11 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqI7F-0001fe-Ak for pgsql-performance@lists.postgresql.org; Tue, 30 Jun 2020 15:24:11 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1jqI7E-0002hR-1Z; Tue, 30 Jun 2020 11:24:08 -0400 Date: Tue, 30 Jun 2020 11:24:08 -0400 From: Bruce Momjian To: Nikhil Shetty Cc: pgsql-performance@lists.postgresql.org Subject: Re: Recommended value for pg_test_fsync Message-ID: <20200630152408.GA28711@momjian.us> References: <20200629160638.GB17530@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jun 30, 2020 at 10:32:13AM +0530, Nikhil Shetty wrote: > Hi Bruce, > > Based on pg_test_fsync results, should we choose open_datasync or fdatasync as > wal_sync_method? Can we rely on pg_test_fsync for choosing the best I would just pick the fastest method, but if the method is _too_ fast, it might mean that it isn't actually writing to durable storage. > wal_sync_method or is there any other way? pg_test_fsync is the only way I know of, which is why I wrote it. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee