Re: stress test for parallel workers
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-07-23T22:11:58Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes: > *I suspect that the only thing implicating parallelism in this failure > is that parallel leaders happen to print out that message if the > postmaster dies while they are waiting for workers; most other places > (probably every other backend in your cluster) just quietly exit. > That tells us something about what's happening, but on its own doesn't > tell us that parallelism plays an important role in the failure mode. I agree that there's little evidence implicating parallelism directly. The reason I'm suspicious about a possible OOM kill is that parallel queries would appear to the OOM killer to be eating more resources than the same workload non-parallel, so that we might be at more hazard of getting OOM'd just because of that. A different theory is that there's some hard-to-hit bug in the postmaster's processing of parallel workers that doesn't apply to regular backends. I've looked for one in a desultory way but not really focused on it. In any case, the evidence from the buildfarm is pretty clear that there is *some* connection. We've seen a lot of recent failures involving "postmaster exited during a parallel transaction", while the number of postmaster failures not involving that is epsilon. regards, tom lane
Commits
-
In the postmaster, rely on the signal infrastructure to block signals.
- 8b53dbada4a6 12.5 landed
- 85834023a95e 11.10 landed
- 7753ca49d358 9.6.20 landed
- 4e95733b0864 10.15 landed
- 9abb2bfc0460 13.0 landed
-
Paper over regression failures in infinite_recurse() on PPC64 Linux.
- c7e2364a5f17 12.5 landed
- ae0f7b11f143 14.0 landed
- 855b6f287100 13.1 landed
-
Hack pg_ctl to report postmaster's exit status.
- 6a5084eed495 13.0 landed
-
Re-order some regression test scripts for more parallelism.
- 798070ec058f 12.0 cited