pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas@vondra.me>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Andy Fan <zhihuifan1213@163.com>
Cc: John Naylor <johncnaylorls@gmail.com>
Cc: Devulapalli, Raghuveer <raghuveer.devulapalli@intel.com>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Cc: Shankaran, Akash <akash.shankaran@intel.com>
Subject: Re: Improve CRC32C performance on SSE4.2
Date: Sat, 14 Jun 2025 16:01:38 +0200
Message-ID: <7afd7dc1-4eb1-46ee-bcea-df1dcfd2ed6d@vondra.me> (raw)
In-Reply-To: <aE1_knL40G9Wq_zp@nathan>
References: <CANWCAZYEdQJ23UpdfjJqD8S2cecqirQCi3dw1o5PWUz+XYD7fA@mail.gmail.com>
	<CANWCAZYV1+zBG1PT_oLgE=uJLbHHC8YWxrA4JOq+Kv5BfFMuGw@mail.gmail.com>
	<PH8PR11MB8286A559BF96E8A7068DB56FFBA62@PH8PR11MB8286.namprd11.prod.outlook.com>
	<CANWCAZZ_+65KW3qUks2y15142zLYLfx0JK-wWWCJziDkR971Eg@mail.gmail.com>
	<Z-wTcyia0z7i2Qnb@nathan>
	<CANWCAZYsfyjcrjhL--zMTV4ERiR3rDGiVZHs_-0y9enc38qtsw@mail.gmail.com>
	<Z_BZ_Xxdu9E2r8SH@nathan>
	<CANWCAZa_iAhjd-6TVY5NfDzyoSJxFgsMrPW0YwKuTMF7a75D9g@mail.gmail.com>
	<87o6uqd3iv.fsf@163.com>
	<e98f1e23-b05b-43e4-a3a1-0967df12ada4@vondra.me>
	<aE1_knL40G9Wq_zp@nathan>



On 6/14/25 15:56, Nathan Bossart wrote:
> On Sat, Jun 14, 2025 at 03:47:33PM +0200, Tomas Vondra wrote:
>> I suggest you try with a newer gcc, perhaps 13.4. There's been a bunch
>> of fixes related to AVX512 since 13.0, chances are this was already
>> fixed. I don't see this failure on 14.3.1.
> 
> From the config.log, it looks like Andy is using clang:
> 
> 	configure:3998: clang --version >&5
> 	clang version 18.1.6 (https://gitee.com/mirrors/llvm-project.git 1118c2e05e67a36ed8ca250524525cdb66a55256)
> 
> And I see -O0 used, too, which would match the existing report [0],
> although that report is for clang 19.1.7.
> 

Ah, I got confused by this:

-----------------
Found candidate GCC installation:
/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.3.0
Selected GCC installation:
/usr/local/bin/../lib/gcc/x86_64-pc-linux-gnu/13.3.0
-----------------

> I'm also genuinely curious why folks are using -O0...
> 
> [0] https://postgr.es/m/CAE-ML%2B-OV6p9uvCFBcSQjZUEh__y0h-KjN%2BBseyGJHt7u8EP%2Bw%40mail.gmail.com
> 

I personally use -O0 to get better backtraces (without values optimized
out), better valgrind reports, etc.


-- 
Tomas Vondra






view thread (82+ messages)  latest in thread

Message-ID: <7afd7dc1-4eb1-46ee-bcea-df1dcfd2ed6d@vondra.me>
Permalink:  ../7afd7dc1-4eb1-46ee-bcea-df1dcfd2ed6d@vondra.me/
Also on:    postgresql.org/message-id/7afd7dc1-4eb1-46ee-bcea-df1dcfd2ed6d@vondra.me

 · 

reply

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: tomas@vondra.me, nathandbossart@gmail.com, zhihuifan1213@163.com, johncnaylorls@gmail.com, raghuveer.devulapalli@intel.com, akash.shankaran@intel.com
  Subject: Re: Improve CRC32C performance on SSE4.2
  In-Reply-To: <7afd7dc1-4eb1-46ee-bcea-df1dcfd2ed6d@vondra.me>
  References: <CANWCAZYEdQJ23UpdfjJqD8S2cecqirQCi3dw1o5PWUz+XYD7fA@mail.gmail.com> <CANWCAZYV1+zBG1PT_oLgE=uJLbHHC8YWxrA4JOq+Kv5BfFMuGw@mail.gmail.com> <PH8PR11MB8286A559BF96E8A7068DB56FFBA62@PH8PR11MB8286.namprd11.prod.outlook.com> <CANWCAZZ_+65KW3qUks2y15142zLYLfx0JK-wWWCJziDkR971Eg@mail.gmail.com> <Z-wTcyia0z7i2Qnb@nathan> <CANWCAZYsfyjcrjhL--zMTV4ERiR3rDGiVZHs_-0y9enc38qtsw@mail.gmail.com> <Z_BZ_Xxdu9E2r8SH@nathan> <CANWCAZa_iAhjd-6TVY5NfDzyoSJxFgsMrPW0YwKuTMF7a75D9g@mail.gmail.com> <87o6uqd3iv.fsf@163.com> <e98f1e23-b05b-43e4-a3a1-0967df12ada4@vondra.me> <aE1_knL40G9Wq_zp@nathan> <7afd7dc1-4eb1-46ee-bcea-df1dcfd2ed6d@vondra.me>

* 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