pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid unnecessary shm writes in Parallel Hash Join.
3+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid unnecessary shm writes in Parallel Hash Join.
@ 2020-01-27 02:07 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Thomas Munro @ 2020-01-27 02:07 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Avoid unnecessary shm writes in Parallel Hash Join.
@ 2020-01-27 02:08 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Thomas Munro @ 2020-01-27 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f9d0be241aacc4913302080594f5a342b8b9dc15

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Avoid unnecessary shm writes in Parallel Hash Join.
@ 2020-01-27 02:08 Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Thomas Munro @ 2020-01-27 02:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6a9fc75d0391e41877ed0a7e6d33335696090015

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-01-27 02:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-27 02:07 pgsql: Avoid unnecessary shm writes in Parallel Hash Join. Thomas Munro <tmunro@postgresql.org>
2020-01-27 02:08 pgsql: Avoid unnecessary shm writes in Parallel Hash Join. Thomas Munro <tmunro@postgresql.org>
2020-01-27 02:08 pgsql: Avoid unnecessary shm writes in Parallel Hash Join. Thomas Munro <tmunro@postgresql.org>

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