Re: [HACKERS] Deadlock in XLogInsert at AIX
От
Konstantin Knizhnik
Тема
Re: [HACKERS] Deadlock in XLogInsert at AIX
Дата
Msg-id
7609057e-b021-56d8-afb6-27acc1dfdeea@postgrespro.ru
Ответ на
Re: [HACKERS] Deadlock in XLogInsert at AIX (Heikki Linnakangas)
Список
Дерево обсуждения
[HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Andres Freund <andres@anarazel.de>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Deadlock in XLogInsert at AIX Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Tom Lane <tgl@sss.pgh.pa.us>
RE:[HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Bernd Helmle <mailings@oopsware.de>
Re: [HACKERS] Deadlock in XLogInsert at AIX Michael Paquier <michael.paquier@gmail.com>
RE:[HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Noah Misch <noah@leadboat.com>
RE:[HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX "REIX, Tony" <tony.reix@atos.net>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Deadlock in XLogInsert at AIX Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] Deadlock in XLogInsert at AIX Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Re: [HACKERS] Deadlock in XLogInsert at AIX Bernd Helmle <mailings@oopsware.de>
Attached please find my patch for XLC/AIX.
The most critical fix is adding __sync to pg_atomic_fetch_add_u32_impl.
The comment in this file says that:
* __fetch_and_add() emits a leading "sync" and trailing "isync",
thereby
* providing sequential consistency. This is undocumented.
But it is not true any more (I checked generated assembler code in
debugger).
This is why I have added __sync() to this function. Now pgbench working
normally.
Also there is mysterious disappearance of assembler section function
with sync instruction from pg_atomic_compare_exchange_u32_impl.
I have fixed it by using __sync() built-in function instead.
Thanks to everybody who helped me to locate and fix this problem.
--
Konstantin Knizhnik
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: David Rowley
Дата:
От: Heikki Linnakangas
Дата: