Friday, September 4, 2009

InnoDB Plugin Parameters

 Here is the set of new parameters available with the InnoDB Plugin 1.0.4


NameScopeDynamicDefault
innodb_adaptive_flushingGLOBALYESTRUE
innodb_change_bufferingGLOBALYESinserts
innodb_file_formatGLOBALYESAntelope
innodb_file_format_checkGLOBALYESON
innodb_io_capacityGLOBALYES200
innodb_read_ahead_thresholdGLOBALYES56
innodb_read_io_threadsGLOBALNO4
innodb_spin_wait_delayGLOBALYES6
innodb_stats_sample_pagesGLOBALYES8
innodb_strict_modeGLOBAL|SESSIONYESFALSE
innodb_use_sys_mallocGLOBALNOTRUE
innodb_write_io_threadsGLOBALNO4

Parameters with New Defaults for InnoDB Plugin 1.0.4
NameOld DefaultNew Default
innodb_additional_mem_pool_size1MB8MB
innodb_buffer_pool_size8MB128MB
innodb_log_buffer_size1MB8MB
innodb_max_dirty_pages_pct9075
innodb_sync_spin_loops2030
innodb_thread_concurrency8

mysql> SELECT version();
+------------------+
| version()        |
+------------------+
| 5.1.38-community |
+------------------+

mysql> SHOW VARIABLES LIKE 'innodb_version';
+----------------+-------+
| Variable_name  | Value  |
+----------------+-------+
| innodb_version  | 1.0.4   |
+----------------+-------+


InnoDB Parameters After Setting Plugin

Query show variables like '%innodb%';
Output From Command:show variables like '%innodb%';
Variable_nameValue
have_innodbYES
ignore_builtin_innodbON
innodb_adaptive_flushingON
innodb_adaptive_hash_indexON
innodb_additional_mem_pool_size8388608
innodb_autoextend_increment8
innodb_autoinc_lock_mode1
innodb_buffer_pool_size134217728
innodb_change_bufferinginserts
innodb_checksumsON
innodb_commit_concurrency0
innodb_concurrency_tickets500
innodb_data_file_pathibdata1:10M:autoextend
innodb_data_home_dir(null)
innodb_doublewriteON
innodb_fast_shutdown1
innodb_file_formatAntelope
innodb_file_format_checkAntelope
innodb_file_io_threads4
innodb_file_per_tableOFF
innodb_flush_log_at_trx_commit1
innodb_flush_method(null)
innodb_force_recovery0
innodb_io_capacity200
innodb_lock_wait_timeout50
innodb_locks_unsafe_for_binlogOFF
innodb_log_buffer_size8388608
innodb_log_file_size5242880
innodb_log_files_in_group2
innodb_log_group_home_dir.\
innodb_max_dirty_pages_pct75
innodb_max_purge_lag0
innodb_mirrored_log_groups1
innodb_open_files300
innodb_read_ahead_threshold56
innodb_read_io_threads4
innodb_replication_delay0
innodb_rollback_on_timeoutOFF
innodb_spin_wait_delay6
innodb_stats_on_metadataON
innodb_stats_sample_pages8
innodb_strict_modeOFF
innodb_support_xaON
innodb_sync_spin_loops30
innodb_table_locksON
innodb_thread_concurrency0
innodb_thread_sleep_delay10000
innodb_use_sys_mallocON
innodb_version1.0.4
innodb_write_io_threads4
50 rows in set (0.00 sec)


InnoDB Parameters Before Setting Plugin

 mysql> SHOW VARIABLES LIKE 'ignore_builtin_innodb';
+-----------------------+-------+
| Variable_name             | Value |
+-----------------------+-------+
| ignore_builtin_innodb    | OFF    |
+-----------------------+-------+

Output From Command:  show variables like '%innodb%';
Variable_nameValue
have_innodbYES
ignore_builtin_innodbOFF
innodb_adaptive_hash_indexON
innodb_additional_mem_pool_size1048576
innodb_autoextend_increment8
innodb_autoinc_lock_mode1
innodb_buffer_pool_size8388608
innodb_checksumsON
innodb_commit_concurrency0
innodb_concurrency_tickets500
innodb_data_file_pathibdata1:10M:autoextend
innodb_data_home_dir(null)
innodb_doublewriteON
innodb_fast_shutdown1
innodb_file_io_threads4
innodb_file_per_tableOFF
innodb_flush_log_at_trx_commit1
innodb_flush_method(null)
innodb_force_recovery0
innodb_lock_wait_timeout50
innodb_locks_unsafe_for_binlogOFF
innodb_log_buffer_size1048576
innodb_log_file_size5242880
innodb_log_files_in_group2
innodb_log_group_home_dir.\
innodb_max_dirty_pages_pct90
innodb_max_purge_lag0
innodb_mirrored_log_groups1
innodb_open_files300
innodb_rollback_on_timeoutOFF
innodb_stats_on_metadataON
innodb_support_xaON
innodb_sync_spin_loops20
innodb_table_locksON
innodb_thread_concurrency8
innodb_thread_sleep_delay10000
innodb_use_legacy_cardinality_algorithmON
37 rows in set (0.00 sec)

No comments: