pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid unnecessary shm writes in Parallel Hash Join.
Date: Mon, 27 Jan 2020 02:07:58 +0000
Message-ID: <E1ivtok-0007pG-Il@gemulon.postgresql.org> (raw)

Avoid unnecessary shm writes in Parallel Hash Join.

Currently, Parallel Hash Join cannot be used for full/right joins,
so there is no point in setting the match flag.  It turns out that
the cache coherence traffic generated by those writes slows down
large systems running many-core joins, so let's stop doing that.
In future, if we need to use match bits in parallel joins, we might
want to consider setting them only if not already set.

Back-patch to 11, where Parallel Hash Join arrived.

Reported-by: Deng, Gang
Discussion: https://postgr.es/m/0F44E799048C4849BAE4B91012DB910462E9897A%40SHSMSX103.ccr.corp.intel.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3e4818e9dd5be294d97ca67012528cb1c0b0ccaa

Modified Files
--------------
src/backend/executor/nodeHashjoin.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1ivtok-0007pG-Il@gemulon.postgresql.org>
Permalink:  ../E1ivtok-0007pG-Il@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ivtok-0007pG-Il@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Avoid unnecessary shm writes in Parallel Hash Join.
  In-Reply-To: <E1ivtok-0007pG-Il@gemulon.postgresql.org>
  References: <E1ivtok-0007pG-Il@gemulon.postgresql.org>

* 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