pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Speed up Clog Access by increasing CLOG buffers
Date: Thu, 29 Sep 2016 03:10:30 +0200
Message-ID: <d8dd08a9-1352-a34a-833b-6864780a4c53@2ndquadrant.com> (raw)
In-Reply-To: <CA+TgmoaKi1GDLpBTBBv+jQ0uizu4nev_7iU_9z1i76gNd9Mo8g@mail.gmail.com>
References: <CAA4eK1+8=X9mSNeVeHg_NqMsOR-XKsjuqrYzQf=iCsdh3U4EOA@mail.gmail.com>
	<CA+Tgmoan8OxOfxCqiYr6T_Rc9qPFPBxWukBzi1xbGez1UpXx3Q@mail.gmail.com>
	<a87bfbfb-6511-b559-bab6-5966b7aabb8e@2ndquadrant.com>
	<CAA4eK1K7Jh1GxQeS+9-ZsadZpz+DfiCXVTjqk+X00aCV6gyP0g@mail.gmail.com>
	<26b69fb2-fa4d-530c-7783-1cb9d952c4e5@2ndquadrant.com>
	<781ac43c-da69-f5c7-a828-7b995691d4cc@2ndquadrant.com>
	<CAA4eK1K4HEsy819bkDxA3GxGBRsBvu9MmuGh3Q_CxUho29FG4A@mail.gmail.com>
	<5da94f12-8141-2f2f-016a-09a8e37bdd30@2ndquadrant.com>
	<CAA4eK1J1sJchNAsbbhKP1DSRubcZLtQuiTjWpxdF0rc9+QoXvg@mail.gmail.com>
	<e78b4f32-f24e-f282-1f46-b66d39d9ca9a@2ndquadrant.com>
	<f9a8572b-5f27-6666-0f44-e845480d989e@2ndquadrant.com>
	<43198bfb-391b-75da-0517-31e56c4d11f4@2ndquadrant.com>
	<d7a7e096-daac-9207-8eae-50f450203312@2ndquadrant.com>
	<CA+TgmoZ+2OmyUfcNOPsFwsBXJdBcKKPnLaFJ3DJyYLop0u_OLQ@mail.gmail.com>
	<e654de76-0aaa-2873-e105-b6a358e59894@2ndquadrant.com>
	<CA+TgmoaKi1GDLpBTBBv+jQ0uizu4nev_7iU_9z1i76gNd9Mo8g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 09/29/2016 01:59 AM, Robert Haas wrote:
> On Wed, Sep 28, 2016 at 6:45 PM, Tomas Vondra
> <tomas.vondra@2ndquadrant.com> wrote:
>> So, is 300 too little? I don't think so, because Dilip saw some benefit from
>> that. Or what scale factor do we think is needed to reproduce the benefit?
>> My machine has 256GB of ram, so I can easily go up to 15000 and still keep
>> everything in RAM. But is it worth it?
>
> Dunno. But it might be worth a test or two at, say, 5000, just to
> see if that makes any difference.
>

OK, I have some benchmarks to run on that machine, but I'll do a few 
tests with scale 5000 - probably sometime next week. I don't think the 
delay matters very much, as it's clear the patch will end up with RwF in 
this CF round.

> I feel like we must be missing something here.  If Dilip is seeing
> huge speedups and you're seeing nothing, something is different, and
> we don't know what it is.  Even if the test case is artificial, it
> ought to be the same when one of you runs it as when the other runs
> it.  Right?
>

Yes, definitely - we're missing something important, I think. One 
difference is that Dilip is using longer runs, but I don't think that's 
a problem (as I demonstrated how stable the results are).

I wonder what CPU model is Dilip using - I know it's x86, but not which 
generation it is. I'm using E5-4620 v1 Xeon, perhaps Dilip is using a 
newer model and it makes a difference (although that seems unlikely).

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



view thread (248+ messages)  latest in thread

Message-ID: <d8dd08a9-1352-a34a-833b-6864780a4c53@2ndquadrant.com>
Permalink:  ../d8dd08a9-1352-a34a-833b-6864780a4c53@2ndquadrant.com/
Also on:    postgresql.org/message-id/d8dd08a9-1352-a34a-833b-6864780a4c53@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, robertmhaas@gmail.com, amit.kapila16@gmail.com, dilipbalaut@gmail.com, andres@anarazel.de
  Subject: Re: Speed up Clog Access by increasing CLOG buffers
  In-Reply-To: <d8dd08a9-1352-a34a-833b-6864780a4c53@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox