Re: [PATCH] audo-detect and use -moutline-atomics compilation flag for aarch64

Поиск
Список
Период
Сортировка
От Pop, Sebastian
Тема Re: [PATCH] audo-detect and use -moutline-atomics compilation flag for aarch64
Дата
Msg-id 1635221042457.21654@amazon.com
обсуждение исходный текст
Ответы Re: [PATCH] audo-detect and use -moutline-atomics compilation flag for aarch64  (Christoph Berg <myon@debian.org>)
Список pgsql-pkg-debian

​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 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

В списке pgsql-pkg-debian по дате отправления:

Предыдущее
От: apt.postgresql.org Repository Update
Дата:
Сообщение: pg-fact-loader updated to version 1.6.0-5.pgdg+1
Следующее
От: Christoph Berg
Дата:
Сообщение: Re: [PATCH] audo-detect and use -moutline-atomics compilation flag for aarch64