May 25, 2012

Post: Ultimate MySQL variable and status reference list

… referring to the amazing MySQL manual, especially the option and variable reference table. …_retry_countblogpercona.commanual net_write_timeoutblogpercona.commanual newblogpercona.commanual no_defaultsblogpercona.commanual Not_flushed_delayed_rowsblogpercona.commanual oldblogpercona.commanual…

Post: InnoDB Flushing: a lot of memory and slow disk

flushing implementations (including both MySQL native adaptive flushingdelays the problem until later; 2) increases recovery time (and that is an important factor with slow disks); and 3) MySQLflushing neighbor pages was implemented to perform sequential writes where possible and avoid random writes

Post: Performance gotcha of MySQL memory tables

… know about comes from the fact it is the only MySQL storage engine which defaults to HASH index type by default… in Innodb Buffer Pool and log flush on transaction commit was also disabled, meaning Innodb could delay writes and do all the changes directly in memory. MyISAM however had to perform number of random writes to the…

Post: MySQL net_write_timeout vs wait_timeout and protocol notes

… rather typical for some applications to have long delays between queries. If query is being read or … flushes buffers to the disk every so often which can take long enough to trigger default net_write… increasing net_write_timeout ? Not what I know of. You can’t use something like mysql_ping because …

Post: Multiple purge threads in Percona Server 5.1.56 and MySQL 5.6.2

…size=1900M innodb_flush_log_at_trx_commit=2 innodb_doublewrite=1 innodb_flush_method=…penalize further TPS. MySQL 5.6.2 Results Now let’s test MySQL 5.6.2…fact, as of the time of this writing, the code is already different in the … short sleeps and apparently those sleep delays are too long, so let’s …

Post: Why delayed flushing can result in less work

… another page flush results. If the first flush had been delayed, the two flushes could have been done as one flush. This is called write combining. In some workloads, the same rows could be updated many, many times — so delaying and permitting write… there is a side effect such as mutex contention inside MySQL or InnoDB. So whether this matters for you is workload…

Comment: MySQL Server Memory Usage

…’, ’4001′ ‘Created_tmp_tables’, ’669137′ ‘Delayed_errors’, ’0′ ‘Delayed_insert_threads’, ’0′ ‘Delayed_writes‘, ’0′ ‘Flush_commands’, ’5′ ‘Handler_commit’, ’19092941′ ‘…mysql.sock pid-file=/var/run/mysql/mysql.pid datadir=/db/disk2/mysql/data log-bin=/var/log/mysql/log log-slow-queries=/var/log/mysql

Post: MySQL Server Variables - SQL layer or Storage Engine specific.

…memory tables. So first MySQL versions did not …write Delay updating indexes for MyISAM tables. Good for performance but tables will be badly corrupted on crash. delayed_insert_limit, delayed_insert_timeout, delayedflush, flush_time Flushing (closing) of tables after query is complete or every flush

Post: Implementing efficient counters with MySQL

…way – they convert read load to write load. When you would simply … deal with is log flushes. If you have innodb_flush_log_at_trx_commit…solutions you can use memcache + another mysql instance (or simply the database which …being very efficient. By doing these delayed updates you can not only reduce…

Post: How much overhead is caused by on disk temporary tables

…a lot of key writes which kill performance. The problem with writes is OS can delay writes only for …happens in practice. mysql> show global status like “key%”; +————————+———+ | Variable_name | Value | +————————+———+ | Key_blocks_not_flushed | 6516 | | …