June 19, 2013

Post: Is your MySQL buffer pool warm? Make it sweat!

… server does not process query traffic except for replication. The buffer pool and adaptive hash index on the standby server will…-line option, we set the option innodb_fake_changes to prevent INSERTs, UPDATEs, and DELETEs from corrupting the data on the standby server. You will need Percona Server in order to use innodb_fake_changes…

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

… now, the important number here is to note that the InnoDB buffer pool for my 5.6 instance is 128MB – smaller than… two, delete some data, and see what happens: mysql> set global innodb_ft_aux_table=’test/dir_test_innodb‘; mysql> set global innodb_optimize…) mysql> delete from dir_test_innodb LIMIT 200000; Query OK, 200000 rows affected (8.65 sec) mysql> optimize table dir_test_innodb; +———————-+———-+———-+———-+ | Table…

Post: Tuning InnoDB Concurrency Tickets

…_id), -> FOREIGN KEY (parent_id) REFERENCES parent(id) -> ON DELETE CASCADE -> ) ENGINE=INNODB; — 0 Tickets Used Query OK, 0 rows affected (0…: innodb_buffer_pool_size=24G innodb_data_file_path=ibdata1:10M:autoextend innodb_file_per_table=1 innodb_flush_log_at_trx_commit = 1 innodb_log_buffer

Post: InnoDB Flushing: Theory and solutions

…. The two most important parameters for InnoDB performance are innodb_buffer_pool_size and innodb_log_file_size. InnoDB works with data in memory, and… a crash or system failure, InnoDB is logging changes into InnoDB transaction logs. The size of the InnoDB transaction log defines how many… control mechanism: We can add a delay into INSERT/UPDATE/DELETE operations. This way we prevent checkpoint_age from growing and…

Post: Choosing proper innodb_log_file_size

… you’re doing significant amount of writes to Innodb tables decent size of innodb_log_file_size is important for MySQL Performance… pages are up to date), number of unflushed pages in innodb buffer pool and its size as well as performance of IO… “undo” phase is size your transactions appropriately – so updates/inserts/deletes can be sized to affect limited number of rows. Good…

Post: Fix of InnoDB/XtraDB scalability of rollback segment

InnoDB scalability on 24-core box, and we made research of scalability problems in sysbench write workload (benchmark emulates intensive insert/deleteinnodb_buffer_pool_size=6G innodb_data_file_path=ibdata1:10M:autoextend innodb_file_per_table=1 innodb_flush_log_at_trx_commit=2 innodb_log_buffer

Post: Ultimate MySQL variable and status reference list

… Com_delete_multiblogpercona….innodb_buffer_pool_instancesblogpercona.commanual Innodb_buffer_pool_pages_datablogpercona.commanual Innodb_buffer_pool_pages_dirtyblogpercona.commanual Innodb_buffer_pool_pages_flushedblogpercona.commanual Innodb_buffer_pool_pages_freeblogpercona.commanual Innodb_buffer

Post: Recovery deleted ibdata1

… case when a customer deleted the InnoDB main table space – ibdata1 – and redo logs – ib_logfile*. MySQL keeps InnoDB files open all the… the deletion. By the way, this is a good reason to monitor existence of these files! But after the restart InnoDB will… ensure InnoDB isn’t doing any writes: FILE I/O ——– I/O thread 0 state: waiting for i/o request (insert buffer

Post: SHOW INNODB STATUS walk through

…_ibfk_1` FOREIGN KEY (`parent_id`) REFERENCES `parent` (`id`) ON DELETE CASCADE Trying to add in child table, in index `par… can check if your innodb_log_buffer_size is optimal – if you see more than 30% of log buffer size being unflushed you… Buffer pool hit rate 999 / 1000 This section shows Buffer pool activity and memory usage. You can see total memory allocated by Innodb

Comment: MySQL Server Memory Usage

…’ ‘Com_create_table’, ’31′ ‘Com_dealloc_sql’, ’0′ ‘Com_delete‘, ’348788′ ‘Com_delete_multi’, ’1′ ‘Com_do’, ’0′ ‘Com_drop_db’, ’0…/log/mysql innodb_log_arch_dir=/var/log/mysql innodb_table_locks=0 innodb_buffer_pool_size=1800M # USE ALL MEMORY AVAILABLE #innodb_log_buffer_size=8M # Lowered from 32M according to MySQL innodb