Merge lp:~hrvojem/percona-server/bug1056603-5.5 into lp:percona-server/5.5

Proposed by Hrvoje Matijakovic
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 360
Proposed branch: lp:~hrvojem/percona-server/bug1056603-5.5
Merge into: lp:percona-server/5.5
Diff against target: 584 lines (+299/-115)
7 files modified
doc/source/diagnostics/innodb_stats.rst (+93/-16)
doc/source/diagnostics/misc_info_schema_tables.rst (+123/-45)
doc/source/diagnostics/response_time_distribution.rst (+5/-14)
doc/source/diagnostics/user_stats.rst (+25/-23)
doc/source/index.rst (+1/-1)
doc/source/index_info_schema_tables.rst (+42/-14)
doc/source/management/innodb_lru_dump_restore.rst (+10/-2)
To merge this branch: bzr merge lp:~hrvojem/percona-server/bug1056603-5.5
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+134998@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Same comments as in the 5.1 MP plus:

- new docs for INNODB_BUFFER_POOL_PAGES, INNODB_BUFFER_POOL_PAGES_INDEX
  and INNODB_BUFFER_POOL_PAGES_BLOB. I wonder if they deserve a separate
  section, like there are sections for "InnoDB Undo Logs", "Temporary
  Tables", etc.?

- s/These tables show the buffer pool data structure/The following
  tables provide various information about the contents of the InnoDB
  buffer pool/

- s/Possible values,/Possible values:/

- SPACE_ID is the tablespace ID, rather than the table ID

- PAGE_NO is the page offset within its tablespace

- LRU_POSITION is the page position in the LRU list

- FIX_COUNT is the reference count of a page. It is incremented every
  time the page is accessed by InnoDB, and is 0 if and only if the page
  is not currently being accessed

- ACCESS_TIME (in INNODB_BUFFER_POOL_PAGES_INDEX) is not a boolean value
  as the description suggests. It is the time of the last access to that
  page.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Hrvoje,

