Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aipeh-0005Ow-Lu for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2016 20:45:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aipeg-0003yK-Os for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2016 20:45:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aipdL-0002Qn-L9 for pgsql-hackers@postgresql.org; Wed, 23 Mar 2016 20:44:03 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aipdE-00026i-1C for pgsql-hackers@postgresql.org; Wed, 23 Mar 2016 20:44:03 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 636523B4A2C; Wed, 23 Mar 2016 21:43:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (pD9F6A70B.dip0.t-ipconnect.de [217.246.167.11]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id BC6153B4A2A; Wed, 23 Mar 2016 21:43:41 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 2EF86101DF3; Wed, 23 Mar 2016 21:43:41 +0100 (CET) Date: Wed, 23 Mar 2016 21:43:41 +0100 From: Andres Freund To: Amit Kapila Cc: David Steele , Robert Haas , Thom Brown , Simon Riggs , Jesper Pedersen , pgsql-hackers Subject: Re: Speed up Clog Access by increasing CLOG buffers Message-ID: <20160323204341.GB4686@awork2.anarazel.de> References: <56E7032D.6060908@pgmasters.net> <20160322105221.GD3790@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2016-03-23 12:33:22 +0530, Amit Kapila wrote: > On Wed, Mar 23, 2016 at 12:26 PM, Amit Kapila > wrote: > > > > On Tue, Mar 22, 2016 at 4:22 PM, Andres Freund wrote: > > > > > > > > > I think it's worthwhile to create a benchmark that does something like > > > BEGIN;SELECT ... FOR UPDATE; SELECT pg_sleep(random_time); > > > INSERT;COMMIT; you'd find that if random is a bit larger (say 20-200ms, > > > completely realistic values for network RTT + application computation), > > > the success rate of group updates shrinks noticeably. > > > > > > > Will do some tests based on above test and share results. > > > > Forgot to mention that the effect of patch is better visible with unlogged > tables, so will do the test with those and request you to use same if you > yourself is also planning to perform some tests. I'm playing around with SELECT txid_current(); right now - that should be about the most specific load for setting clog bits. Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers