Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebQhB-0005ZO-40 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jan 2018 12:50:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebQh9-00017T-Gz for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jan 2018 12:50:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ebQh9-00017H-8I for pgsql-hackers@lists.postgresql.org; Tue, 16 Jan 2018 12:50:27 +0000 Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ebQh0-0008A7-80 for pgsql-hackers@postgresql.org; Tue, 16 Jan 2018 12:50:26 +0000 Received: by mail-pl0-x243.google.com with SMTP id b96so6073475pli.2 for ; Tue, 16 Jan 2018 04:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fKprP9iVgq+bETYUhqEncHuqCvm+8v04eEQMyJBojPY=; b=LJ52y1tXJpTRXTfUT37mxLkG5rAlrbQQ/5d4fOWSXhsNP2ONkEYjyIlLOlJc4Q+mh1 H6VQnEwrIH8Gj4V3SE0bGQ5ul/gslEeq2+AfXOEQn8LJNQO9IfCo46X+eReRs6rJk/C0 zfUhqP74n3BduWzu4cys1RjZ2dDFeK8aL37oGudVVpZH6927SVuCxopL9wotTLa/xXrv AMIJeW7/d0phQcE8OjdGflVLgKEt7S/oP3k4QELuC+mZuq++He0NR2AGhQv1O9u/HcYm IOKq7nqSCkgVe50J9Srb5K/9YukPf67DTaoQYpKEOdJzCXAmPZQ5mwc8VBkMPluaVRBA CsZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fKprP9iVgq+bETYUhqEncHuqCvm+8v04eEQMyJBojPY=; b=p9OQaRGwu1mbKHfGQb0aKwxt5wnkOph9g+KuA/cBKd27XtT2DUWjxvYPpvuPWQ24cl YwVDsuUSqfEsFzC15865h5B4K8pQDcNrkdrDEKGh8YLynGgTt5QxT+Uaymisgo/zPf8m KBVwRPd9KXoG37MYAvF5YynTC7uKkZtHCQeV/5DaA+ag5zcglgKPTyKP7E0CgEPdQeKQ oNMOWXcbC3XBecK1H7JMJp2qACxmMwKheZoOqYLYVFmp6ajwXpvM98v6xFmVbufE72HQ fLfimKhK1HUjk2FnwWkZzgMokaP7PRSv2y0mKtgAI67EEJWPN+jbAmcuBnm7vA6k1gvt Fzuw== X-Gm-Message-State: AKGB3mIW1Eb5T6Vl+JKTlS9UqyDC6pE18YzXgTaC0A75DbDEdxwL7Atx uGrwgiPWyfv9mNV2OgZtLrg= X-Google-Smtp-Source: ACJfBov8ZuHpTdVkmVAj7oCWfamaKSTXbrFmXGEHAWsqXeQ/6Q7UaFUNnYsGn+Se+fPSVzRdXBm+1A== X-Received: by 10.84.129.34 with SMTP id 31mr39050413plb.54.1516107015585; Tue, 16 Jan 2018 04:50:15 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id 77sm3572717pfc.187.2018.01.16.04.50.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Jan 2018 04:50:13 -0800 (PST) Date: Tue, 16 Jan 2018 21:50:03 +0900 From: Michael Paquier To: "REIX, Tony" Cc: Noah Misch , Heikki Linnakangas , Konstantin Knizhnik , PostgreSQL Hackers , Bernd Helmle , "OLIVA, PASCAL" , "EMPEREUR-MOT, SYLVIE" Subject: Re: [HACKERS] Deadlock in XLogInsert at AIX Message-ID: <20180116125003.GC3679@paquier.xyz> References: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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.=20 > 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.=20 > 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=20 > 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).=20 > 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.=20 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 --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpd9PsACgkQnvQgOdby QH3BVQ/8CF0WW1wFivGeEB04JdMubx3Xcd5vRJU1wb1kOKhihJK++ud0PwlDocIC ZgO9kq+ruFXujPVJT+dH8Ecy4lI1bOaBrNgym8Ywq0wzXqA3z2r0Ag11QYv4ck0N LzmGTuBvYfer0NE2XgmFZt/rdCzV8Zp6iQyrNRAIDJWNFdTN4inm8E0feo/fIGmX Ln2ijWqOxPr9kOBD0Q8ui50Ey6Uf2x6TEhlnaNot/5SWBKE5uPFrZ2P0vBCJhUwq 9gT1JtYYBSfmXEMYeG63fUq3mwPpfQVFiRE/ASkTbd524Gaj6l3r/TziwPnnS7Gk E9v/uMdz6Etq7i71TR0kmdIXFjHnXq5q2WAPM6jHzABh+QIgWAEsYaj9p+Xqehzj DyNvG2Yyy85HPF0a7Jvdxbb4b3svxNsaPOemTrg0YkBr/IK8I2+UVZYErikIhacx +ji8qyQMTYsivJBRko2ki0t0E5KBM4Xe3yvcLX3Y0SnpPFXzoe2L1+o/KMW6P+wb L4Mu9sWdspl7tI0egbXbAM+IZwVIEmwUuqEZqHQbKDW/EAgAzVO6nQMf8AqsYfjh uqzGFY9msaHX7Ss+kmc050DcmMANzq9OWhKnlCW/fU9LmNaw4hm9nfBkWN/fuz8O 8g8GzJy2tv8RPLTpB2w3DVMcMSJPvONc9PZRZhyszKdAvU7GPT4= =KVXj -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l--