From: Michael Paquier <michael.paquier@gmail.com>
To: REIX, Tony <tony.reix@atos.net>
Cc: Noah Misch <noah@leadboat.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Konstantin Knizhnik <k.knizhnik@postgrespro.ru>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Bernd Helmle <mailings@oopsware.de>
Cc: OLIVA, PASCAL <pascal.oliva@atos.net>
Cc: EMPEREUR-MOT, SYLVIE <sylvie.empereur-mot@atos.net>
Subject: Re: [HACKERS] Deadlock in XLogInsert at AIX
Date: Tue, 16 Jan 2018 21:50:03 +0900
Message-ID: <20180116125003.GC3679@paquier.xyz> (raw)
In-Reply-To: <B37989F2852398498001550C29155BE5184AC1F0@FRCRPVV9EX3MSX.ww931.my-it-solutions.net>
References: <a72cfcb0-37d0-de2f-b3ec-f38ad8d6a8cc@postgrespro.ru>
<0184657d-cf64-10f6-9706-7329f23f5f89@iki.fi>
<85a1966c-aeee-fb38-77bd-6cad9a90b35f@postgrespro.ru>
<2c4037f1-b35d-4d71-0d32-40a97523b31c@postgrespro.ru>
<5de6b64a-f842-9166-e41a-ed7b87a2729b@iki.fi>
<7609057e-b021-56d8-afb6-27acc1dfdeea@postgrespro.ru>
<15802dd8-4601-d9d2-3388-35dcb326b4a2@iki.fi>
<20170203002650.GA775605@tornado.leadboat.com>
<20180116071211.GB3679@paquier.xyz>
<B37989F2852398498001550C29155BE5184AC1F0@FRCRPVV9EX3MSX.ww931.my-it-solutions.net>
On Tue, Jan 16, 2018 at 08:25:51AM +0000, REIX, Tony wrote:
> My team and my company (ATOS/Bull) are involved in improving the
> quality of PostgreSQL on AIX.
Cool to hear that!
> We have AIX 6.1, 7.1, and 7.2 Power8 systems, with several
> logical/physical processors. And I plan to have a more powerful (more
> processors) machine for running PostgreSQL stress tests.
> A DB-expert colleague has started to write some new not-too-complex
> stress tests that we'd like to submit to PostgreSQL project later.
> For now, using latest versions of XLC 12 (12.1.0.19) and 13 (13.1.3.4
> with a patch), we have only (on AIX 6.1 and 7.2) one remaining random
> failure (dealing with src/bin/pgbench/t/001_pgbench.pl test), for
> PostgreSQL 9.6.6 and 10.1 . And, on AIX 7.1, we have one more
> remaining failure that may be due to some other dependent
> software. Investigating.
> XLC 13.1.3.4 shows an issue with -O2 and I have a work-around that
> fixes it in ./src/backend/parser/gram.c . We have opened a PMR
> (defect) against XLC. Note that our tests are now executed without the
> PG_FORCE_DISABLE_INLINE "inline" trick in src/include/port/aix.h that
> suppresses the inlining of routines on AIX. I think that older
> versions of XLC have shown issues that have now disappeared (or, at
> least, many of them).
> I've been able to compare PostgreSQL compiled with XLC vs GCC 7.1 and,
> using times outputs provided by PostgreSQL tests, XLC seems to provide
> at least 8% more speed. We also plan to run professional performance
> tests in order to compare PostgreSQL 10.1 on AIX vs Linux/Power. I saw
> some 2017 performance slides, made with older versions of PostgreSQL
> and XLC, that show bad PostgreSQL performance on AIX vs Linux/Power,
> and I cannot believe it. We plan to investigate this.
That's interesting investigation. The community is always interested in
such stories. You could have material for a conference talk.
> Though I have very very little skills about PostgreSQL (I'm porting
> too now GCC Go on AIX), we can help, at least by
> compiling/testing/investigating/stressing in a different AIX
> environment than the AIX ones (32/64bit, XLC/GCC) you have in your
> BuildFarm.
Setting up a buildfarm member with the combination of compiler and
environment where you are seeing the failures would be the best answer
in my opinion:
https://wiki.postgresql.org/wiki/PostgreSQL_Buildfarm_Howto
This does not require special knowledge of PostgreSQL internals, and the
in-core testing framework has improved the last couple of years to allow
for more advanced tests. I do use it as well for some tests on my own
modules (company stuff). The buildfarm code has also followed the pace,
which really helps a lot, thanks to Andrew Dunstan.
Developers and committers are more pro-active if they can see automated
tests failing in the central community place. And buildfarm animals
usually don't stay red for more than a couple of days.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: michael.paquier@gmail.com, tony.reix@atos.net, noah@leadboat.com, hlinnaka@iki.fi, k.knizhnik@postgrespro.ru, mailings@oopsware.de, pascal.oliva@atos.net, sylvie.empereur-mot@atos.net
Subject: Re: [HACKERS] Deadlock in XLogInsert at AIX
In-Reply-To: <20180116125003.GC3679@paquier.xyz>
References: <a72cfcb0-37d0-de2f-b3ec-f38ad8d6a8cc@postgrespro.ru> <0184657d-cf64-10f6-9706-7329f23f5f89@iki.fi> <85a1966c-aeee-fb38-77bd-6cad9a90b35f@postgrespro.ru> <2c4037f1-b35d-4d71-0d32-40a97523b31c@postgrespro.ru> <5de6b64a-f842-9166-e41a-ed7b87a2729b@iki.fi> <7609057e-b021-56d8-afb6-27acc1dfdeea@postgrespro.ru> <15802dd8-4601-d9d2-3388-35dcb326b4a2@iki.fi> <20170203002650.GA775605@tornado.leadboat.com> <20180116071211.GB3679@paquier.xyz> <B37989F2852398498001550C29155BE5184AC1F0@FRCRPVV9EX3MSX.ww931.my-it-solutions.net> <20180116125003.GC3679@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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