Re: Parallel Select query performance and shared buffers

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Claudio Freire <klaussfreire(at)gmail(dot)com>
Cc: Metin Doslu <metin(at)citusdata(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Parallel Select query performance and shared buffers
Date: 2013-12-05 04:03:41
Message-ID: CAA4eK1L8aZxSOAfJVat4-0iCAFatAjnpp1qbE9L_CtvRZDKj9Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

On Wed, Dec 4, 2013 at 10:40 AM, Claudio Freire <klaussfreire(at)gmail(dot)com> wrote:
> On Wed, Dec 4, 2013 at 12:57 AM, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>>> As a quick side, we also repeated the same experiment on an EC2 instance
>>> with 16 CPU cores, and found that the scale out behavior became worse there.
>>> (We also tried increasing the shared_buffers to 30 GB. This change
>>> completely solved the scaling out problem on this instance type, but hurt
>>> our performance on the hi1.4xlarge instances.)
>>
>> Instead of 30GB, you can try with lesser value, but it should be close
>> to your data size.
>
> The OS cache should have provided a similar function.

The performance cannot be same when those pages are in shared buffers as
a. OS can flush those pages
b. anyway loading it again in shared buffers will have some overhead.

> In fact, larger shared buffers shouldn't have made a difference if the
> main I/O pattern are sequential scans, because they use a ring buffer.

Yeah, this is right, but then why he is able to see scaling when he
increased shared buffer's
to larger value.

With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Lawrence Barwick 2013-12-05 04:07:42 Re: FDW: possible resjunk columns in AddForeignUpdateTargets
Previous Message Amit Kapila 2013-12-05 03:32:52 Re: Proof of concept: standalone backend with full FE/BE protocol

Browse pgsql-performance by date

  From Date Subject
Next Message Amit Kapila 2013-12-05 04:16:18 Re: Parallel Select query performance and shared buffers
Previous Message Metin Doslu 2013-12-04 18:28:22 Re: Parallel Select query performance and shared buffers