Lists: | pgsql-hackers |
---|
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | [patch] executor and slru dtrace probes |
Date: | 2009-11-13 22:29:41 |
Message-ID: | 1258151381.1316.107.camel@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
I attached patch which was already sent on february/april, but it was
lost in time. It is originally from Robert Lor and Theo Schlossnagle.
It contains two DTrace probe groups. One is related to monitoring SLRU
and second is about executor nodes.
I merged it with the head.
Original end of mail thread is here:
http://archives.postgresql.org/pgsql-hackers/2009-04/msg00148.php
Zdenek
Attachment | Content-Type | Size |
---|---|---|
slru_executor_dtrace.patch | text/x-patch | 14.4 KB |
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>, pgsql-hackers(at)postgresql(dot)org |
Cc: | Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-07 23:27:34 |
Message-ID: | 8360C3391D4570AB06AE8823@amenophis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 13. November 2009 23:29:41 +0100 Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
wrote:
> t contains two DTrace probe groups. One is related to monitoring SLRU
> and second is about executor nodes.
>
> I merged it with the head.
>
> Original end of mail thread is here:
>
> http://archives.postgresql.org/pgsql-hackers/2009-04/msg00148.php
I've started to review this.
It seems to me the attached patch wasn't adjusted or discussed again to
address Tom's complaints? At least the executor probes contained here hold
still the same issues mentioned by Tom in the discussion linked here.
--
Thanks
Bernd
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Bernd Helmle <mailings(at)oopsware(dot)de> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-08 10:10:44 |
Message-ID: | 4B1E2624.7050304@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Dne 8.12.09 00:27, Bernd Helmle napsal(a):
>
>
> --On 13. November 2009 23:29:41 +0100 Zdenek Kotala
> <Zdenek(dot)Kotala(at)Sun(dot)COM> wrote:
>
>> t contains two DTrace probe groups. One is related to monitoring SLRU
>> and second is about executor nodes.
>>
>> I merged it with the head.
>>
>> Original end of mail thread is here:
>>
>> http://archives.postgresql.org/pgsql-hackers/2009-04/msg00148.php
>
> I've started to review this.
>
> It seems to me the attached patch wasn't adjusted or discussed again to
> address Tom's complaints? At least the executor probes contained here
> hold still the same issues mentioned by Tom in the discussion linked here.
I did not make any change. I only revival patch and merge it with head.
I think that SLRU probes are OK and acceptable.
Tom's issues with executor probes are still there and I expect
discussion about them. IIRC Theo uses these probes in production.
If you think that it is better I could split patch into two separate
patches and both can be reviewed separately.
thanks Zdenek
From: | Theo Schlossnagle <jesus(at)omniti(dot)com> |
---|---|
To: | Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com> |
Cc: | Theo Schlossnagle <jesus(at)omniti(dot)com>, Bernd Helmle <mailings(at)oopsware(dot)de>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-10 00:08:07 |
Message-ID: | AD638303-5375-4F02-84F9-5DC938FF37AF@omniti.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Dec 8, 2009, at 5:10 AM, Zdenek Kotala wrote:
> Dne 8.12.09 00:27, Bernd Helmle napsal(a):
>> --On 13. November 2009 23:29:41 +0100 Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> wrote:
>>> t contains two DTrace probe groups. One is related to monitoring SLRU
>>> and second is about executor nodes.
>>>
>>> I merged it with the head.
>>>
>>> Original end of mail thread is here:
>>>
>>> http://archives.postgresql.org/pgsql-hackers/2009-04/msg00148.php
>> I've started to review this.
>> It seems to me the attached patch wasn't adjusted or discussed again to address Tom's complaints? At least the executor probes contained here hold still the same issues mentioned by Tom in the discussion linked here.
>
> I did not make any change. I only revival patch and merge it with head. I think that SLRU probes are OK and acceptable.
>
> Tom's issues with executor probes are still there and I expect discussion about them. IIRC Theo uses these probes in production.
>
> If you think that it is better I could split patch into two separate patches and both can be reviewed separately.
I suppose I see it as a simple thing. The probes have no performance impact when they are not instrumented. I've used them on rare occasion to understand which exec nodes are causing which disk accesses. Seemed pretty darn useful at the time. There is (of course) some performance overhead when they are enabled, but that is intentionally performed by the operator, so it seems like a non-issue.
Now, there was some indication that there was a better place to probe that would be more comprehensive -- that should be addressed.
--
Theo Schlossnagle
Esoteric Curio -- http://lethargy.org/
OmniTI Computer Consulting, Inc. -- http://omniti.com/
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-10 14:51:34 |
Message-ID: | DB9C861CF7F06DCBD87F5CA8@amenophis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 8. Dezember 2009 11:10:44 +0100 Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
wrote:
> If you think that it is better I could split patch into two separate
> patches and both can be reviewed separately.
I split up this patch into two separate patches: one for SLRU and one for
the executor probes. I've done some documentation on the SLRU part, maybe
you can look over it (to make sure i didn't break anything).
I left the executor probes out of the documentation for now, since it seems
not to be clear how they would manifest.
Out of curiosity: Why do we want to pass the SlruCtl pointer down to the
probes? I don't understand what those probes are going to do with those
pointers, can you explain?
--
Thanks
Bernd
Attachment | Content-Type | Size |
---|---|---|
dtrace_executor_probes.patch | application/text | 9.4 KB |
dtrace_slru_probes.patch | application/octet-stream | 10.5 KB |
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Bernd Helmle <mailings(at)oopsware(dot)de> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-10 15:49:50 |
Message-ID: | 4B21189E.1000102@sun.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Dne 10.12.09 15:51, Bernd Helmle napsal(a):
>
>
> --On 8. Dezember 2009 11:10:44 +0100 Zdenek Kotala
> <Zdenek(dot)Kotala(at)Sun(dot)COM> wrote:
>
>> If you think that it is better I could split patch into two separate
>> patches and both can be reviewed separately.
>
> I split up this patch into two separate patches: one for SLRU and one
> for the executor probes. I've done some documentation on the SLRU part,
> maybe you can look over it (to make sure i didn't break anything).
>
> I left the executor probes out of the documentation for now, since it
> seems not to be clear how they would manifest.
>
> Out of curiosity: Why do we want to pass the SlruCtl pointer down to the
> probes? I don't understand what those probes are going to do with those
> pointers, can you explain?
>
You need to determine which SLRU is used. Because SLRUs are initialized
during startup pointer should be same in all backends. If I think
more about it. Maybe it could be goot to add probe also into
SimpleLruInit to catch name of SLRUs.
Zdenek
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Theo Schlossnagle <jesus(at)omniti(dot)com>, Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com> |
Cc: | Theo Schlossnagle <jesus(at)omniti(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-10 16:15:44 |
Message-ID: | C7F827BB7DEA866DC7E08CD0@amenophis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 9. Dezember 2009 19:08:07 -0500 Theo Schlossnagle <jesus(at)omniti(dot)com>
wrote:
> Now, there was some indication that there was a better place to probe
> that would be more comprehensive -- that should be addressed.
For now there exists no consensus where they should go in. Tom pointed out
various issues with ExecProcNode() and he's worried about the performance
penalty those probes might introduce. I admit I'm not very experienced with
dtrace, but maybe some worries exists because an expensive instrumented
executor probe can cause forged results?
--
Thanks
Bernd
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
Cc: | pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-14 12:19:27 |
Message-ID: | EDB948AE3DA8D77946E9A333@[172.26.14.62] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 10. Dezember 2009 16:49:50 +0100 Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
wrote:
> You need to determine which SLRU is used. Because SLRUs are initialized
> during startup pointer should be same in all backends. If I think more
> about it. Maybe it could be goot to add probe also into SimpleLruInit to
> catch name of SLRUs.
Hi Zdenek,
do you plan to work on this further? I was about to mark the SLRU probes as
ready for committer...
--
Thanks
Bernd
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Bernd Helmle <mailings(at)oopsware(dot)de> |
Cc: | Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)sun(dot)com, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-14 12:49:34 |
Message-ID: | 603c8f070912140449o23892042kc94a31cff6f67fa5@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Dec 14, 2009 at 7:19 AM, Bernd Helmle <mailings(at)oopsware(dot)de> wrote:
> --On 10. Dezember 2009 16:49:50 +0100 Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
> wrote:
>
>> You need to determine which SLRU is used. Because SLRUs are initialized
>> during startup pointer should be same in all backends. If I think more
>> about it. Maybe it could be goot to add probe also into SimpleLruInit to
>> catch name of SLRUs.
>
> Hi Zdenek,
>
> do you plan to work on this further? I was about to mark the SLRU probes as
> ready for committer...
Since the author has pretty much admitted he didn't fix any of the
issues that were raised by the last committer review, I'm a little
confused about why you're asking for another one.
...Robert
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)sun(dot)com, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-14 19:33:12 |
Message-ID: | B89068FB90F6EAFF644062F8@amenophis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 14. Dezember 2009 07:49:34 -0500 Robert Haas <robertmhaas(at)gmail(dot)com>
wrote:
> Since the author has pretty much admitted he didn't fix any of the
> issues that were raised by the last committer review, I'm a little
> confused about why you're asking for another one.
It wasn't clear to me what Zdenek meant with "If I think about it".
--
Thanks
Bernd
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Bernd Helmle <mailings(at)oopsware(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)sun(dot)com, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-14 19:42:56 |
Message-ID: | ED7DF3792702AF8F4A0C6842@amenophis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 14. Dezember 2009 20:33:12 +0100 Bernd Helmle <mailings(at)oopsware(dot)de>
wrote:
>> Since the author has pretty much admitted he didn't fix any of the
>> issues that were raised by the last committer review, I'm a little
>> confused about why you're asking for another one.
>
> It wasn't clear to me what Zdenek meant with "If I think about it".
Oh, and i was under the opinion the last discussions were about executor
probes only (note the patch is split up into two parts now, SLRU and
executor probes). The latter won't be fixed, but it seems the SLRU part at
least is ready.
--
Thanks
Bernd
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Bernd Helmle <mailings(at)oopsware(dot)de> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-14 20:01:47 |
Message-ID: | 1260820907.11463.6.camel@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Bernd Helmle píše v po 14. 12. 2009 v 20:42 +0100:
>
> --On 14. Dezember 2009 20:33:12 +0100 Bernd Helmle <mailings(at)oopsware(dot)de>
> wrote:
>
> >> Since the author has pretty much admitted he didn't fix any of the
> >> issues that were raised by the last committer review, I'm a little
> >> confused about why you're asking for another one.
> >
> > It wasn't clear to me what Zdenek meant with "If I think about it".
>
> Oh, and i was under the opinion the last discussions were about executor
> probes only (note the patch is split up into two parts now, SLRU and
> executor probes). The latter won't be fixed, but it seems the SLRU part at
> least is ready.
>
I would like to add SimpleLruInit probe. I'm busy with PG packaging,
but I hope that I will send updated version tomorrow.
Zdenek
From: | Greg Smith <greg(at)2ndquadrant(dot)com> |
---|---|
To: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
Cc: | Bernd Helmle <mailings(at)oopsware(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-15 17:10:09 |
Message-ID: | 4B27C2F1.9020603@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Zdenek Kotala wrote:
> Bernd Helmle píše v po 14. 12. 2009 v 20:42 +0100:
>
>> Oh, and i was under the opinion the last discussions were about executor
>> probes only (note the patch is split up into two parts now, SLRU and
>> executor probes). The latter won't be fixed, but it seems the SLRU part at
>> least is ready.
>>
>
> I would like to add SimpleLruInit probe. I'm busy with PG packaging,
> but I hope that I will send updated version tomorrow.
>
I'd like to see as many of these DTrace probes as possible make it into
8.5, and it's great that you've picked up these older ones and updated
them. It looks like a lot of progress was made on actually measuring
the overhead of adding these probes in even when they're not enabled,
which is good.
But I'm afraid we're already out of time for this one if you're still
tweaking the probes here. With a functional change like that, our
normal process at this point would be to have the reviewer re-evaluate
things before they head to a committer, and I don't feel like this patch
is quite at 100% yet--in particular, the probe documentation is
improving but still a bit rough. I don't feel like we're quite ready to
mark this one for commit for this one, and today we really want to clear
the queue for things for committers to deal with. Please send that
updated version, and let's keep working on this into the next
CommitFest, where it will be in the front of the queue rather than how
it ended up at the tail of this one just based on its submission date.
You're not really getting a fair chunk of time here between your review
and the end here because of problems lining up reviewer time, that
shouldn't happen next time.
--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.com
From: | Bernd Helmle <mailings(at)oopsware(dot)de> |
---|---|
To: | Greg Smith <greg(at)2ndquadrant(dot)com>, Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-15 22:10:36 |
Message-ID: | 90EAEBC221850A39B4AB556D@amenophis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
--On 15. Dezember 2009 12:10:09 -0500 Greg Smith <greg(at)2ndquadrant(dot)com>
wrote:
> But I'm afraid we're already out of time for this one if you're still
> tweaking the probes here. With a functional change like that, our
> normal process at this point would be to have the reviewer re-evaluate
> things before they head to a committer, and I don't feel like this patch
> is quite at 100% yet--in particular, the probe documentation is improving
> but still a bit rough. I don't feel like we're quite ready to mark this
> one for commit for this one, and today we really want to clear the queue
> for things for committers to deal with. Please send that updated
> version, and let's keep working on this into the next CommitFest, where
> it will be in the front of the queue rather than how it ended up at the
> tail of this one just based on its submission date. You're not really
> getting a fair chunk of time here between your review and the end here
> because of problems lining up reviewer time, that shouldn't happen next
> time.
That seems reasonable.
I hope i could contribute something, even this was the first time i got my
hands on reviewing this DTrace thingie.
--
Thanks
Bernd
From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Greg Smith <greg(at)2ndquadrant(dot)com> |
Cc: | Bernd Helmle <mailings(at)oopsware(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org, Robert(dot)Lor(at)Sun(dot)COM, jesus(at)omniti(dot)com |
Subject: | Re: [patch] executor and slru dtrace probes |
Date: | 2009-12-23 14:37:21 |
Message-ID: | 1261579041.1440.19.camel@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Greg Smith píše v út 15. 12. 2009 v 12:10 -0500:
> Please send that updated version, and let's keep working on this into
> the next CommitFest, where it will be in the front of the queue rather
> than how it ended up at the tail of this one just based on its
> submission date. You're not really getting a fair chunk of time here
> between your review and the end here because of problems lining up
> reviewer time, that shouldn't happen next time.
Make sense.
Zdenek