Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0AZu-0004Rl-2f for pgsql-hackers@arkaria.postgresql.org; Tue, 10 May 2016 16:32:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b0AZt-0002yu-Fq for pgsql-hackers@arkaria.postgresql.org; Tue, 10 May 2016 16:32:09 +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 1b0AZt-0002yo-2m for pgsql-hackers@postgresql.org; Tue, 10 May 2016 16:32:09 +0000 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b0AZp-0005RY-S2 for pgsql-hackers@postgresql.org; Tue, 10 May 2016 16:32:08 +0000 Received: by mail-lf0-x22f.google.com with SMTP id j8so21062794lfd.2 for ; Tue, 10 May 2016 09:32:05 -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=eB9FNX1spS/8iNPi8u2rJZcQA0iwxdxc+wfzkcSY/44=; b=BnO4XKJrio8LFV5KG+Klw1NEz+NpWXycOIgZbiABHR75gsVWPXw6qqhnAqfcSg2/JJ sAO4OprLAQ+UIADD3XXamUYikjCGoPAYExDaokbs81/Yr+bIU96+HESH9i+qc0E1IgpE mKY66PkuDU+TGxXz0mXLL/FSCXl6yMqo23bUw1Pmc3qQm32gryG0bc/cIPzj5F/a7l+1 EIXwa/+h0ayffJSQB88qkWORVrThh8V73I9rqQJFjkerS05id1vM/g6cohFdUM3eZ3Sh WbL/YcLQ59x6Oif5YG3F+CI8t24IXm3otvHTKB3azsoDTv9Nz1MigHjTtSncj7iaE8en s53Q== 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=eB9FNX1spS/8iNPi8u2rJZcQA0iwxdxc+wfzkcSY/44=; b=F2mN6kFYeUjJtp3XxbmdZLu2XQZ2um5b5MN0DJUhxzIzpoQM9T4xNV5YPmfKsOlNh8 3shsownnChgCfO6yQ8LN9rMzsQS9NfCt6SgIk26rC+bM2GLB8hZjUppbZl6rzgTwLpF8 45TPAFJ8adl5fChOxuzcGEpl44G99Crrej8LfR5hlnA0DsSZSHRfDCNC9F8qPiiflNBx 5nZCbj/x2aVBKh9dRpTr+rMbdg599Td8zrHwAs7sVpaVnlfRUt1B/+9xW4Z4OHDRfGQN aebizCzY8KuMKfCFEkkTL/GJT+n5tWT15NfFbF5QfYs4BFj9JjPsp0luO9JQDnnucjll 8gbg== X-Gm-Message-State: AOPr4FXP6+QWW3DtLS4gujVBmgeFS6DzbFYbcoK+wyqfH6CluFVvnuG/iiVzlxeT10PFva9BXOMrEW1JPaSCzN1xmg8QNJODM89EytgajeAWKEMMGJIozsa9WkATW2odvMEpDK5TW5S6857hMUooTpljtyUVwLijwldiALMYWpCa4Ow3a6wSW6rmogBTyyrqgVG6yR697ueY X-Received: by 10.112.198.169 with SMTP id jd9mr14647774lbc.94.1462897924732; Tue, 10 May 2016 09:32:04 -0700 (PDT) Received: from [10.137.2.20] ([194.136.21.34]) by smtp.gmail.com with ESMTPSA id l20sm528514lfl.19.2016.05.10.09.31.58 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2016 09:31:59 -0700 (PDT) Subject: Re: what to revert To: Kevin Grittner References: <20160503162209.ufuezlkovbrdrayp@alap3.anarazel.de> <20160503174104.tk7oz4akwbeqsmuq@alap3.anarazel.de> <20160503224241.rwtxrhgmprzqxhlv@alap3.anarazel.de> Cc: Andres Freund , "pgsql-hackers@postgresql.org" From: Tomas Vondra Message-ID: Date: Tue, 10 May 2016 18:31:49 +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 05/10/2016 03:04 PM, Kevin Grittner wrote: > On Tue, May 10, 2016 at 3:29 AM, Kevin Grittner > wrote: > >>> * The results are a bit noisy, but I think in general this shows >>> that for certain cases there's a clearly measurable difference >>> (up to 5%) between the "disabled" and "reverted" cases. This is >>> particularly visible on the smallest data set. >> >> In some cases, the differences are in favor of disabled over >> reverted. > > There were 75 samples each of "disabled" and "reverted" in the > spreadsheet. Averaging them all, I see this: > > reverted: 290,660 TPS > disabled: 292,014 TPS Well, that kinda assumes it's one large group. I was wondering whether the difference depends on some of the other factors (scale factor, number of clients), which is why I mentioned "for certain cases". The other problem is averaging the difference like this overweights the results for large client counts. Also, it mixes results for different scales, which I think is pretty important. The following table shows the differences between the disabled and reverted cases like this: sum('reverted' results with N clients) ---------------------------------------- - 1.0 sum('disabled' results with N clients) for each scale/client count combination. So for example 4.83% means with a single client on the smallest data set, the sum of the 5 runs for reverted was about 1.0483x than for disabled. scale 1 16 32 64 128 100 4.83% 2.84% 1.21% 1.16% 3.85% 3000 1.97% 0.83% 1.78% 0.09% 7.70% 10000 -6.94% -5.24% -12.98% -3.02% -8.78% So in average for each scale; scale revert/disable 100 2.78% 3000 2.47% 10000 -7.39% Of course, it still might be due to noise. But looking at the two tables that seems rather unlikely, I guess. > > That's a 0.46% overall increase in performance with the patch, > disabled, compared to reverting it. I'm surprised that you > consider that to be a "clearly measurable difference". I mean, it > was measured and it is a difference, but it seems to be well within > the noise. Even though it is based on 150 samples, I'm not sure we > should consider it statistically significant. Well, luckily we're in the position that we can collect more data. 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