June 18, 2013

Post: Measuring the amount of writes in InnoDB redo logs

redo log size calculations. After each one double checked the calculations, it turned out that we experienced something not expected: Using Innodb_os_log… xxx and increments Innodb_os_log_written by 512 bytes Transaction 2 writes 200 bytes to the log buffer At commit, InnoDB appends…

Post: How InnoDB handles REDO logging

… sectors. Percona Server with XtraDB allows you to control the transaction log record size, as better performance may be gained with 4096 byte… transaction logs which allow a larger window between REDO logging and the checkpoint on disk. Vadim touched upon this subject recently in his post MySQL

Post: Recovery deleted ibdata1

…customer deleted the InnoDB main table space – ibdata1 – and redo logs – ib_logfile*. MySQL keeps InnoDB files open all the time. The … seg size 400, Another thread writing in background is the purge thread. It should purge all transactions up to very last ———— TRANSACTIONS ———— …

Post: Analyzing the distribution of InnoDB log file writes

log mysqld 29772 mysql 8uW REG 8,2 268435456 7143989 /var/lib/mysql/ib_logfile0 mysqld 29772 mysqllog_at_trx_commit set to 2. This means each transaction does a log…meaningful for determining the necessary log buffer size? The largest write above… make, but the InnoDB redo log system is intricate. It’…

Post: MySQL 5.5.8 - in search of stability

size to data. For the initial tests, I used MySQL 5.5.8 (the tar.gz binary from dev.mysql…benchmark throughput – This is New Order Transactions per 10 seconds. dirty page – …of the limit of the total log size (total size is 2000MB*2). The … are limited by the capacity of REDO logs. So, what do we get …

Post: MySQL 5.6: Improvements in the Nutshell

… available in MySQL 5.6 …instances – Large (over 4GB) redo logs support Optimizer and Execution – … – 4K and 8K Page sizes for Innodb – Improvement to …Transaction Identifiers – Crash Safe Slave and Binlog – Replication Event Checksums – Time Delayed Replication – Server UUID – Improved Logging

Post: Choosing proper innodb_log_file_size

size of innodb_log_file_size is important for MySQL Performance. However setting it too large will increase recovery time, so in case of MySQL… roll back certain transactions which were not commited, but changes from which already made it to the database. Unlike “redo” phase “undo…

Post: Aligning IO on a hard disk RAID – the Benchmarks

… as expected. I had to redo all of the benchmarks to get…mysql socket=/var/run/mysqld/mysqld.sock innodb_file_per_table = true innodb_data_file_path = ibdata1:10M:autoextend innodb_flush_logsize = 10G myisam_repair_threads = 1 myisam_recover skip-grant-tables Amount of rows used was 20M, transactions

Post: Recovery after DROP & CREATE

…InnoDB adds the records to the dictionary. The size of the new records will be the same…disk. But the changes a transaction does are written to the redo log right before a successful response … redo log: # ./s_tables /var/lib/mysql/ib_logfile1 sakila/actor sakila/actor 15 # ./s_indexes /var/lib/mysql

Post: How to estimate time it takes Innodb to Recover ?

log records in the log file (which is circular). Size of log records While we speak about log file sizelog replay phase there is also phase of flushing dirty buffers to the disk and undo phase – rolling back uncommitted transactions. As MySQL… I hope Heikki will enable redo and undo phases to be …