Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apbmG-0008V1-Cu for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2016 13:21:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1apbmF-0006xA-0z for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Apr 2016 13:21:15 +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 1apbmE-0006x0-91; Mon, 11 Apr 2016 13:21:14 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1apbmA-0002eQ-Sa; Mon, 11 Apr 2016 13:21:13 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 20BA021C7B1C; Mon, 11 Apr 2016 16:21:09 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LqdIpUnoOLd1; Mon, 11 Apr 2016 16:21:06 +0300 (MSK) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 55A9B21C7982; Mon, 11 Apr 2016 16:21:06 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1460380866; bh=oVqwM6CyEntr29KffCBug4kYdkGn7zCkp9Co9t2C9v4=; h=In-Reply-To:References:From:Date:Subject:To:Cc; b=qWMIrwFt9MYl2SK3A1W8LQnFRD19JAQI/y++RD2fukV+XS29cwFcLrRSUVGbJLz9T LyXp2P+1tnq8KCmEiuXt/z2sFa507GPG2fbYBnRJ0m1tiflDZhP5sFF7CB8rZV75hK +87yI1kd9Ez+1X/uP7QKBX/SiBR9gBEHBDjta8to= Received: by mail-io0-f169.google.com with SMTP id g185so208148035ioa.2; Mon, 11 Apr 2016 06:21:06 -0700 (PDT) X-Gm-Message-State: AD7BkJJx21SZa4NcblX72UMASsmg6Z/c0NvmJuY/Zj6cNBjADFc7W/qIQbqepsfwM10bRK3dDmk8jrr8k/ORSw== X-Received: by 10.107.140.202 with SMTP id o193mr23593369iod.161.1460380864984; Mon, 11 Apr 2016 06:21:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.104.3 with HTTP; Mon, 11 Apr 2016 06:20:45 -0700 (PDT) In-Reply-To: References: From: Alexander Korotkov Date: Mon, 11 Apr 2016 16:20:45 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [COMMITTERS] pgsql: Add the "snapshot too old" feature To: Kevin Grittner , Tom Lane , Andres Freund , Simon Riggs , Robert Haas Cc: pgsql-committers@postgresql.org, pgsql-hackers Content-Type: multipart/alternative; boundary=94eb2c060bfeb1be790530356a54 X-Pg-Spam-Score: -3.0 (---) 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 --94eb2c060bfeb1be790530356a54 Content-Type: text/plain; charset=UTF-8 Kevin, This commit makes me very uneasy. I didn't much care about this patch mainly because I didn't imagine its consequences. Now, I see following: 1) We uglify buffer manager interface a lot. This patch adds 3 more arguments to BufferGetPage(). It looks weird. Should we try to find less invasive way for doing this? 2) Did you ever try to examine performance regression? I tried simple read only test on 4x18 Intel server. pgbench -s 1000 -c 140 -j 100 -M prepared -S -T 300 -P 1 postgres (data fits to shared_buffers) master - 193 740.3 TPS snapshot too old reverted - 1 065 732.6 TPS So, for read-only benchmark this patch introduces more than 5 times regression on big machine. ------ Alexander Korotkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --94eb2c060bfeb1be790530356a54 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Kevin,

This commit makes= me very uneasy.=C2=A0 I didn't much care about this patch mainly becau= se I didn't imagine its consequences. Now, I see following:
<= br>
1) We uglify buffer manager interface a lot.=C2=A0 This patch= adds 3 more arguments to BufferGetPage().=C2=A0 It looks weird.=C2=A0 Shou= ld we try to find less invasive way for doing this?
2) Did you ev= er try to examine performance regression?=C2=A0 I tried simple read only te= st on 4x18 Intel server.
pgbench -s 1000 -c 140 -j 100 -M prepare= d -S -T 300 -P 1 postgres (data fits to shared_buffers)

master =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0- =C2=A0 193 740.3 TPS
snapshot too old reverted - 1 065 732.6 TPS
<= div>
So, for read-only benchmark this patch introduces more t= han 5 times regression on big machine.

------
Alexander Korotkov
Postgres Profession= al: http://www.pos= tgrespro.com
The Russian Postgres Company
--94eb2c060bfeb1be790530356a54--