Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boaxf-0005MC-RC for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Sep 2016 18:49:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1boaxf-00047i-AX for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Sep 2016 18:49:07 +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 1boaxd-00042u-3m for pgsql-hackers@postgresql.org; Mon, 26 Sep 2016 18:49:05 +0000 Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1boaxa-0006d2-9g for pgsql-hackers@postgresql.org; Mon, 26 Sep 2016 18:49:03 +0000 Received: by mail-lf0-x236.google.com with SMTP id g62so152885222lfe.3 for ; Mon, 26 Sep 2016 11:49:01 -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=gUm4PeAP86j407M7EL/zkQAm+I7EfCPYSVuMArqTiBA=; b=1MTEqKHK/FOxCMIdMW9zH/uka50Gfu9YzW//8yPjA+/e5zU3gYEFfnHrJTHdJPgqZ/ bLIC9qUXPvIQmKeQTMvGEWtQIePwSg+2SHv+xjzAFcxPiWdPkFrIqwxHf8A73iUXzLNo SKR2oLXeIScjHNvA8gSEmbJovy++7cZ0+4pQ5hGVTLSPz65h/PVXticeqyBCS6vzKLcQ tx/6AdoWpTZfwZZYkXjEGgG1IrnFWggbI2voEKLStG+9ItYoaswwwTYjlfXilK2ISGBM 1mimUsBeTEaewK0Wt9d5rPguoyrqQto0XNkJjJcCPgHni9xKXFCgJESXmUHlRGiY1QYe SBlQ== 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=gUm4PeAP86j407M7EL/zkQAm+I7EfCPYSVuMArqTiBA=; b=jXBkzq7uTc8uv5y/ndkg+bVfhj3K6LtJG2yvLy4H4/lrNLj2TWPaEauLhTEJGuHvbq 6Hqd3oL4X+BzIUvUNPUoXUiBxrnHgOPsbTSweojt9sJz501UmjfL03KuFLVkHGLJ0gNa 6NCJUT41smAYnKjQuc5wmMAjuRS2oBy//DSCl/xxLPnvM+0nPdwVl9i0X+OfGS0FYW8Z xc8d9LjfwWs4V8N+nOkw/hBfyVeVskADTlVvVcgve5xlUVpzbD8EZFkeTmbyJtcBF7mz NDSC2dSha72ODnCR9S4MpleRnrUgsMnKTxXHk5FiFbWTZH1t5O9XuahDARDUCrgJaANB IUhw== X-Gm-Message-State: AA6/9RmDkvsmIXTz6Rh/v8oCEwQsJiytNWZPkjtz/V6p48o2Ce5JDKffwwrU0no3cTg3R6aYAh4crV+OhtcDMn2f70Lmv25NEqup7/zipMFnj3isHswPjoO5ari/HEKWxhxU3d0+yU74pPN8RHMxL8y4RmfwLIT4DaFUYX2GuyR+cWLdWS7yZGsORMI94TSkjlgGVV1zsxND X-Received: by 10.28.154.142 with SMTP id c136mr17125315wme.102.1474915739813; Mon, 26 Sep 2016 11:48:59 -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 a3sm9718200wjg.33.2016.09.26.11.48.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Sep 2016 11:48:58 -0700 (PDT) Subject: Re: Speed up Clog Access by increasing CLOG buffers To: Amit Kapila 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> <781ac43c-da69-f5c7-a828-7b995691d4cc@2ndquadrant.com> <5da94f12-8141-2f2f-016a-09a8e37bdd30@2ndquadrant.com> Cc: Robert Haas , Dilip Kumar , Andres Freund , pgsql-hackers From: Tomas Vondra Message-ID: <43198bfb-391b-75da-0517-31e56c4d11f4@2ndquadrant.com> Date: Mon, 26 Sep 2016 20:48:55 +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/26/2016 07:16 PM, Tomas Vondra wrote: > > The averages (over the 10 runs, 5 minute each) look like this: > > 3.2.80 1 8 16 32 64 128 192 > -------------------------------------------------------------------- > granular-locking 1567 12146 26341 44188 43263 49590 15042 > no-content-lock 1567 12180 25549 43787 43675 51800 16831 > group-update 1550 12018 26121 44451 42734 51455 15504 > master 1566 12057 25457 42299 42513 42562 10462 > > 4.5.5 1 8 16 32 64 128 192 > -------------------------------------------------------------------- > granular-locking 3018 19031 27394 29222 32032 34249 36191 > no-content-lock 2988 18871 27384 29260 32120 34456 36216 > group-update 2960 18848 26870 29025 32078 34259 35900 > master 2984 18917 26430 29065 32119 33924 35897 > > That is: > > (1) The 3.2.80 performs a bit better than before, particularly for 128 > and 256 clients - I'm not sure if it's thanks to the reboots or so. > > (2) 4.5.5 performs measurably worse for >= 32 clients (by ~30%). That's > a pretty significant regression, on a fairly common workload. > FWIW, now that I think about this, the regression is roughly in line with my findings presented in my recent blog post: http://blog.2ndquadrant.com/postgresql-vs-kernel-versions/ Those numbers were collected on a much smaller machine (2/4 cores only), which might be why the difference observed on 32-core machine is much more significant. 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