Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arYhi-00030w-KA for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Apr 2016 22:28:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arYhi-0000hg-6z for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Apr 2016 22:28:38 +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 1arYgM-0007L9-R1 for pgsql-hackers@postgresql.org; Sat, 16 Apr 2016 22:27:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arYgI-00071z-Up for pgsql-hackers@postgresql.org; Sat, 16 Apr 2016 22:27:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3GMR6s4005871; Sat, 16 Apr 2016 18:27:06 -0400 From: Tom Lane To: Andres Freund cc: Noah Misch , Kevin Grittner , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < In-reply-to: <20160416220439.56ga5ghy4zgt356h@alap3.anarazel.de> References: <20160413171955.i53me46fqqhdlztq@alap3.anarazel.de> <20160413192110.fogwesjti3kxycnu@alap3.anarazel.de> <20160413200148.bawmwjdmggbllhha@alap3.anarazel.de> <20160416204452.GA1910190@tornado.leadboat.com> <20160416205630.puxsglckxi3sn5ec@alap3.anarazel.de> <23903.1460843564@sss.pgh.pa.us> <20160416220439.56ga5ghy4zgt356h@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 16 Apr 2016 15:04:39 -0700" Date: Sat, 16 Apr 2016 18:27:06 -0400 Message-ID: <5870.1460845626@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 Andres Freund writes: > On 2016-04-16 17:52:44 -0400, Tom Lane wrote: >> That's more than a 5X penalty, which seems like it would make the >> feature unusable; unless there is an argument that that's an extreme >> case that wouldn't be representative of most real-world usage. >> Which there may well be; I've not been following this thread carefully. > The 4 % was with the feature disabled (in comparison to before it's > introduction), we're not sure where that's coming from. But the 5x - and > that was just on a mid-sized box - is with the feature enabled. 128 processors is a mid-sized box? Or if you didn't have 128 processors, why are you testing "-c 128 -j 128" cases? More seriously, the complaints here seem to center on performance in a read-only workload; but I don't actually see why you'd want to turn on this feature in a read-only, or even read-mostly, workload. It exists for the benefit of people who are trying to keep their pg_xlog/ directories reasonably sized, no? That doesn't sound very read-only-ish to me. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers