Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alZg6-0003WG-9I for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2016 10:18:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1alZg5-0000K8-Re for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Mar 2016 10:18:13 +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 1alZg4-0000K1-U2 for pgsql-hackers@postgresql.org; Thu, 31 Mar 2016 10:18:12 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alZg1-00017n-Uw for pgsql-hackers@postgresql.org; Thu, 31 Mar 2016 10:18:12 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 355F8580003; Thu, 31 Mar 2016 12:18:08 +0200 (CEST) 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 (pD9F6A973.dip0.t-ipconnect.de [217.246.169.115]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 9C78E580001; Thu, 31 Mar 2016 12:18:05 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 1890D1028FD; Thu, 31 Mar 2016 12:18:05 +0200 (CEST) Date: Thu, 31 Mar 2016 12:18:05 +0200 From: Andres Freund To: Amit Kapila Cc: pgsql-hackers Subject: Re: Speed up Clog Access by increasing CLOG buffers Message-ID: <20160331101804.GD23562@awork2.anarazel.de> References: <20150903114137.GE27649@awork2.anarazel.de> <20160330230914.GH13305@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -5.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-31 15:07:22 +0530, Amit Kapila wrote: > On Thu, Mar 31, 2016 at 4:39 AM, Andres Freund wrote: > > > > On 2016-03-28 22:50:49 +0530, Amit Kapila wrote: > > > On Fri, Sep 11, 2015 at 8:01 PM, Amit Kapila > > > wrote: > > > > > > > > Amit, could you run benchmarks on your bigger hardware? Both with > > USE_CONTENT_LOCK commented out and in? > > > > Yes. Cool. > > I think we should go for 1) and 2) unconditionally. > Yes, that makes sense. On 20 min read-write pgbench --unlogged-tables > benchmark, I see that with HEAD Tps is 36241 and with increase the clog > buffers patch, Tps is 69340 at 128 client count (very good performance > boost) which indicates that we should go ahead with 1) and 2) patches. Especially considering the line count... I do wonder about going crazy and increasing to 256 immediately. It otherwise seems likely that we'll have the the same issue in a year. Could you perhaps run your test against that as well? > I think we should change comments on top of this function. Yes, definitely. > 0001-Improve-64bit-atomics-support > > +#if 0 > +#ifndef PG_HAVE_ATOMIC_READ_U64 > +#define PG_HAVE_ATOMIC_READ_U64 > +static inline uint64 > > What the purpose of above #if 0? Other than that patch looks good to me. I think I was investigating something. Other than that obviously there's no point. Sorry for that. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers