## 27.13 Performance Schema Option and Variable Reference

[]()

**Table 27.18 Performance Schema Variable Reference**

|                                                                                   Name                                                                                   |Cmd-Line|Option File|System Var|Status Var|Var Scope|Dynamic|
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|-----------|----------|----------|---------|-------|
|                                        [performance\_schema](performance-schema-system-variables.html#sysvar_performance_schema)                                         |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                         [Performance\_schema\_accounts\_lost](performance-schema-status-variables.html#statvar_Performance_schema_accounts_lost)                         |        |           |          |   Yes    | Global  |  No   |
|                         [performance\_schema\_accounts\_size](performance-schema-system-variables.html#sysvar_performance_schema_accounts_size)                          |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [Performance\_schema\_cond\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_cond_classes_lost)                     |        |           |          |   Yes    | Global  |  No   |
|                  [Performance\_schema\_cond\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_cond_instances_lost)                   |        |           |          |   Yes    | Global  |  No   |
|           [performance-schema-consumer-events-stages-current](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-stages-current)           |  Yes   |    Yes    |          |          |         |       |
|           [performance-schema-consumer-events-stages-history](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-stages-history)           |  Yes   |    Yes    |          |          |         |       |
|      [performance-schema-consumer-events-stages-history-long](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-stages-history-long)      |  Yes   |    Yes    |          |          |         |       |
|           [performance-schema-consumer-events-statements-cpu](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-statements-cpu)           |  Yes   |    Yes    |          |          |         |       |
|       [performance-schema-consumer-events-statements-current](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-statements-current)       |  Yes   |    Yes    |          |          |         |       |
|       [performance-schema-consumer-events-statements-history](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-statements-history)       |  Yes   |    Yes    |          |          |         |       |
|  [performance-schema-consumer-events-statements-history-long](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-statements-history-long)  |  Yes   |    Yes    |          |          |         |       |
|     [performance-schema-consumer-events-transactions-current](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-transactions-current)     |  Yes   |    Yes    |          |          |         |       |
|     [performance-schema-consumer-events-transactions-history](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-transactions-history)     |  Yes   |    Yes    |          |          |         |       |
|[performance-schema-consumer-events-transactions-history-long](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-transactions-history-long)|  Yes   |    Yes    |          |          |         |       |
|            [performance-schema-consumer-events-waits-current](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-waits-current)            |  Yes   |    Yes    |          |          |         |       |
|            [performance-schema-consumer-events-waits-history](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-waits-history)            |  Yes   |    Yes    |          |          |         |       |
|       [performance-schema-consumer-events-waits-history-long](performance-schema-options.html#option_mysqld_performance-schema-consumer-events-waits-history-long)       |  Yes   |    Yes    |          |          |         |       |
|          [performance-schema-consumer-global-instrumentation](performance-schema-options.html#option_mysqld_performance-schema-consumer-global-instrumentation)          |  Yes   |    Yes    |          |          |         |       |
|               [performance-schema-consumer-statements-digest](performance-schema-options.html#option_mysqld_performance-schema-consumer-statements-digest)               |  Yes   |    Yes    |          |          |         |       |
|          [performance-schema-consumer-thread-instrumentation](performance-schema-options.html#option_mysqld_performance-schema-consumer-thread-instrumentation)          |  Yes   |    Yes    |          |          |         |       |
|                           [Performance\_schema\_digest\_lost](performance-schema-status-variables.html#statvar_Performance_schema_digest_lost)                           |        |           |          |   Yes    | Global  |  No   |
|                          [performance\_schema\_digests\_size](performance-schema-system-variables.html#sysvar_performance_schema_digests_size)                           |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|      [performance\_schema\_events\_stages\_history\_long\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_stages_history_long_size)      |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|           [performance\_schema\_events\_stages\_history\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_stages_history_size)            |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|  [performance\_schema\_events\_statements\_history\_long\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_statements_history_long_size)  |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|       [performance\_schema\_events\_statements\_history\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_statements_history_size)        |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|[performance\_schema\_events\_transactions\_history\_long\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_transactions_history_long_size)|  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|     [performance\_schema\_events\_transactions\_history\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_transactions_history_size)      |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|       [performance\_schema\_events\_waits\_history\_long\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_waits_history_long_size)       |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|            [performance\_schema\_events\_waits\_history\_size](performance-schema-system-variables.html#sysvar_performance_schema_events_waits_history_size)             |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [Performance\_schema\_file\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_file_classes_lost)                     |        |           |          |   Yes    | Global  |  No   |
|                    [Performance\_schema\_file\_handles\_lost](performance-schema-status-variables.html#statvar_Performance_schema_file_handles_lost)                     |        |           |          |   Yes    | Global  |  No   |
|                  [Performance\_schema\_file\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_file_instances_lost)                   |        |           |          |   Yes    | Global  |  No   |
|                            [Performance\_schema\_hosts\_lost](performance-schema-status-variables.html#statvar_Performance_schema_hosts_lost)                            |        |           |          |   Yes    | Global  |  No   |
|                            [performance\_schema\_hosts\_size](performance-schema-system-variables.html#sysvar_performance_schema_hosts_size)                             |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                               [performance-schema-instrument](performance-schema-options.html#option_mysqld_performance-schema-instrument)                               |  Yes   |    Yes    |          |          |         |       |
|                           [Performance\_schema\_locker\_lost](performance-schema-status-variables.html#statvar_Performance_schema_locker_lost)                           |        |           |          |   Yes    | Global  |  No   |
|                      [performance\_schema\_max\_cond\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_cond_classes)                      |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_cond\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_cond_instances)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                     [performance\_schema\_max\_digest\_length](performance-schema-system-variables.html#sysvar_performance_schema_max_digest_length)                     |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                      [performance\_schema\_max\_file\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_file_classes)                      |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                      [performance\_schema\_max\_file\_handles](performance-schema-system-variables.html#sysvar_performance_schema_max_file_handles)                      |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_file\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_file_instances)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_memory\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_memory_classes)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_metadata\_locks](performance-schema-system-variables.html#sysvar_performance_schema_max_metadata_locks)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                     [performance\_schema\_max\_mutex\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_mutex_classes)                     |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                   [performance\_schema\_max\_mutex\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_mutex_instances)                   |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|    [performance\_schema\_max\_prepared\_statements\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_prepared_statements_instances)     |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                 [performance\_schema\_max\_program\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_program_instances)                 |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_rwlock\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_rwlock_classes)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                  [performance\_schema\_max\_rwlock\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_rwlock_instances)                  |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_socket\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_socket_classes)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                  [performance\_schema\_max\_socket\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_socket_instances)                  |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                     [performance\_schema\_max\_stage\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_stage_classes)                     |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                 [performance\_schema\_max\_statement\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_statement_classes)                 |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                   [performance\_schema\_max\_statement\_stack](performance-schema-system-variables.html#sysvar_performance_schema_max_statement_stack)                   |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                     [performance\_schema\_max\_table\_handles](performance-schema-system-variables.html#sysvar_performance_schema_max_table_handles)                     |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                   [performance\_schema\_max\_table\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_table_instances)                   |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_max\_thread\_classes](performance-schema-system-variables.html#sysvar_performance_schema_max_thread_classes)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                  [performance\_schema\_max\_thread\_instances](performance-schema-system-variables.html#sysvar_performance_schema_max_thread_instances)                  |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                  [Performance\_schema\_memory\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_memory_classes_lost)                   |        |           |          |   Yes    | Global  |  No   |
|                   [Performance\_schema\_metadata\_lock\_lost](performance-schema-status-variables.html#statvar_Performance_schema_metadata_lock_lost)                    |        |           |          |   Yes    | Global  |  No   |
|                   [Performance\_schema\_mutex\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_mutex_classes_lost)                    |        |           |          |   Yes    | Global  |  No   |
|                 [Performance\_schema\_mutex\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_mutex_instances_lost)                  |        |           |          |   Yes    | Global  |  No   |
|                [Performance\_schema\_nested\_statement\_lost](performance-schema-status-variables.html#statvar_Performance_schema_nested_statement_lost)                 |        |           |          |   Yes    | Global  |  No   |
|             [Performance\_schema\_prepared\_statements\_lost](performance-schema-status-variables.html#statvar_Performance_schema_prepared_statements_lost)              |        |           |          |   Yes    | Global  |  No   |
|                          [Performance\_schema\_program\_lost](performance-schema-status-variables.html#statvar_Performance_schema_program_lost)                          |        |           |          |   Yes    | Global  |  No   |
|                  [Performance\_schema\_rwlock\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_rwlock_classes_lost)                   |        |           |          |   Yes    | Global  |  No   |
|                [Performance\_schema\_rwlock\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_rwlock_instances_lost)                 |        |           |          |   Yes    | Global  |  No   |
|           [Performance\_schema\_session\_connect\_attrs\_lost](performance-schema-status-variables.html#statvar_Performance_schema_session_connect_attrs_lost)           |        |           |          |   Yes    | Global  |  No   |
|           [performance\_schema\_session\_connect\_attrs\_size](performance-schema-system-variables.html#sysvar_performance_schema_session_connect_attrs_size)            |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                     [performance\_schema\_setup\_actors\_size](performance-schema-system-variables.html#sysvar_performance_schema_setup_actors_size)                     |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                    [performance\_schema\_setup\_objects\_size](performance-schema-system-variables.html#sysvar_performance_schema_setup_objects_size)                    |  Yes   |    Yes    |   Yes    |          | Global  |  No   |
|                  [Performance\_schema\_socket\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_socket_classes_lost)                   |        |           |          |   Yes    | Global  |  No   |
|                [Performance\_schema\_socket\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_socket_instances_lost)                 |        |           |          |   Yes    | Global  |  No   |
|                   [Performance\_schema\_stage\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_stage_classes_lost)                    |        |           |          |   Yes    | Global  |  No   |
|               [Performance\_schema\_statement\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_statement_classes_lost)                |        |           |          |   Yes    | Global  |  No   |
|                   [Performance\_schema\_table\_handles\_lost](performance-schema-status-variables.html#statvar_Performance_schema_table_handles_lost)                    |        |           |          |   Yes    | Global  |  No   |
|                 [Performance\_schema\_table\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_table_instances_lost)                  |        |           |          |   Yes    | Global  |  No   |
|                  [Performance\_schema\_thread\_classes\_lost](performance-schema-status-variables.html#statvar_Performance_schema_thread_classes_lost)                   |        |           |          |   Yes    | Global  |  No   |
|                [Performance\_schema\_thread\_instances\_lost](performance-schema-status-variables.html#statvar_Performance_schema_thread_instances_lost)                 |        |           |          |   Yes    | Global  |  No   |
|                            [Performance\_schema\_users\_lost](performance-schema-status-variables.html#statvar_Performance_schema_users_lost)                            |        |           |          |   Yes    | Global  |  No   |
|                            [performance\_schema\_users\_size](performance-schema-system-variables.html#sysvar_performance_schema_users_size)                             |  Yes   |    Yes    |   Yes    |          | Global  |  No   |

