From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com> |
Cc: | Andres Freund <andres(at)2ndquadrant(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: parallel mode and parallel contexts |
Date: | 2015-02-01 00:23:37 |
Message-ID: | CA+TgmoZ3cUue42e6ZPKK8Hq+z0sspAqxN7Y9ztxt-tWFt=3i_Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Jan 30, 2015 at 6:38 PM, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com> wrote:
> On 1/30/15 11:08 AM, Robert Haas wrote:
>> The final patch attached her (parallel-dummy-v2.patch) has been
>> updated slightly to incorporate some prefetching logic. It's still
>> just demo code and is not intended for commit. I'm not sure whether
>> the prefetching logic can actually be made to improve performance,
>> either; if anyone feels like playing with that and reporting results
>> back, that would be swell.
>
> Wouldn't we want the prefetching to happen after ReadBuffer() instead of
> before? This way we risk pushing the buffer we actually want out, plus if
> it's not already available the OS probably won't try and read it until it's
> read all the prefetch blocks.
Please feel free to try it both ways and let me know what you find
out. We've had a decent amount of commentary on this patch and the
parallel sequential scan patch, but AFAICT, not much actual testing.
The best way to find out whether your proposal would be an improvement
is to try it. I have my own theory based on the testing I've done so
far, but what would be better than a theory is some evidence,
preferably collected by diverse users on diverse systems.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2015-02-01 00:27:37 | Re: Re: Abbreviated keys for Numeric |
Previous Message | Peter Geoghegan | 2015-02-01 00:07:23 | Re: Re: Abbreviated keys for Numeric |