Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfGZR-00065D-K0 for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 26 Oct 2021 07:08:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mfGZQ-0001cO-JL for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 26 Oct 2021 07:08:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfDh4-0004nw-RG for pgsql-pkg-debian@lists.postgresql.org; Tue, 26 Oct 2021 04:04:11 +0000 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfDh1-0002M2-51 for pgsql-pkg-debian@postgresql.org; Tue, 26 Oct 2021 04:04:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1635221048; x=1666757048; h=from:to:cc:subject:date:message-id:mime-version; bh=EQEhDMTAlLTiXX3QyrhayWu1zuBgH7YIum9lxC9DGAA=; b=jSfgXUCzD027yrQGJ43O+rYHHbNVNHQ7aYe89fKTXmC3C5frMfvDJTFU ou/RaOqeA8194daFKsc9CPBdKDwVdjpyUbLWiOdIvBJlVNNQfZeky57oa RQZ/YLNL8jP9S3ChQLgilyvgVmuvyA5FTuSNwuw01Ibze8H8Qz2u4iNuf A=; X-IronPort-AV: E=Sophos;i="5.87,182,1631577600"; d="scan'208,217";a="147368628" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-pdx-2c-a264e6fe.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP; 26 Oct 2021 04:04:05 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-a264e6fe.us-west-2.amazon.com (Postfix) with ESMTPS id 54AD5429C3; Tue, 26 Oct 2021 04:04:04 +0000 (UTC) Received: from EX13D02UWB002.ant.amazon.com (10.43.161.160) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.24; Tue, 26 Oct 2021 04:04:03 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13D02UWB002.ant.amazon.com (10.43.161.160) with Microsoft SMTP Server (TLS) id 15.0.1497.24; Tue, 26 Oct 2021 04:04:03 +0000 Received: from EX13D01UWB002.ant.amazon.com ([10.43.161.136]) by EX13d01UWB002.ant.amazon.com ([10.43.161.136]) with mapi id 15.00.1497.024; Tue, 26 Oct 2021 04:04:03 +0000 From: "Pop, Sebastian" To: Christoph Berg , PostgreSQL in Debian CC: "Saidi, Ali" Subject: Re: [PATCH] audo-detect and use -moutline-atomics compilation flag for aarch64 Thread-Topic: [PATCH] audo-detect and use -moutline-atomics compilation flag for aarch64 Thread-Index: AQHXx32DaMnwG7BEBkCMiUUHc3YgaQ== Date: Tue, 26 Oct 2021 04:04:03 +0000 Message-ID: <1635221042457.21654@amazon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.160.7] Content-Type: multipart/alternative; boundary="_000_163522104245721654amazoncom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_163522104245721654amazoncom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ?Hi Christoph, This is a follow-up email based on recommendations from Heikki Linnakangas: https://www.postgresql.org/message-id/5f048a5a-c471-50ae-30ad-385dcafc616b%= 40iki.fi and Tom Lane: https://www.postgresql.org/message-id/888692.1601489331%40sss.pgh.pa.us > Maybe you should speak to the distribution vendors or the folk packaging = PostgreSQL for those distributions, instead. Following the initial post by Tsahi Zidenberg: https://www.postgresql.org/message-id/099F69EE-51D3-4214-934A-1F28C0A1A7A7%= 40amazon.com > The patch was tested to improve pgbench simple-update by 10% and sysbench= write-only by 3% on a 64-core armv8.2 machine (AWS m6g.16xlarge). ? ?The change is to compile PostgreSQL for arm64 with an extra flag -moutline= -atomics when the compiler is gcc-8.5 or gcc-9.4. -moutline-atomics is enabled by default in all newer compilers gcc-{10, 11,= trunk}, and on clang-{12, 13, trunk}. The change is needed only for a limited number of Debian and Ubuntu release= s compiled by gcc versions with the outline-atomics flag disabled by defaul= t. Would it be possible to update the PostgreSQL arm64 apt packages for Debian= and Ubuntu with the -moutline-atomics flag? Thanks, Sebastian --_000_163522104245721654amazoncom_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

​Hi Christoph,


This is a follow-up email based on recommendations from Heikki= Linnakangas:

https://www.postgresql.o= rg/message-id/5f048a5a-c471-50ae-30ad-385dcafc616b%40iki.fi

and Tom Lane:

https://www.postgresql.org/message-id/888692.1601489331%40sss.p= gh.pa.us

Maybe you should speak to the distribution vendors <= span style=3D"font-size: 12pt;">or the folk packaging PostgreSQL for those = distributions, instead.


Following the initial post by Tsahi Zidenberg:

https://www.postgresql.org/message-id/099F69EE-= 51D3-4214-934A-1F28C0A1A7A7%40amazon.com

The patch was tested to improve pgbench simple-update by 10% and= sysbench write-only by 3% on a 64-core armv8.2 machine (AWS m6g.16xlarge).=


​The change is to compile&nb= sp;PostgreSQL for arm64 with an extra flag -moutline-atomics when= the compiler is gcc-8.5 or gcc-9.4.

-moutline-atomics is enabled by de= fault in all newer compilers gcc-{10, 11, trunk}, and on&nbs= p;clang-{12, 13, trunk}.

The change is needed only for= a limited number of Debian and Ubuntu releases compiled by = gcc versions with the outline-atomics flag disabled by default.=


Would it be possible to update the PostgreSQL arm64 apt packages = for Debian and Ubuntu with the -moutline-atomics flag?

Thanks,
Sebastian
--_000_163522104245721654amazoncom_--