Please use my descriptions of the SPACE_ID, PAGE_NO, LRU_POSITION, FIX_COUNT and ACCESS_TIME fields that I have provided in https://code.launchpad.net/~hrvojem/percona-server/bug1056603-5.5/+merge/134998 for all tables, rather than just for INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES. Just for consistency.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/source/diagnostics/innodb_stats.rst'
--- doc/source/diagnostics/innodb_stats.rst 2012-09-18 05:04:43 +0000
+++ doc/source/diagnostics/innodb_stats.rst 2012-12-10 15:33:26 +0000
@@ -6,8 +6,6 @@
66
7This feature provides new startup options (control method and collection of index statistics estimation) and information schema views to confirm the statistics.7This feature provides new startup options (control method and collection of index statistics estimation) and information schema views to confirm the statistics.
88
9This implements the fix for `MySQL Bug #30423 <http://bugs.mysql.com/bug.php?id=30423>`_.
10
11Version Specific Information9Version Specific Information
12============================10============================
1311
@@ -30,18 +28,16 @@
30 :default: ``nulls_equal``28 :default: ``nulls_equal``
31 :allowed: ``nulls_equal``, ``nulls_unequal``, ``nulls_ignored``29 :allowed: ``nulls_equal``, ``nulls_unequal``, ``nulls_ignored``
3230
33The values and meanings are almost same to ``myisam_stats_method`` option of native |MySQL| (``nulls_equal``, ``nulls_unequal``, ``nulls_ignored``). But |InnoDB| doesn't have several patterns of statistics currently. So, though this option able to be changed dynamically, we need re-calculate statistics to change the method for the table.31The values and meanings are almost same to ``myisam_stats_method`` option of native |MySQL| (``nulls_equal``, ``nulls_unequal``, ``nulls_ignored``). But |InnoDB| doesn't have several patterns of statistics currently. Even though this option can be changed dynamically, statistics needs to be re-calculated to change the method for the table.
3432
35(reference: `MyISAM Index Statistics Collection <http://dev.mysql.com/doc/refman/5.1/en/myisam-index-statistics.html>`_)33(reference: `MyISAM Index Statistics Collection <http://dev.mysql.com/doc/refman/5.5/en/myisam-index-statistics.html>`_)
36
37**Note:** Beginning in release 5.1.56-12.7, a variable with the same and functionality was implemented in the upstream |InnoDB|.
3834
39.. variable:: innodb_stats_auto_update35.. variable:: innodb_stats_auto_update
4036
41 :type: BOOLEAN37 :type: BOOLEAN
42 :default: 138 :default: 1
4339
44|InnoDB| updates the each index statistics automatically (many updates were done, some information_schema is accessed, table monitor, etc.). Setting this option 0 can stop these automatic recalculation of the statistics except for “first open” and “ANALYZE TABLE command”.40|InnoDB| updates the each index statistics automatically (many updates were done, some information_schema is accessed, table monitor, etc.). Setting this option 0 can stop these automatic recalculation of the statistics except for "first open" and "ANALYZE TABLE command".
4541
4642
47.. variable:: innodb_stats_update_need_lock43.. variable:: innodb_stats_update_need_lock
@@ -63,7 +59,90 @@
63INFORMATION_SCHEMA Tables59INFORMATION_SCHEMA Tables
64=========================60=========================
6561
66Two new tables were introduced by this feature.62.. table:: INFORMATION_SCHEMA.INNODB_SYS_STATS
63
64 Shows statistics of table indexes.
65
66 :column INDEX_ID: Index ID
67 :column KEY_COLS: Number of key columns
68 :column DIFF_VALS: Number of Different Values
69 :column NON_NULL_VALS: Number of Non ``NULL`` Values
70
71.. table:: INFORMATION_SCHEMA.INNODB_SYS_TABLES
72
73 Shows the information about |InnoDB| tables
74
75 :column TABLE_ID: Table ID
76 :column SCHEMA: Database (schema) name
77 :column NAME: Table name
78 :column FLAG: Contains `0` if it is a InnoDB system table or `1` it is a user table
79 :column N_COLS: Number of columns in the table
80 :column SPACE: Tablespace ID
81
82.. table:: INFORMATION_SCHEMA.INNODB_SYS_TABLESTATS
83
84 Shows the information about the performance statistics of |InnoDB| tables.
85
86 :column TABLE_ID: Table ID
87 :column SCHEMA: Database (schema) Name
88 :column NAME: Table Name
89 :column STATS_INITIALIZED: Contains ``Initialized`` value if the statistics are collected or ``Uninitialized`` if they are not collected.
90 :column NUM_ROWS: Estimated number of rows in the table.
91 :column CLUST_INDEX_SIZE: Number of pages on disk that store the clustered index.
92 :column OTHER_INDEX_SIZE: Number of pages on disk that store all secondary indexes.
93 :column MODIFIED_COUNTER: Number of rows modified by DML operations.
94 :column AUTOINC:
95 :column MYSQL_HANDLES_OPENED:
96
97.. table:: INFORMATION_SCHEMA.INNODB_SYS_INDEXES
98
99 Shows the information about |InnoDB| indexes
100
101 :column INDEX_ID: Index ID
102 :column NAME: Index Name
103 :column TABLE_ID: Table ID
104 :column TYPE: Numeric identifier signifying the index type
105 :column N_FIELDS: Number of columns in the index
106 :column PAGE_NO: Page offset within its tablespace
107 :column SPACE: Tablespace ID
108
109.. table:: INFORMATION_SCHEMA.INNODB_SYS_COLUMNS
110
111 Shows the information about the |InnoDB| table columns
112
113 :column TABLE_ID: Table ID
114 :column NAME: Column Name
115 :column POS: Position of the column inside the table.
116 :column MTYPE: Numeric identifier for the column type.
117 :column PRTYPE: Binary value with bits representing data type, character set code and nullability.
118 :column LEN: Column length.
119
120.. table:: INFORMATION_SCHEMA.INNODB_SYS_FIELDS
121
122 Shows the information about the |InnoDB| index key fields.
123
124 :column INDEX_ID: Index ID
125 :column NAME: Index Name
126 :column POS: Position of the field inside the index.
127
128.. table:: INFORMATION_SCHEMA.INNODB_SYS_FOREIGN
129
130 Shows the information about the |InnoDB| foreign keys.
131
132 :column ID: Foreign Key ID
133 :column FOR_NAME: Database/Table which contains the Foreign Key
134 :column FOR_REF: Database/Table being referenced by the Foreign Key
135 :column N_COLS: Number of columns in the foreign key.
136 :column TYPE: Type of foreign key, represented by the bit flags.
137
138.. table:: INFORMATION_SCHEMA.INNODB_SYS_FOREIGN_COLS
139
140 Shows the information about the columns of the |InnoDB| foreign keys.
141
142 :column ID: Foreign Key ID
143 :column FOR_COL_NAME: Foreign Key Column Name
144 :column FOR_REF: Referenced Column Name
145 :column POS: Position of the field inside the index.
67146
68.. table:: INFORMATION_SCHEMA.INNODB_TABLE_STATS147.. table:: INFORMATION_SCHEMA.INNODB_TABLE_STATS
69148
@@ -76,7 +155,7 @@
76 :column other_size: Other index (non primary key) size in number of pages.155 :column other_size: Other index (non primary key) size in number of pages.
77 :column modified: Internal counter to judge whether statistics recalculation should be done.156 :column modified: Internal counter to judge whether statistics recalculation should be done.
78157
79If the value of modified column exceeds “rows / 16” or 2000000000, the statistics recalculation is done when ``innodb_stats_auto_update == 1``. We can estimate the oldness of the statistics by this value.158If the value of modified column exceeds "rows / 16" or 2000000000, the statistics recalculation is done when ``innodb_stats_auto_update == 1``. We can estimate the oldness of the statistics by this value.
80159
81.. table:: INFORMATION_SCHEMA.INNODB_INDEX_STATS160.. table:: INFORMATION_SCHEMA.INNODB_INDEX_STATS
82161
@@ -101,9 +180,7 @@
101Example180Example
102=======181=======
103182
104This example uses the same data to Bug #30423 of |MySQL|.183``[innodb_stats_method = nulls_equal (default behavior of InnoDB)]`` ::
105
106``[innodb_stats_method = nulls_equal (default behavior of |InnoDB|)]`` ::
107184
108 mysql> explain SELECT COUNT(*), 0 FROM orgs2 orgs LEFT JOIN sa_opportunities2 sa_opportunities ON orgs.org_id=sa_opportunities.org_id LEFT JOIN contacts2 contacts ON orgs.org_id=contacts.org_id;185 mysql> explain SELECT COUNT(*), 0 FROM orgs2 orgs LEFT JOIN sa_opportunities2 sa_opportunities ON orgs.org_id=sa_opportunities.org_id LEFT JOIN contacts2 contacts ON orgs.org_id=contacts.org_id;
109 +----+-------------+------------------+-------+-----------------+-----------------+---------+-------------------+-------+-------------+186 +----+-------------+------------------+-------+-----------------+-----------------+---------+-------------------+-------+-------------+
@@ -143,15 +220,15 @@
143 | table_name | index_name | fields | row_per_keys | index_size | leaf_pages |220 | table_name | index_name | fields | row_per_keys | index_size | leaf_pages |
144 +------------------------+-----------------+--------+--------------+------------+------------+221 +------------------------+-----------------+--------+--------------+------------+------------+
145 | test/sa_opportunities2 | GEN_CLUST_INDEX | 1 | 1 | 21 | 20 |222 | test/sa_opportunities2 | GEN_CLUST_INDEX | 1 | 1 | 21 | 20 |
146 | test/sa_opportunities2 | sa_opp$org_id | 2 | 338, 1 | 11| 10 |223 | test/sa_opportunities2 | sa_opp$org_id | 2 | 338, 1 | 11| 10 |
147 | test/orgs2 | orgs$org_id | 1 | 1 | 1 | 1 |224 | test/orgs2 | orgs$org_id | 1 | 1 | 1 | 1 |
148 | test/contacts2 | GEN_CLUST_INDEX | 1 | 1 | 97 | 80 |225 | test/contacts2 | GEN_CLUST_INDEX | 1 | 1 | 97 | 80 |
149 | test/contacts2 | contacts$org_id | 2 | 516, 0 | 97 | 37 |226 | test/contacts2 | contacts$org_id | 2 | 516, 0 | 97 | 37 |
150 +------------------------+-----------------+--------+--------------+------------+------------+227 +------------------------+-----------------+--------+--------------+------------+------------+
151 5 rows in set (0.00 sec)228 5 rows in set (0.00 sec)
152229
153Other reading230Other reading
154=============231=============
155232
156 * `InnoDB Table/Index stats <http://www.mysqlperformanceblog.com/2010/03/20/|InnoDB|-tableindex-stats/>`_233 * `InnoDB Table/Index stats <http://www.mysqlperformanceblog.com/2010/03/20/InnoDB-tableindex-stats/>`_
157234
158235
=== modified file 'doc/source/diagnostics/misc_info_schema_tables.rst'
--- doc/source/diagnostics/misc_info_schema_tables.rst 2012-10-19 12:06:24 +0000
+++ doc/source/diagnostics/misc_info_schema_tables.rst 2012-12-10 15:33:26 +0000
@@ -4,54 +4,10 @@
4 Misc. INFORMATION_SCHEMA Tables4 Misc. INFORMATION_SCHEMA Tables
5=================================5=================================
66
7This page lists the ``INFORMATION_SCHEMA`` tables added to standard |MySQL| by |Percona Server| that don't exist elsewhere in the documentation.
8
9|InnoDB| transactions
10=====================
11
12.. table:: INFORMATION_SCHEMA.INNODB_LOCK_WAITS
13
14 :column REQUESTING_TRX_ID:
15 :column REQUESTED_LOCK_ID:
16 :column BLOCKING_TRX_ID:
17 :column BLOCKING_LOCK_ID:
18
19.. table:: INFORMATION_SCHEMA.INNODB_LOCKS
20
21 :column LOCK_ID: Internal unique lock ID
22 :column LOCK_TRX_ID: ID of the transaction holding the lock
23 :column LOCK_MODE: Mode of the lock (shared, exclusive, …)
24 :column LOCK_TYPE: ``RECORD`` for a record lock and ``TABLE`` for a table lock
25 :column LOCK_TABLE: Name of the table holding the lock
26 :column LOCK_INDEX: If lock type is ``RECORD``, name of the index
27 :column LOCK_SPACE: If lock type is ``RECORD``, tablespace id of the locked record
28 :column LOCK_PAGE: If lock type is ``RECORD``, page number of the locked record
29 :column LOCK_REC: If lock type is ``RECORD``, heap number of the locked record
30 :column LOCK_DATA: If lock type is ``RECORD``, primary key of the locked record
31
32This table contains information on each lock that is requested by any transaction and on each lock that is held by any transaction. You can get details about the transactions involved by joining INNODB_LOCKS with INNODB_TRX on TRX_ID.
33
34This table was introduced by the |InnoDB| plugin and you can find the full documentation here.
35
36.. table:: INFORMATION_SCHEMA.INNODB_TRX
37
38 :column TRX_ID: |InnoDB| internal unique transaction id
39 :column TRX_STATE: Execution state. Possible values are: ``Running``, ``Lock_wait``, ``Rolling_back``, ``Committing``
40 :column TRX_STARTED: Transaction start time
41 :column TRX_REQUESTED_LOCK_ID: Id of the lock the transaction has requested
42 :column TRX_WAIT_STARTED: Date and time when the transaction started waiting for a lock
43 :column TRX_WEIGHT: Weight of the transaction, ie approximate number of locked and modified rows
44 :column TRX_MYSQL_THREAD_ID: Thread id
45 :column TRX_QUERY: SQL query being executed
46
47This table holds information on every transaction running in the |InnoDB| kernel. Contrary to the output of SHOW |InnoDB| STATUS, it doesn't show information on idle transactions.
48
49This table was introduced by the |InnoDB| plugin and you can find the full documentation here.
50
51Temporary tables7Temporary tables
52================8================
539
54 Only the temporary tables that were explicitly created with `CREATE TEMPORARY TABLE` or `ALTER TABLE` are shown, and not the ones created to process complex queries.10 Only the temporary tables that were explicitly created with `CREATE TEMPORARY TABLE` or `ALTER TABLE` are shown, and not the ones created to process complex queries.
5511
56.. table:: INFORMATION_SCHEMA.GLOBAL_TEMPORARY_TABLES12.. table:: INFORMATION_SCHEMA.GLOBAL_TEMPORARY_TABLES
5713
@@ -85,6 +41,128 @@
8541
86This table holds information on the temporary tables existing for the running connection.42This table holds information on the temporary tables existing for the running connection.
8743
44Buffer Pool Data Structure Tables
45=================================
46
47The following tables provide various information about the contents of the |InnoDB| buffer pool.
48
49.. table:: INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES
50
51 :column PAGE_TYPE: Type of the page. Possible values: index, undo_log, inode, ibuf_free_list, allocated, bitmap, sys, trx_sys, fsp_hdr, xdes, blob, zblob, zblob2, unknown
52 :column SPACE_ID: Tablespace ID
53 :column PAGE_NO: Page offset within its tablespace
54 :column LRU_POSITION: Page position in the LRU list
55 :column FIX_COUNT: reference count of a page. It is incremented every time the page is accessed by |InnoDB|, and is 0 if and only if the page is not currently being accessed
56 :column FLUSH_TYPE: type of the last flush of the page (0:LRU 2:flush_list)
57
58Example: ::
59
60 mysql> select * from information_schema.INNODB_BUFFER_POOL_PAGES LIMIT 20;
61 +-----------+----------+---------+--------------+-----------+------------+
62 | page_type | space_id | page_no | lru_position | fix_count | flush_type |
63 +-----------+----------+---------+--------------+-----------+------------+
64 | allocated | 0 | 7 | 3 | 0 | 2 |
65 | allocated | 0 | 1 | 4 | 0 | 0 |
66 | allocated | 0 | 3 | 5 | 0 | 0 |
67 | inode | 0 | 2 | 6 | 0 | 2 |
68 | index | 0 | 4 | 7 | 0 | 2 |
69 | index | 0 | 11 | 8 | 0 | 0 |
70 | index | 0 | 12956 | 9 | 0 | 0 |
71 | allocated | 0 | 5 | 10 | 0 | 2 |
72 | allocated | 0 | 6 | 11 | 0 | 2 |
73 | undo_log | 0 | 51 | 12 | 0 | 2 |
74 | undo_log | 0 | 52 | 13 | 0 | 2 |
75 | index | 0 | 8 | 14 | 0 | 0 |
76 | index | 0 | 288 | 15 | 0 | 0 |
77 | index | 0 | 290 | 16 | 0 | 2 |
78 | index | 0 | 304 | 17 | 0 | 0 |
79 | allocated | 0 | 0 | 18 | 0 | 2 |
80 | index | 0 | 10 | 19 | 0 | 0 |
81 | index | 0 | 12973 | 20 | 0 | 0 |
82 | index | 0 | 9 | 21 | 0 | 2 |
83 | index | 0 | 12 | 22 | 0 | 0 |
84 +-----------+----------+---------+--------------+-----------+------------+
85 20 rows in set (0.81 sec)
86
87This table shows the characteristics of the allocated pages in buffer pool and current state of them.
88
89.. table:: INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES_INDEX
90
91 :column index_id: index name
92 :column space_id: Tablespace ID
93 :column page_no: Page offset within its tablespace
94 :column n_recs: number of user records on page
95 :column data_size: sum of the sizes of the records in page
96 :column hashed: the block is in adaptive hash index (1) or not (0)
97 :column access_time: time of the last access to that page
98 :column modified: modified since loaded (1) or not (0)
99 :column dirty: modified since last flushed (1) or not (0)
100 :column old: is old blocks in the LRU list (1) or not (0)
101 :column lru_position: page position in the LRU list
102 :column fix_count: reference count of a page. It is incremented every time the page is accessed by |InnoDB|, and is 0 if and only if the page is not currently being accessed
103 :column flush_type: type of the last flush of the page (0:LRU 2:flush_list)
104
105Example: ::
106
107 +----------+----------+---------+--------+-----------+--------+-------------+----------+-------+-----+--------------+-----------+------------+
108 | index_id | space_id | page_no | n_recs | data_size | hashed | access_time | modified | dirty | old | lru_position | fix_count | flush_type |
109 +----------+----------+---------+--------+-----------+--------+-------------+----------+-------+-----+--------------+-----------+------------+
110 | 39 | 0 | 5787 | 468 | 14976 | 1 | 2636182517 | 1 | 0 | 1 | 0 | 0 | 2 |
111 | 40 | 0 | 5647 | 1300 | 15600 | 1 | 2636182517 | 1 | 0 | 1 | 0 | 0 | 2 |
112 | 39 | 0 | 5786 | 468 | 14976 | 1 | 2636182516 | 1 | 0 | 1 | 0 | 0 | 2 |
113 | 40 | 0 | 6938 | 1300 | 15600 | 1 | 2636193968 | 1 | 0 | 1 | 0 | 0 | 2 |
114 | 39 | 0 | 5785 | 468 | 14976 | 1 | 2636182514 | 1 | 0 | 1 | 0 | 0 | 2 |
115 | 39 | 0 | 5784 | 468 | 14976 | 1 | 2636182512 | 1 | 0 | 1 | 0 | 0 | 2 |
116 | 40 | 0 | 5646 | 1300 | 15600 | 1 | 2636182511 | 1 | 0 | 1 | 0 | 0 | 2 |
117 | 39 | 0 | 7203 | 468 | 14976 | 1 | 2636193967 | 1 | 0 | 1 | 0 | 0 | 2 |
118 | 39 | 0 | 5783 | 468 | 14976 | 1 | 2636182507 | 1 | 0 | 1 | 0 | 0 | 2 |
119 | 39 | 0 | 5782 | 468 | 14976 | 1 | 2636182506 | 1 | 0 | 1 | 0 | 0 | 2 |
120 +----------+----------+---------+--------+-----------+--------+-------------+----------+-------+-----+--------------+-----------+------------+
121
122This table shows information about the index pages located in the buffer pool.
123
124.. table:: INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES_BLOB
125
126 :column space_id: tablespace ID
127 :column page_no: page offset within its tablespace
128 :column compressed: contains compressed data (1) or not (0)
129 :column part_len: data length in the page
130 :column next_page_no: page number of the next data
131 :column lru_position: page position in the LRU list
132 :column fix_count: reference count of a page. It is incremented every time the page is accessed by InnoDB, and is 0 if and only if the page is not currently being accessed
133 :column flush_type: type of the last flush of the page (0:LRU 2:flush_list)
134
135Example: ::
136
137 mysql> select * from information_schema.INNODB_BUFFER_POOL_PAGES_BLOB LIMIT 20;
138 +----------+---------+------------+----------+--------------+--------------+-----------+------------+
139 | space_id | page_no | compressed | part_len | next_page_no | lru_position | fix_count | flush_type |
140 +----------+---------+------------+----------+--------------+--------------+-----------+------------+
141 | 1748 | 111 | 0 | 10137 | 0 | 263 | 0 | 2 |
142 | 1748 | 307 | 0 | 5210 | 0 | 1084 | 0 | 2 |
143 | 1748 | 1329 | 0 | 6146 | 0 | 4244 | 0 | 2 |
144 | 1748 | 1330 | 0 | 11475 | 0 | 4245 | 0 | 2 |
145 | 1748 | 1345 | 0 | 5550 | 0 | 4247 | 0 | 2 |
146 | 1748 | 1346 | 0 | 7597 | 0 | 4248 | 0 | 2 |
147 | 1748 | 3105 | 0 | 6716 | 0 | 8919 | 0 | 2 |
148 | 1748 | 3213 | 0 | 8170 | 0 | 9390 | 0 | 2 |
149 | 1748 | 6142 | 0 | 5648 | 0 | 19638 | 0 | 2 |
150 | 1748 | 7387 | 0 | 10634 | 0 | 24191 | 0 | 2 |
151 | 1748 | 7426 | 0 | 5355 | 0 | 24194 | 0 | 2 |
152 | 1748 | 7489 | 0 | 16330 | 7489 | 24196 | 0 | 2 |
153 | 1748 | 7490 | 0 | 7126 | 0 | 24197 | 0 | 2 |
154 | 1748 | 7657 | 0 | 13571 | 0 | 24681 | 0 | 2 |
155 | 1748 | 7840 | 0 | 11208 | 0 | 25737 | 0 | 2 |
156 | 1748 | 9599 | 0 | 11882 | 0 | 31989 | 0 | 2 |
157 | 1748 | 11719 | 0 | 7367 | 0 | 40466 | 0 | 2 |
158 | 1748 | 12051 | 0 | 11049 | 0 | 41441 | 0 | 2 |
159 | 1748 | 12052 | 0 | 16330 | 12052 | 41442 | 0 | 2 |
160 | 1748 | 12053 | 0 | 2674 | 0 | 41443 | 0 | 2 |
161 +----------+---------+------------+----------+--------------+--------------+-----------+------------+
162 20 rows in set (0.05 sec)
163
164This table shows information from blob pages located in buffer pool.
165
88InnoDB Undo Logs166InnoDB Undo Logs
89================167================
90168
91169
=== modified file 'doc/source/diagnostics/response_time_distribution.rst'
--- doc/source/diagnostics/response_time_distribution.rst 2012-09-18 05:04:43 +0000
+++ doc/source/diagnostics/response_time_distribution.rst 2012-12-10 15:33:26 +0000
@@ -6,7 +6,7 @@
66
7The slow query log provides exact information about queries that take a long time to execute. However, sometimes there are a large number of queries that each take a very short amount of time to execute. This feature provides a tool for analyzing that information by counting and displaying the number of queries according to the the length of time they took to execute. The user can define time intervals that divide the range 0 to positive infinity into smaller intervals and then collect the number of commands whose execution times fall into each of those intervals.7The slow query log provides exact information about queries that take a long time to execute. However, sometimes there are a large number of queries that each take a very short amount of time to execute. This feature provides a tool for analyzing that information by counting and displaying the number of queries according to the the length of time they took to execute. The user can define time intervals that divide the range 0 to positive infinity into smaller intervals and then collect the number of commands whose execution times fall into each of those intervals.
88
9Note that in a replication environment, the server will not take into account *any* queries executed by the slave's SQL thread (whether they are slow or not) for the time distribution unless the log_slow_slave_statements variable is set.9Note that in a replication environment, the server will not take into account *any* queries executed by the slave's SQL thread (whether they are slow or not) for the time distribution unless the :variable:`log_slow_slave_statements` variable is set.
1010
11The feature isn't implemented in all versions of the server. The variable :variable:`have_response_time_distribution` indicates whether or not it is implemented in the server you are running.11The feature isn't implemented in all versions of the server. The variable :variable:`have_response_time_distribution` indicates whether or not it is implemented in the server you are running.
1212
@@ -251,16 +251,7 @@
251251
252.. table:: INFORMATION_SCHEMA.QUERY_RESPONSE_TIME252.. table:: INFORMATION_SCHEMA.QUERY_RESPONSE_TIME
253253
254 :column VARCHAR TIME: 254 :column VARCHAR TIME: Interval range in which the query occurred
255 :column INT(11) COUNT: 255 :column INT(11) COUNT: Number of queries with execution times that fell into that interval
256 :column VARCHAR TOTAL: 256 :column VARCHAR TOTAL: Total execution time of the queries
257257
258Implementation Details
259======================
260
261Implementation details on this feature are provided here.
262
263Related Reading
264===============
265
266 * `Blueprint about Response Time Distribution <https://blueprints.launchpad.net/percona-server/+spec/response-time-distribution>`_
267258
=== modified file 'doc/source/diagnostics/user_stats.rst'
--- doc/source/diagnostics/user_stats.rst 2012-09-18 05:04:43 +0000
+++ doc/source/diagnostics/user_stats.rst 2012-12-10 15:33:26 +0000
@@ -108,7 +108,7 @@
108108
109This table shows statistics on index usage. An older version of the feature contained a single column that had the ``TABLE_SCHEMA``, ``TABLE_NAME`` and ``INDEX_NAME`` columns concatenated together. The |Percona| version of the feature separates these into three columns. Users can see entries only for tables to which they have ``SELECT`` access.109This table shows statistics on index usage. An older version of the feature contained a single column that had the ``TABLE_SCHEMA``, ``TABLE_NAME`` and ``INDEX_NAME`` columns concatenated together. The |Percona| version of the feature separates these into three columns. Users can see entries only for tables to which they have ``SELECT`` access.
110110
111This table makes it possible to do many things that were difficult or impossible previously. For example, you can use it to find unused indexes and generate DROP commands to remove them.111This table makes it possible to do many things that were difficult or impossible previously. For example, you can use it to find unused indexes and generate DROP commands to remove them. If the index has not been used it won't be in this table.
112112
113Example: ::113Example: ::
114114
@@ -145,28 +145,30 @@
145145
146.. table:: INFORMATION_SCHEMA.THREAD_STATISTICS146.. table:: INFORMATION_SCHEMA.THREAD_STATISTICS
147147
148 :column THREAD_ID: int(21)148 :column THREAD_ID: Thread ID
149 :column TOTAL_CONNECTIONS: int(21)149 :column TOTAL_CONNECTIONS: The number of connections created from this thread.
150 :column CONCURRENT_CONNECTIONS: int(21)150 :column CONCURRENT_CONNECTIONS: The number of concurrent connections from this thread.
151 :column CONNECTED_TIME: int(21)151 :column CONNECTED_TIME: The cumulative number of seconds elapsed while there were connections from this thread.
152 :column BUSY_TIME: int(21)152 :column BUSY_TIME: The cumulative number of seconds there was activity from this thread.
153 :column CPU_TIME: int(21)153 :column CPU_TIME: The cumulative CPU time elapsed while servicing this thread.
154 :column BYTES_RECEIVED: int(21)154 :column BYTES_RECEIVED: The number of bytes received from this thread.
155 :column BYTES_SENT: int(21)155 :column BYTES_SENT: The number of bytes sent to this thread.
156 :column BINLOG_BYTES_WRITTEN: int(21)156 :column BINLOG_BYTES_WRITTEN: The number of bytes written to the binary log from this thread.
157 :column ROWS_FETCHED: int(21)157 :column ROWS_FETCHED: The number of rows fetched by this thread.
158 :column ROWS_UPDATED: int(21)158 :column ROWS_UPDATED: The number of rows updated by this thread.
159 :column TABLE_ROWS_READ: int(21)159 :column TABLE_ROWS_READ: The number of rows read from tables by this tread.
160 :column SELECT_COMMANDS: int(21)160 :column SELECT_COMMANDS: The number of ``SELECT`` commands executed from this thread.
161 :column UPDATE_COMMANDS: int(21)161 :column UPDATE_COMMANDS: The number of ``UPDATE`` commands executed from this thread.
162 :column OTHER_COMMANDS: int(21)162 :column OTHER_COMMANDS: The number of other commands executed from this thread.
163 :column COMMIT_TRANSACTIONS: int(21)163 :column COMMIT_TRANSACTIONS: The number of ``COMMIT`` commands issued by this thread.
164 :column ROLLBACK_TRANSACTIONS: int(21)164 :column ROLLBACK_TRANSACTIONS: The number of ``ROLLBACK`` commands issued by this thread.
165 :column DENIED_CONNECTIONS: int(21)165 :column DENIED_CONNECTIONS: The number of connections denied to this thread.
166 :column LOST_CONNECTIONS: int(21)166 :column LOST_CONNECTIONS: The number of thread connections that were terminated uncleanly.
167 :column ACCESS_DENIED: int(21)167 :column ACCESS_DENIED: The number of times this thread issued commands that were denied.
168 :column EMPTY_QUERIES: int(21)168 :column EMPTY_QUERIES: The number of times this thread sent empty queries to the server.
169 :column TOTAL_SSL_CONNECTIONS: int(21)169 :column TOTAL_SSL_CONNECTIONS: The number of thread connections that used SSL.
170
171In order for this table to be populated with statistics, additional variable :variable:`thread_statistics` should be set to ``ON``.
170172
171.. table:: INFORMATION_SCHEMA.USER_STATISTICS173.. table:: INFORMATION_SCHEMA.USER_STATISTICS
172174
173175
=== modified file 'doc/source/index.rst'
--- doc/source/index.rst 2012-10-31 16:45:42 +0000
+++ doc/source/index.rst 2012-12-10 15:33:26 +0000
@@ -136,7 +136,6 @@
136 :maxdepth: 1136 :maxdepth: 1
137 :glob:137 :glob:
138138
139 diagnostics/index_info_schema_tables
140 diagnostics/innodb_stats139 diagnostics/innodb_stats
141 diagnostics/user_stats140 diagnostics/user_stats
142 diagnostics/slow_extended_55141 diagnostics/slow_extended_55
@@ -169,6 +168,7 @@
169 development168 development
170 trademark-policy169 trademark-policy
171 upstream-bug-fixes170 upstream-bug-fixes
171 index_info_schema_tables
172 faq172 faq
173 compatibility173 compatibility
174 release-notes/release-notes_index174 release-notes/release-notes_index
175175
=== renamed file 'doc/source/diagnostics/index_info_schema_tables.rst' => 'doc/source/index_info_schema_tables.rst'
--- doc/source/diagnostics/index_info_schema_tables.rst 2012-10-11 09:53:58 +0000
+++ doc/source/index_info_schema_tables.rst 2012-12-10 15:33:26 +0000
@@ -6,25 +6,53 @@
66
7This is a list of the ``INFORMATION_SCHEMA TABLES`` that exist in |Percona Server| with |XtraDB|. The entry for each table points to the page in the documentation where it's described.7This is a list of the ``INFORMATION_SCHEMA TABLES`` that exist in |Percona Server| with |XtraDB|. The entry for each table points to the page in the documentation where it's described.
88
9 * :table:`CLIENT_STATISTICS`
10
11 * :table:`INDEX_STATISTICS`
12
9 * :table:`GLOBAL_TEMPORARY_TABLES`13 * :table:`GLOBAL_TEMPORARY_TABLES`
1014
11 * :table:`INNODB_INDEX_STATS`
12
13 * :table:`INNODB_LOCK_WAITS`
14
15 * :table:`INNODB_LOCKS`
16
17 * :table:`INNODB_RSEG`
18
19 * :table:`INNODB_TABLE_STATS`
20
21 * :table:`INNODB_TRX`
22
23 * :table:`PROCESSLIST`
24
25 * :table:`QUERY_RESPONSE_TIME`15 * :table:`QUERY_RESPONSE_TIME`
2616
17 * :table:`TABLE_STATISTICS`
18
27 * :table:`TEMPORARY_TABLES`19 * :table:`TEMPORARY_TABLES`
2820
21 * :table:`THREAD_STATISTICS`
22
23 * :table:`USER_STATISTICS`
24
25 * :table:`INNODB_RSEG`
26
29 * :table:`INNODB_UNDO_LOGS`27 * :table:`INNODB_UNDO_LOGS`
3028
29 * :table:`INNODB_SYS_TABLESTATS`
30
31 * :table:`INNODB_INDEX_STATS`
32
33 * :table:`INNODB_CHANGED_PAGES`
34
35 * :table:`INNODB_BUFFER_POOL_PAGES`
36
37 * :table:`INNODB_BUFFER_POOL_PAGES_BLOB`
38
39 * :table:`INNODB_BUFFER_POOL_PAGES_INDEX`
40
41 * :table:`INNODB_SYS_TABLES`
42
43 * :table:`INNODB_SYS_FIELDS`
44
45 * :table:`INNODB_SYS_COLUMNS`
46
47 * :table:`INNODB_SYS_STATS`
48
49 * :table:`INNODB_SYS_FOREIGN`
50
51 * :table:`INNODB_SYS_INDEXES`
52
53 * :table:`XTRADB_ADMIN_COMMAND`
54
55 * :table:`INNODB_TABLE_STATS`
56
57 * :table:`INNODB_SYS_FOREIGN_COLS`
58
3159
=== modified file 'doc/source/management/innodb_lru_dump_restore.rst'
--- doc/source/management/innodb_lru_dump_restore.rst 2012-09-04 23:24:39 +0000
+++ doc/source/management/innodb_lru_dump_restore.rst 2012-12-10 15:33:26 +0000
@@ -80,7 +80,7 @@
80Status Information80Status Information
81==================81==================
8282
83Status information about the dump and restore is written to the server``s error file: ::83Status information about the dump and restore is written to the server's error file: ::
8484
85 ....85 ....
86 091217 11:49:16 InnoDB: administration command ``XTRA_LRU_DUMP`` was detected.86 091217 11:49:16 InnoDB: administration command ``XTRA_LRU_DUMP`` was detected.
@@ -145,7 +145,7 @@
145 :default: OFF145 :default: OFF
146 :range: ON/OFF146 :range: ON/OFF
147147
148When this variable is set to ON XtraDB waits until the restore of the dump is completed before reporting successful startup to the server.148When this variable is set to ON |XtraDB| waits until the restore of the dump is completed before reporting successful startup to the server.
149149
150150
151.. variable:: innodb_buffer_pool_restore_at_startup151.. variable:: innodb_buffer_pool_restore_at_startup
@@ -164,6 +164,14 @@
164164
165 This variable was added in release 5.5.10-20.1. Prior to that, it was named :variable:`innodb_auto_lru_dump`, which still exists in earlier versions.165 This variable was added in release 5.5.10-20.1. Prior to that, it was named :variable:`innodb_auto_lru_dump`, which still exists in earlier versions.
166166
167``INFORMATION_SCHEMA`` Tables
168=============================
169
170This feature provides the following table:
171
172.. table:: INFORMATION_SCHEMA.XTRADB_ADMIN_COMMAND
173
174 :column result_message: result message of the ``XTRADB_ADMIN_COMMAND``
167175
168Other reading176Other reading
169=============177=============

Subscribers

People subscribed via source and target branches