[MDEV-107] Provide statistics counters for MRR Created: 2012-01-23  Updated: 2012-02-24  Resolved: 2012-02-24

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: 5.3.5

Type: Task Priority: Major
Reporter: Sergei Petrunia Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: None


 Description   

We need statistics counters for MRR. In particular, we need

  • How many MRR scans were performed
  • How many key/rowid re-sort operations were made (Need separate counters for key and rowid ops).

The first attempt at counters was:

However, the names/semantics were deemed too complicated. Now, we need to come up with simpler definitions.

== Proposal#1 ==

  • Handler_mrr_init - stays the same, counts rowid-ordered scans, key-ordered scans, and key-ordered rowid-ordered scans
  • Handler_mrr_rowid_ordered_passes - counts number of { sort rowids; do a rowid-ordered read sweep; }

    passes

  • Handler_mrr_key_ordered_passes - counts number of { sort keys; do a key-ordered read sweep; }

    passes

== Proposal#2 ==
Same as above but break Handler_mrr_init into three:

  • Handler_mrr_key_ordered
  • Handler_mrr_rowid_ordered
  • Handler_mrr_key_rowid_ordered

== Decision ==

On the last optimizer call, we've decided to go with these counters:

Handler_mrr_init
Handler_mrr_key_refills
Handler_mrr_rowid_refills

and the first fill is not counted as a "refill".



 Comments   
Comment by Sergei Petrunia [ 2012-01-27 ]

This is now coded, pushed, and documented.

Comment by Sergei Petrunia [ 2012-01-31 ]

Counters, as they are added, are inappropriate (Igor's feedback). We'll need to fix them.

Comment by Sergei Petrunia [ 2012-01-31 ]

current counters:

  • Handler_mrr_init - counts how many MRR scans were performed
  • Handler_mrr_extra_rowid_sorts - counts rowid sort operations done in MRR scans, except the first scan in each operation
  • Handler_mrr_extra_key_sorts - counts key sort operations done in MRR scans, except the first scan in each operation
Comment by Sergei Petrunia [ 2012-02-22 ]

Push the patch with the new names.

Comment by Sergei Petrunia [ 2012-02-24 ]

New counters were pushed.

Generated at Thu Feb 08 06:26:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.