Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cM0vq-0006RR-6r for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Dec 2016 23:13:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cM0vp-0002fd-Jy for pgsql-hackers@arkaria.postgresql.org; Tue, 27 Dec 2016 23:13:21 +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 1cM0vo-0002ez-D2 for pgsql-hackers@postgresql.org; Tue, 27 Dec 2016 23:13:20 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cM0vl-0004Nw-6L for pgsql-hackers@postgresql.org; Tue, 27 Dec 2016 23:13:19 +0000 Received: by mail-wm0-x231.google.com with SMTP id t79so296170634wmt.0 for ; Tue, 27 Dec 2016 15:13:16 -0800 (PST) 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=VZ4iDqyRyJ10HNWfGFpQ3n7kEp6nu8juR2DtQJJ86f0=; b=n7jsAYp8PLSdYuUBqMRluo+0cSUxTwZ8rFK2I1dh4eTHS9FV78YDSSCUgU51rrr7Hw Udtz0MU/qrODhRRSfSF4TdaiXXkeFB/rIbNTJTvyA1ChQa36AH5YmUtQwLMzvui0sr8I 8xVrN3xuCIbrNrw1FB4TKm6u1ubbzyVLZcwKxw/AXQrkedN7Kwq6G/qzR1FkCl4FHDNO yk8n3JvbhGKg/DFk4mKk+95bEWlrWx9IpEo9RRzE+WLyoqaok7bS5A93gpZ0XYtqKkMN gRO9oYPC+yR1AWNYsLOANwlacT/MozDe2c8zeOd25ieukbrxy3KlBRBvrgIgMZMXsj4x xcGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=VZ4iDqyRyJ10HNWfGFpQ3n7kEp6nu8juR2DtQJJ86f0=; b=VvoaC2GO4jYwmrySD7GzsM45/pRf35kuEGj5eHW0TPkg2cup/s5ca1xeu5H6b7k6k7 03OSF2xeQ1I69swt0cQcXEHpOIi22j2Fdy0Bk30O0uyUruBBfdXkVovZT1AaCo+8ksII yduMAP6Z6M31Trqo9LfFv6zVri6ikQb5JR7BSlNik0bglY6fZJwMz66GLxMbksiz8cjM mzaV0grP1KSPOOlt3ZuJ64wYMgblUMRx1k/It8YvsVf1jLFJAlejmYxMGtR+lUWWvU5g n4uANyLz8fcdEj+ZiQgPq5/awupQ0SltWY6WWfC6hXaHWut2oCSInRKGnM06ZgFezIvN kb5A== X-Gm-Message-State: AIkVDXKj0U/WeXGZCNtgouUnwwYXsyny8FWSfc8fLPQTbvIwADKkr2SC8GjIYo3rqmy9He7VbuWlvY+fkReXPT+1ft2KDgP4IXw5LT9rzI926ilQbklGPxobDh5A6u7083a3Kn6dKgdVyoh//fncaHUFG+l4/PkGjwDREJcWOjsweTPuZAjvWtP/H4wVXiAeWpdu6MknIp9j X-Received: by 10.28.150.69 with SMTP id y66mr32207041wmd.107.1482880394792; Tue, 27 Dec 2016 15:13:14 -0800 (PST) Received: from [10.137.2.17] (ip-89-177-46-65.net.upcbroadband.cz. [89.177.46.65]) by smtp.gmail.com with ESMTPSA id v202sm57673079wmv.8.2016.12.27.15.13.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 15:13:14 -0800 (PST) Subject: Re: Speed up Clog Access by increasing CLOG buffers To: Amit Kapila References: <4a52a34f-57fa-7bcf-d34c-c15db40f0361@2ndquadrant.com> <956b695d-f6c5-d652-bf0c-cea95981547c@BlueTreble.com> <5275bf49-545e-e189-48c5-17b5defc45a2@2ndquadrant.com> <04e39ac9-af28-0fda-8f72-7268197d281f@2ndquadrant.com> <84c22fbb-b9c4-a02f-384b-b4feb2c67193@2ndquadrant.com> Cc: Robert Haas , Jim Nasby , Dilip Kumar , Andres Freund , pgsql-hackers From: Tomas Vondra Message-ID: <91d57161-d3ea-0cc2-6066-80713e4f90d7@2ndquadrant.com> Date: Wed, 28 Dec 2016 00:13:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 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 12/23/2016 03:58 AM, Amit Kapila wrote: > On Thu, Dec 22, 2016 at 6:59 PM, Tomas Vondra > wrote: >> Hi, >> >> But as discussed with Amit in Tokyo at pgconf.asia, I got access to a >> Power8e machine (IBM 8247-22L to be precise). It's a much smaller machine >> compared to the x86 one, though - it only has 24 cores in 2 sockets, 128GB >> of RAM and less powerful storage, for example. >> >> I've repeated a subset of x86 tests and pushed them to >> >> https://bitbucket.org/tvondra/power8-results-2 >> >> The new results are prefixed with "power-" and I've tried to put them right >> next to the "same" x86 tests. >> >> In all cases the patches significantly reduce the contention on >> CLogControlLock, just like on x86. Which is good and expected. >> > > The results look positive. Do you think we can conclude based on all > the tests you and Dilip have done, that we can move forward with this > patch (in particular group-update) or do you still want to do more > tests? I am aware that in one of the tests we have observed that > reducing contention on CLOGControlLock has increased the contention on > WALWriteLock, but I feel we can leave that point as a note to > committer and let him take a final call. From the code perspective > already Robert and Andres have taken one pass of review and I have > addressed all their comments, so surely more review of code can help, > but I think that is not a big deal considering patch size is > relatively small. > Yes, I believe that seems like a reasonable conclusion. I've done a few more tests on the Power machine with data placed on a tmpfs filesystem (to minimize all the I/O overhead), but the results are the same. I don't think more testing is needed at this point, at lest not with the synthetic test cases we've been using for the testing. The patch already received way more benchmarking than most other patches. 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