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-04-04 18:59:41
Message-ID: CAP53Pkwtem4tx4_6HD_3cNHcD3H50GqqKD=Fr0TY3rWF9WOpKg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Apr 4, 2026 at 2:21 AM Lukas Fittl <lukas(at)fittl(dot)com> wrote:
> See attached v17.

This needed a rebase after 5e13b0f240397b2, see attached v18.

Looking at the changes in that commit, I also ended up re-ordering the
feature flags in pg_cpu.h, so we have the 128/256/512 bit registers
first, and then hypervisor and TSC flags after the 512 bit registers.

No other changes.

Thanks,
Lukas

--
Lukas Fittl

Attachment Content-Type Size
v18-0003-instrumentation-Use-Time-Stamp-Counter-TSC-on-x8.patch application/octet-stream 30.8 KB
v18-0002-Allow-retrieving-x86-TSC-frequency-flags-from-CP.patch application/octet-stream 6.6 KB
v18-0001-instrumentation-Streamline-ticks-to-nanosecond-c.patch application/octet-stream 16.4 KB
v18-0005-instrumentation-ARM-support-for-fast-time-measur.patch application/octet-stream 8.4 KB
v18-0004-pg_test_timing-Also-test-RDTSC-RDTSCP-timing-and.patch application/octet-stream 7.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2026-04-04 19:10:02 Re: Add pg_stat_autovacuum_priority
Previous Message Robert Haas 2026-04-04 18:42:19 Re: pg_plan_advice