Re: Deadlock in XLogInsert at AIX
Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
From: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
To: "REIX, Tony" <tony.reix@atos.net>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Bernd Helmle <mailings@oopsware.de>
Date: 2017-02-02T16:27:53Z
Lists: pgsql-hackers
Hi Tony, On 02.02.2017 17:10, REIX, Tony wrote: > > Hi Konstantin > > I've discussed the "zombie/exit" issue with our expert here. > > - He does not think that AIX has anything special here > > - If the process is marked <exiting> in ps, this is because the flag > SEXIT is set, thus the process is blocked somewhere in the kexitx() > syscall, waiting for something. > > - In order to know what it is waiting for, the best would be to have a > look with *kdb*. > kdb shows the following stack: pvthread+073000 STACK: [005E1958]slock+000578 (00000000005E1958, 8000000000001032 [??]) [00009558].simple_lock+000058 () [00651DBC]vm_relalias+00019C (??, ??, ??, ??, ??) [006544AC]vm_map_entry_delete+00074C (??, ??, ??) [00659C30]vm_map_delete+000150 (??, ??, ??, ??) [00659D88]vm_map_deallocate+000048 (??, ??) [0011C588]kexitx+001408 (??) [000BB08C]kexit+00008C () ___ Recovery (FFFFFFFFFFF9290) ___ WARNING: Eyecatcher/version mismatch in RWA -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Commits
-
For all ppc compilers, implement compare_exchange and fetch_add with asm.
- 30ee5d17c20d 13.0 landed
-
For PowerPC instruction "addi", use constraint "b".
- 930787c7fab9 9.4.25 landed
- af4477b00cf9 11.6 landed
- 62e881946c4d 9.5.20 landed
- 09d74aef33de 9.6.16 landed
- 083929372e04 10.11 landed
- ef13f914e6c2 12.1 landed
- 89b4d7744c80 13.0 landed
-
For all ppc compilers, implement pg_atomic_fetch_add_ with inline asm.
- e7ff59686eac 13.0 landed
-
Replace xlc __fetch_and_add() with inline asm.
- a1df9a015dac 9.6.16 landed
- 8972ac696665 10.11 landed
- 75941f257aac 9.5.20 landed
- 40ad4202513c 11.6 landed
- 1c6b62a7d0e5 12.0 landed
- dd50f1a43290 13.0 landed
-
Test pg_atomic_fetch_add_ with variable addend and 16-bit edge cases.
- e6a90ded5a6c 10.11 landed
- 8d32f82cbbbb 9.6.16 landed
- 4737d3a75b72 9.5.20 landed
- 5b5b0f721d9c 12.0 landed
- 585fc561f824 11.6 landed
- f380c5190134 13.0 landed