Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnRya-0007Bt-WF for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 15:01:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bnRya-0007gT-CZ for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 15:01:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bnRxC-00065v-IH for pgsql-hackers@postgresql.org; Fri, 23 Sep 2016 14:59:54 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bnRx9-0000UR-8T for pgsql-hackers@postgresql.org; Fri, 23 Sep 2016 14:59:52 +0000 Received: by mail-wm0-x229.google.com with SMTP id l132so34800384wmf.1 for ; Fri, 23 Sep 2016 07:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=jl4yicT2Cdo/Ow3mlVZy5Eu/yEkpOQZbG1jf5Jj12/o=; b=tv/4k5jMVEmuvalvG2XQynNg/lP2aMDhELJsrbL+wnRi93BZZhiFLmhJJBZVntsqUB u1OI7dizm3oL9e6QrIblYOOsXzXfdvAf9xHM4+AFWp1nPWh2P4hDoijYoXvbJPsV9mJe +3EtGn+oMvDOGhszcoRlkxUVEq6nk9xcDcfMMiuFFfp4goHE9tY1mwN8mDAaSYWt7UJX y60oj2Njol6Ww693m+pmb0rTupgXLTLBOmUBl7FmacsVRs9w5ChUw5PUU3VkJxCXsVKc LAwTQbpUOme5ysU6dTGq8NBzQdGgado3ydsCTcBvWePN3lZ3GRyBTCoX/6f8cKUy1I12 Cckw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=jl4yicT2Cdo/Ow3mlVZy5Eu/yEkpOQZbG1jf5Jj12/o=; b=FHhCb4HOkWIu2Y7OO53YFxZZUw7cjRATmBFQZpgDSub1Y4YJv+Wrm2xwkQBuJgFL9b eMYxAkP4pnwEb1+93GGh2/jSc2CPaPis8Ulnner9zXFDEgw/lU9hSad58eCGwjv+bWR8 ygU4xtSUdoj/9dCyCHBsp/9lXUvcfQQjtOStD/gLMUXSz00NT1fSdEe/C5JYEZQqV4gR wVMZkGMAqXEl/9kZIlmIMTcyvoa73NzMz8MF1WI3Cxmd9yDCR6jBqPeevOZ5730qElVF Wo4WMlpaVa1NpFlj065Hilns5KDD5epzaXmsWZU3bQJ2WU2WTaDxk8OdGaMG1lueKP08 rgpw== X-Gm-Message-State: AE9vXwNqkf/N/1ATt+4h64z2yXP5q0Tyqgmb3m7805AVBv7SupPD2m6yWfxITj+cU9B2ihZSVewyfdnENqaDZn9BdjdlCf68JpS/QaZ5gQNGOLHtWY1wT0kbPsRhY6GQEhmekbZVEPjYT0egCqFaIMWYpdmvAHAyYHrfJuCE0bELeMuAiMVtAmc8+5fUEBaH4eM5JYXz+MMK X-Received: by 10.194.90.239 with SMTP id bz15mr7455162wjb.146.1474642789124; Fri, 23 Sep 2016 07:59:49 -0700 (PDT) Received: from [10.137.2.17] (ip-89-177-44-58.net.upcbroadband.cz. [89.177.44.58]) by smtp.gmail.com with ESMTPSA id h7sm3491674wmg.24.2016.09.23.07.59.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Sep 2016 07:59:48 -0700 (PDT) Subject: Re: Speed up Clog Access by increasing CLOG buffers To: Pavan Deolasee References: <0733fb9c-c3dc-fe30-1ad1-8c3ddf05c92d@2ndquadrant.com> <3dfb27e5-d3d3-20bb-2b35-3a0e2747625f@2ndquadrant.com> <9e877db7-4dc2-88c1-67ae-034ad1a5cafe@2ndquadrant.com> <26b69fb2-fa4d-530c-7783-1cb9d952c4e5@2ndquadrant.com> Cc: Amit Kapila , Robert Haas , Dilip Kumar , Andres Freund , pgsql-hackers From: Tomas Vondra Message-ID: <94192968-1bb2-d409-190e-99915b2bcdb5@2ndquadrant.com> Date: Fri, 23 Sep 2016 16:59:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Thunderbird/46.0a2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 09/23/2016 02:59 PM, Pavan Deolasee wrote: > > > On Fri, Sep 23, 2016 at 6:05 PM, Tomas Vondra > > wrote: > > On 09/23/2016 05:10 AM, Amit Kapila wrote: > > On Fri, Sep 23, 2016 at 5:14 AM, Tomas Vondra > > wrote: > > On 09/21/2016 08:04 AM, Amit Kapila wrote: > > > > (c) Although it's not visible in the results, 4.5.5 almost > perfectly > eliminated the fluctuations in the results. For example when > 3.2.80 produced > this results (10 runs with the same parameters): > > 12118 11610 27939 11771 18065 > 12152 14375 10983 13614 11077 > > we get this on 4.5.5 > > 37354 37650 37371 37190 37233 > 38498 37166 36862 37928 38509 > > Notice how much more even the 4.5.5 results are, compared to > 3.2.80. > > > how long each run was? Generally, I do half-hour run to get > stable results. > > > 10 x 5-minute runs for each client count. The full shell script > driving the benchmark is here: http://bit.ly/2doY6ID and in short it > looks like this: > > for r in `seq 1 $runs`; do > for c in 1 8 16 32 64 128 192; do > psql -c checkpoint > pgbench -j 8 -c $c ... > done > done > > > > I see couple of problems with the tests: > > 1. You're running regular pgbench, which also updates the small > tables. At scale 300 and higher clients, there is going to heavy > contention on the pgbench_branches table. Why not test with pgbench > -N? Sure, I can do a bunch of tests with pgbench -N. Good point. But notice that I've also done the testing with Dilip's workload, and the results are pretty much the same. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers