From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Stark <stark(at)enterprisedb(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Broken stuff in new dtrace probes |
Date: | 2009-03-22 22:42:11 |
Message-ID: | 18631.1237761731@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Greg Stark <stark(at)enterprisedb(dot)com> writes:
> On Wed, Mar 11, 2009 at 11:50 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Furthermore, an isExtend call doesn't actually do a read(), so lumping
>> them together with regular reads doesn't seem like quite the right thing
>> for performance measurement purposes anyway. Maybe we actually ought to
>> have different probes for isExtend and regular cases.
> i like the idea of just have a separate pair of probes for table
> extension. I bet there are people who would actually like to see that
> alone sometimes too.
After further thought I concluded that the best solution for this is to
add the isExtend flag to the buffer_read_start/read_done probe parameter
lists. This allows the dtrace script writer to make the distinction if
he chooses, without adding any extra overhead for normal non-traced
operation. AFAICS using a separate probe type would add at least a
couple of if-tests even with tracing turned off.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-03-22 23:40:32 | The BUFFER_HIT and BUFFER_MISS probes seem pretty darn redundant |
Previous Message | Guillaume Smet | 2009-03-22 22:15:30 | Re: contrib function naming, and upgrade issues |