Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqRyc-0000ML-Rk for pgsql-committers@arkaria.postgresql.org; Wed, 13 Apr 2016 21:05:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqRyc-0005xX-8c for pgsql-committers@arkaria.postgresql.org; Wed, 13 Apr 2016 21:05:30 +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 1aqRyb-0005wx-LP; Wed, 13 Apr 2016 21:05:29 +0000 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aqRyY-0005mX-Qd; Wed, 13 Apr 2016 21:05:28 +0000 Received: by mail-ob0-x235.google.com with SMTP id k9so40006554obk.2; Wed, 13 Apr 2016 14:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=VQXU1xf7J+Rtw+B1PWNIuM2dYMdXa92JFtJcvd60tYA=; b=f6Go++yEIR/iix1NuPVq6rXQ9uYUlo+Gk+MgwAQ3dfjqRS+LkQkn9fY+sBBgyJSrn8 xe5R01n3z+7CcuUk5DhRYleEU01CAf6EvhPomWhNXC50QpuB+7iTVfeh+Z2RYbk9reLl 8T/Qz6FtCpHlviLu9ldFt3BygMUPVe2470jyS1+fG1timRL3/JrDnaQsQY8usmib068M oFJC/sPXj0SOLfvEh23ajTF0kXxh5hk8SNrsBB4QUKmG7gfjuTGplMOO+hWOOEESJMVk Nh+0fpnVM2hPMPLewL3qe7G1bWbptCRp6rbCnweGjNtTF+Ozp4g6XQlVFxRHmK/xPEjo VAjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=VQXU1xf7J+Rtw+B1PWNIuM2dYMdXa92JFtJcvd60tYA=; b=C2BNKz5eBPVNoJsPAALqKuUnNMPnuT/TGxf1f71N9llE+CxxTKKJ9fN4JDGr6AnPmA JAEVeHVuehO+tLbiWcARH3SiqMoMh5ujWjfg9u7Zn92za1rNRAPxDPGcUHL5DYRP/1+Y A1vw2sOTtiT1xgyRAAQ+rVQOkoFLBw/JYBsZ9YZfHoKKM/22BII9oC+KXMxa/eoMok30 V3mIkXIP2t1friFxNsMl7FH9YE1BOqjrdgKejOxafXC5J1Iw3R18O2oblK4vMeP7aEbu r7uiHSPgqKi9SN1QcKGWQv6M1nOXW3E0lPeQRIRhyCkJP/ZdeXQCmswD392ctQRIfi4v IoUA== X-Gm-Message-State: AOPr4FX3Oy5Acqd7D0Q/H+a6oIHijvAFSEhiaX9DzMKBmiRe0VhV91kZr/hVSeox05XT3Q2F0jqgAo0siuA47A== MIME-Version: 1.0 X-Received: by 10.60.67.35 with SMTP id k3mr5652699oet.54.1460581526060; Wed, 13 Apr 2016 14:05:26 -0700 (PDT) Received: by 10.182.123.39 with HTTP; Wed, 13 Apr 2016 14:05:25 -0700 (PDT) In-Reply-To: <20160413204701.jj2m2tpt6awrxvis@alap3.anarazel.de> References: <20160412185625.g7ixnlpwaqvsqt7v@alap3.anarazel.de> <20160412192801.wffn2vjyszyw4qa4@alap3.anarazel.de> <20160413171955.i53me46fqqhdlztq@alap3.anarazel.de> <20160413192110.fogwesjti3kxycnu@alap3.anarazel.de> <20160413200148.bawmwjdmggbllhha@alap3.anarazel.de> <20160413204701.jj2m2tpt6awrxvis@alap3.anarazel.de> Date: Wed, 13 Apr 2016 16:05:25 -0500 Message-ID: Subject: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < From: Kevin Grittner To: Andres Freund Cc: Robert Haas , Kevin Grittner , "pgsql-hackers@postgresql.org" , "pgsql-committers@postgresql.org" Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Wed, Apr 13, 2016 at 3:47 PM, Andres Freund wrote: > On 2016-04-13 15:21:31 -0500, Kevin Grittner wrote: >> What is the kernel on which these tests were run? > > 3.16. I can upgrade to 4.4 if necessary. No, I'm not aware of any problems from 3.8 on. > But I still believe very strongly that this is side-tracking the issue. As long as I know it isn't a broken NUMA scheduler, or that there were fewer than four NUMA memory nodes, I consider it a non-issue. I just need to know whether it fits that problem profile to feel comfortable that I can interpret the results correctly. >> Which pg commit were these tests run against? > > 85e00470. + some reverts (the whitespace commits make this harder...) in > the reverted case. > > >> If 2201d801 was not included in your -1 tests, have you identified >> where the 2% extra run time is going on -1 versus reverted? > > No. It's hard to do good profiles on most virtualized hardware, since > hardware performance counters are disabled. So you only can do OS > sampling; which has a pretty big performance influence. > > I'm not entirely sure what you mean with "2201d801 was not included in > your -1 tests". The optimization was present. Sorry, the "not" was accidental -- I hate reverse logic errors like that. Based on the commit you used, I have my answer. Thanks. >> Since several other threads lately have reported bigger variation than >> that based on random memory alignment issues, can we confirm that this >> is a real difference in what is at master's HEAD? > > It's unfortunately hard to measure this conclusively here (and in > general). I guess we'll have to look, on native hardware, where the > difference comes from. The difference is smaller on my laptop, and my > workstation is somewhere on a container ship, other physical hardware I > do not have. OK, thanks. I can't think of anything else to ask for at this point. If you feel that you have enough to press for some particular course of action, go for it. Personally, I want to do some more investigation on those big machines. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers