pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Geier <geidav.pg@gmail.com>
To: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: vignesh C <vignesh21@gmail.com>
Cc: Lukas Fittl <lukas@fittl.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Ibrar Ahmed <ibrar.ahmad@gmail.com>
Cc: Maciek Sakrejda <m.sakrejda@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?
Date: Thu, 19 Jan 2023 11:47:49 +0100
Message-ID: <50c9f291-fc60-1d2e-e286-0fb888586e7e@gmail.com> (raw)
In-Reply-To: <20230117164758.gx4uuzhk5grw7zea@awork3.anarazel.de>
References: <Y0Z75kh0WNcb5u3j@paquier.xyz>
	<d7f94549-9179-b63c-878a-002a7cb586a6@gmail.com>
	<d6e84dc8-75d1-4c3b-4b32-c4fcb7852275@gmail.com>
	<3eaeaa3a-b78e-ef0d-7319-5d713bbc09a0@gmail.com>
	<CAP53PkwtWtY-hkSwV7E6g_n657RnFcK0asSp0foSk5Qz_CCJXQ@mail.gmail.com>
	<cc72a411-aa07-834c-85c0-489a5924f8bc@gmail.com>
	<CALDaNm080KHmRHo8OPcAEj+vNzXejwHgmddji5hkAdCwNsuqKA@mail.gmail.com>
	<b201ac3c-1bff-2414-be8e-fc287f78be1a@gmail.com>
	<20230113195547.k4nlrmawpijqwlsa@awork3.anarazel.de>
	<CA+TgmoYOvh=k-H9m21Lh-SWbn7TNurm3JoOVxW+kOO=Gn1_8Xw@mail.gmail.com>
	<20230117164758.gx4uuzhk5grw7zea@awork3.anarazel.de>

Hi Andres,

> I also couldn't help and hacked a bit on the rdtsc pieces. I did figure out
> how to do the cycles->nanosecond conversion with integer shift and multiply in
> the common case, which does show a noticable speedup. But that's for another
> day.
I also have code for that here. I decided against integrating it because 
we don't convert frequently enough to make it matter. Or am I missing 
something?
> I fought a bit with myself about whether to send those patches in this thread,
> because it'll take over the CF entry. But decided that it's ok, given that
> David's patches should be rebased over these anyway?
That's alright.
Though, I would hope we attempt to bring your patch set as well as the 
RDTSC patch set in.

-- 
David Geier
(ServiceNow)






view thread (172+ messages)  latest in thread

Message-ID: <50c9f291-fc60-1d2e-e286-0fb888586e7e@gmail.com>
Permalink:  ../50c9f291-fc60-1d2e-e286-0fb888586e7e@gmail.com/
Also on:    postgresql.org/message-id/50c9f291-fc60-1d2e-e286-0fb888586e7e@gmail.com

 · 

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: geidav.pg@gmail.com, andres@anarazel.de, robertmhaas@gmail.com, vignesh21@gmail.com, lukas@fittl.com, michael@paquier.xyz, ibrar.ahmad@gmail.com, m.sakrejda@gmail.com
  Subject: Re: Reduce timing overhead of EXPLAIN ANALYZE using rdtsc?
  In-Reply-To: <50c9f291-fc60-1d2e-e286-0fb888586e7e@gmail.com>
  References: <Y0Z75kh0WNcb5u3j@paquier.xyz> <d7f94549-9179-b63c-878a-002a7cb586a6@gmail.com> <d6e84dc8-75d1-4c3b-4b32-c4fcb7852275@gmail.com> <3eaeaa3a-b78e-ef0d-7319-5d713bbc09a0@gmail.com> <CAP53PkwtWtY-hkSwV7E6g_n657RnFcK0asSp0foSk5Qz_CCJXQ@mail.gmail.com> <cc72a411-aa07-834c-85c0-489a5924f8bc@gmail.com> <CALDaNm080KHmRHo8OPcAEj+vNzXejwHgmddji5hkAdCwNsuqKA@mail.gmail.com> <b201ac3c-1bff-2414-be8e-fc287f78be1a@gmail.com> <20230113195547.k4nlrmawpijqwlsa@awork3.anarazel.de> <CA+TgmoYOvh=k-H9m21Lh-SWbn7TNurm3JoOVxW+kOO=Gn1_8Xw@mail.gmail.com> <20230117164758.gx4uuzhk5grw7zea@awork3.anarazel.de> <50c9f291-fc60-1d2e-e286-0fb888586e7e@gmail.com>

* 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