Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?

From: Lukas Fittl <lukas(at)fittl(dot)com>
To: John Naylor <johncnaylorls(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>, Hannu Krosing <hannuk(at)google(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Ibrar Ahmed <ibrar(dot)ahmad(at)gmail(dot)com>, Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, David Geier <geidav(dot)pg(at)gmail(dot)com>
Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?
Date: 2026-03-26 01:17:44
Message-ID: CAP53Pkyxv3-3gX+aOxC5tX0p2v9RHU+XH0iyvb64+ZnBXj92vg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi John,

On Tue, Mar 24, 2026 at 10:39 PM John Naylor <johncnaylorls(at)gmail(dot)com> wrote:
> Okay, pushed that way. I also took the liberty of moving a couple
> comment changes in 0005 to here. My hope is that will reduce merge
> conflicts with the AVX checksums patch, since that one also
> invalidates one of those comments and it's not clear which will be
> committed first.

Great, thank you!

Attached rebased v14 - no changes otherwise.

Thanks,
Lukas

--
Lukas Fittl

Attachment Content-Type Size
v14-0005-pg_test_timing-Also-test-RDTSC-RDTSCP-timing-and.patch application/octet-stream 6.2 KB
v14-0004-instrumentation-Use-Time-Stamp-Counter-TSC-on-x8.patch application/octet-stream 38.2 KB
v14-0002-pg_test_timing-Reduce-per-loop-overhead.patch application/octet-stream 3.7 KB
v14-0001-Check-for-HAVE__CPUIDEX-and-HAVE__GET_CPUID_COUN.patch application/octet-stream 6.2 KB
v14-0003-instrumentation-Streamline-ticks-to-nanosecond-c.patch application/octet-stream 13.1 KB
v14-0006-instrumentation-ARM-support-for-fast-time-measur.patch application/octet-stream 8.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Yugo Nagata 2026-03-26 01:18:39 Re: Track skipped tables during autovacuum and autoanalyze
Previous Message Masahiko Sawada 2026-03-26 01:09:22 Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions