Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Review: DTr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 42 Topic 9629 of 11009
Post > Topic >>

Re: Review: DTrace probes (merged version) ver_03

by jesus@[EMAIL PROTECTED] (Theo Schlossnagle) Jul 24, 2008 at 12:15 PM

On Jul 24, 2008, at 11:11 AM, Zdenek Kotala wrote:

> I performed review and I prepared own patch which contains only  
> probes without any issue. I suggest commit this patch because the  
> rest of patch is independent and it can be committed next commit  
> fest after rework.
>
> I found following issues:
>
> 1) SLRU probes.
>
> I think it is good to have probes there but they needs polish. See  
> my comments
> http://reviewdemo.postgresql.org/r/25/

The slru's are quite useful and general enough to use easily.  I used  
them to verify the metered checkpointing stuff:

http://lethargy.org/~jesus/archives/112-Probing-for-Success.html

> 2) XLOG probes
>
> I think there is confuse placement of probes after merge. It needs  
> cleanup.
>
>
> 3) Executor probes
>
> I would like to see any use case for them/

I added them with two thoughts (and knowing that they cost nothing).
(1) you can trace them to assist in debugging an explain plan and to  
better understand the flow of the execution engine.  This is not a  
compelling reason, but a reason none-the-less.
(2) you can trace and existing long-running query for which you do not  
have the original plan (may have changed) and make an educated guess  
at the plan chosen at time of execution.

> 4) smgr probes
>
> I prefer to have this probes in smgr instead of md. The reason why  
> Robert put them into md is that it returns number of written/read  
> bytes, but it is "always" BLCKSZ which could be returned from smgr  
> directly. Only difference is
> when error occurs during write/read and not all data are written/read.
>
> It needs discuss.
>
> 5) autovacuum start probes
>
> I would like to see also stat/stop for any other process types. It  
> was discussed but no comment from author(s).
>
> 6) idle transaction
>
> See my comments
> http://reviewdemo.postgresql.org/r/25/
>
> 7) query-reewrite is missing
>
>
> 8) mark dirty and BM_HINT... flag
>
> I remove these because I don't see any use case for it. It would be  
> nice provide some dtrace script or describe basic ideas.


Perhaps I misunderstood what mark dirty does, but here was my thinking:

Because of the background writer, it is difficult to understand which  
postgres process (and thus query) induced disk writes.  Marking a page  
as dirty is a good indication that a query will be causing I/O and you  
can measure calls to mark dirty per query as a telling metric.

Perhaps I misunderstood, but I have a very serious problem that I  
can't reliably track write I/O to postgresql process ID as the  
bgwriter and the kernel are flu****ng those dirty blocks to disk while  
the process isn't running.  In my (albeit naive) tests, the mark dirty  
gave me quite expected results for correlating query execution to disk  
I/O to be induced.

--
Theo Schlossnagle
Esoteric Curio -- http://lethargy.org/
OmniTI Computer Consulting, Inc. -- http://omniti.com/


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 42 Posts in Topic:
Review: DTrace probes (merged version)
Zdenek.Kotala@[EMAIL PROT  2008-07-04 16:38:06 
Re: Review: DTrace probes (merged version)
alvherre@[EMAIL PROTECTED  2008-07-04 11:05:40 
Re: Review: DTrace probes (merged version)
tgl@[EMAIL PROTECTED] (T  2008-07-04 12:22:08 
Re: Review: DTrace probes (merged version)
Zdenek.Kotala@[EMAIL PROT  2008-07-04 19:19:40 
Re: Review: DTrace probes (merged version)
alvherre@[EMAIL PROTECTED  2008-07-04 13:30:35 
Re: Review: DTrace probes (merged version)
Zdenek.Kotala@[EMAIL PROT  2008-07-04 19:26:52 
Re: Review: DTrace probes (merged version)
alvherre@[EMAIL PROTECTED  2008-07-04 13:33:05 
Re: Review: DTrace probes (merged version)
Zdenek.Kotala@[EMAIL PROT  2008-07-04 19:42:12 
Re: Review: DTrace probes (merged version)
Zdenek.Kotala@[EMAIL PROT  2008-07-04 19:50:18 
Re: Review: DTrace probes (merged version)
Robert.Lor@[EMAIL PROTECT  2008-07-21 14:47:24 
Re: Review: DTrace probes (merged version)
peter_e@[EMAIL PROTECTED]  2008-07-23 19:02:12 
Re: Review: DTrace probes (merged version)
Zdenek.Kotala@[EMAIL PROT  2008-07-23 20:55:57 
Re: Review: DTrace probes (merged version) ver_03
Zdenek.Kotala@[EMAIL PROT  2008-07-24 17:11:46 
Re: Review: DTrace probes (merged version) ver_03
jesus@[EMAIL PROTECTED]   2008-07-24 12:15:26 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-07-25 22:36:43 
Re: Review: DTrace probes (merged version) ver_03
tgl@[EMAIL PROTECTED] (T  2008-07-26 19:09:45 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-08-01 15:42:23 
Re: Review: DTrace probes (merged version) ver_03
gsmith@[EMAIL PROTECTED]   2008-08-02 16:00:51 
Re: Review: DTrace probes (merged version) ver_03
Zdenek.Kotala@[EMAIL PROT  2008-07-25 09:45:20 
Re: Review: DTrace probes (merged version) ver_03
Zdenek.Kotala@[EMAIL PROT  2008-07-28 12:27:43 
Re: Review: DTrace probes (merged version) ver_03
Zdenek.Kotala@[EMAIL PROT  2008-07-28 13:32:54 
Re: Review: DTrace probes (merged version) ver_03
tgl@[EMAIL PROTECTED] (T  2008-07-28 10:16:21 
Re: Review: DTrace probes (merged version) ver_03
Zdenek.Kotala@[EMAIL PROT  2008-07-28 16:13:11 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-28 18:17:56 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-28 18:39:19 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-28 18:54:14 
Re: Review: DTrace probes (merged version) ver_03
tgl@[EMAIL PROTECTED] (T  2008-07-28 20:06:57 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-29 00:23:41 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-29 23:34:54 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-07-31 14:20:37 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-07-31 17:08:41 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-31 15:21:26 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-07-31 16:43:30 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-07-31 18:19:29 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-31 23:08:56 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-08-01 09:19:47 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-08-01 09:31:43 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-07-31 23:22:33 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-08-01 09:27:55 
Re: Review: DTrace probes (merged version) ver_03
Robert.Lor@[EMAIL PROTECT  2008-08-01 09:44:45 
Re: Review: DTrace probes (merged version) ver_03
gsmith@[EMAIL PROTECTED]   2008-08-01 15:18:01 
Re: Review: DTrace probes (merged version) ver_03
alvherre@[EMAIL PROTECTED  2008-08-01 16:01:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 8:00:14 CST 2008.