pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Help understanding stat tables
3+ messages / 2 participants
[nested] [flat]

* Help understanding stat tables
@ 2004-04-21 15:34 Chris Hoover <revoohc@sermonaudio.com>
  2004-04-21 16:24 ` Re: Help understanding stat tables Chris Hoover <revoohc@sermonaudio.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Chris Hoover @ 2004-04-21 15:34 UTC (permalink / raw)
  To: pgsql-performance

I just want to make sure that I am interpreting this data correctly.

From pg_statio_user_tables, I have pulled relname, heap_blks_read, 
heap_blks_hit.  I get several rows like this:
relname				heap_bkls_read	heap_blks_hit
 clmhdr                       	8607161			196547165																																																																																																																																																																																																																																																										


So this means that I am getting over a 100% cache hit ratio for this table, 
right?  If not, please help me understand what these numbers mean.

Thanks,

Chris




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Help understanding stat tables
  2004-04-21 15:34 Help understanding stat tables Chris Hoover <revoohc@sermonaudio.com>
@ 2004-04-21 16:24 ` Chris Hoover <revoohc@sermonaudio.com>
  2004-04-21 19:04   ` Re: Help understanding stat tables Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Chris Hoover @ 2004-04-21 16:24 UTC (permalink / raw)
  To: pgsql-performance

I think I have figured my problem out.

I was taking heap_blks_hit / heap_blks_read for my hit pct.

It should be heap_blks_hit/(heap_blks_read+heap_blks_hit), correct?

Thanks
On Wednesday 21 April 2004 11:34, Chris Hoover wrote:
> I just want to make sure that I am interpreting this data correctly.
>
> From pg_statio_user_tables, I have pulled relname, heap_blks_read,
> heap_blks_hit.  I get several rows like this:
> relname				heap_bkls_read	heap_blks_hit
>  clmhdr                       	8607161			196547165
>
>
> So this means that I am getting over a 100% cache hit ratio for this table,
> right?  If not, please help me understand what these numbers mean.
>
> Thanks,
>
> Chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Help understanding stat tables
  2004-04-21 15:34 Help understanding stat tables Chris Hoover <revoohc@sermonaudio.com>
  2004-04-21 16:24 ` Re: Help understanding stat tables Chris Hoover <revoohc@sermonaudio.com>
@ 2004-04-21 19:04   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2004-04-21 19:04 UTC (permalink / raw)
  To: Chris Hoover <revoohc@sermonaudio.com>; +Cc: pgsql-performance

"Chris Hoover" <revoohc@sermonaudio.com> writes:
> I was taking heap_blks_hit / heap_blks_read for my hit pct.
> It should be heap_blks_hit/(heap_blks_read+heap_blks_hit), correct?

Right.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-04-21 19:04 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-21 15:34 Help understanding stat tables Chris Hoover <revoohc@sermonaudio.com>
2004-04-21 16:24 ` Chris Hoover <revoohc@sermonaudio.com>
2004-04-21 19:04   ` Tom Lane <tgl@sss.pgh.pa.us>

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