Re: stress test for parallel workers
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@postgresql.org, Thomas Munro <thomas.munro@enterprisedb.com>
Date: 2019-07-23T17:28:47Z
Lists: pgsql-hackers
Justin Pryzby <pryzby@telsasoft.com> writes: > Does anyone have a stress test for parallel workers ? > On a customer's new VM, I got this several times while (trying to) migrate their DB: > < 2019-07-23 10:33:51.552 CDT postgres >FATAL: postmaster exited during a parallel transaction We've been seeing this irregularly in the buildfarm, too. I've been suspicious that it's from an OOM kill on the postmaster in the buildfarm cases, but ... > There's nothing in dmesg nor in postgres logs. ... you'd think an OOM kill would show up in the kernel log. (Not necessarily in dmesg, though. Did you try syslog?) > Ideally a minimal test, since I'm apparently going to > have to run under gdb to see how it's dying, or even what process is failing. Like it told you, it's the postmaster that's going away. That's Not Supposed To Happen, of course, but unfortunately Linux' OOM kill heuristic preferentially targets the postmaster when its children are consuming too many resources. If that is the problem, there's some info on working around it at https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT 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