June 19, 2013

Post: Troubleshooting MySQL Memory Usage

…with MySQL because there are no clear resource …Cache Related Allocations There are cases when MySQL will allocate a lot of memory for table cachemysql> select sum(data_length+index_length) from information_schema.tables where engine=’memory’; +——————————-+ | sum(data_length+index

Post: ALTER TABLE: Creating Index by Sort and Buffer Pool Size

…which would look as following in terms of data and index size: mysql> show table status like “sbtest” \G *************************** 1. row *************************** … Still substantial. Sorting needs OS Cache It is not clearly seen from the graphs but with index built by sort enabled the …

Post: Getting real life query speeds with MySQL

To check for query performance improvements followed indexing/query changes or MySQL configuration changes our customers often decide to run the query… of page caches inside MySQL (key_buffer and innodb_buffer_pool_size) which can be cleared by MySQL restart. Even if you restart MySQL server…

Post: Distro Packages, Pre-built Binaries or Compile Your Own MySQL

… be as easy as stopping MySQL, updating symlinks or your my.cnf basedir, starting MySQL and running mysql_upgrade. Unlike package managers, you… alter MySQL‘s default behavior i.e. disabling and totally disallowing use of query cache or increasing maximum total number of indexes per…. This is true, my mistake as I have not been clear and I have made a few modifications to reflect those…

Post: Index Condition Pushdown in MySQL 5.6 and MariaDB 5.5 and its performance impact

… is aimed at a new optimizer enhancement Index Condition Pushdown (ICP). Its available in both MySQL 5.6 and MariaDB 5.5… is, and what is it aimed at. Index Condition Pushdown Traditional B-Tree index lookups have some limitations in cases such as range scans, where index parts after the part on which range condition is applied…

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

….ibd -rw-rw—-. 1 mysql mysql 98304 Feb 20 16:09 FTS_00000000000000ad_DELETED_CACHE.ibd -rw-rw—-. 1 mysql mysql 98304 Feb 20 16….ibd -rw-rw—-. 1 mysql mysql 98304 Feb 20 15:54 FTS_0000000000000114_DELETED_CACHE.ibd -rw-rw—-. 1 mysql mysql 98304 Feb 20 15…_S.innodb_ft_index_table is changing, so it’s pretty clear that I do actually have a FT index available. At the…

Post: How Percona does a MySQL Performance Audit

…| Aborted_clients | 205174 | | Aborted_connects | 29 | | Binlog_cache_disk_use | 0 | | Binlog_cache_use | 9630066 | | Bytes_received | 38563413074 | |… of the output, so it’s clear what I’m showing them. Then,… in the mysql.* tables, running mk-duplicate-key-checker to find redundant indexes, and …

Post: Multi Range Read (MRR) in MySQL 5.6 and MariaDB 5.5

index lookup (for non-index-only columns) involves, reading an index record, and then using the PK column value in the indexMySQL 5.5 and MySQL 5.6/MariaDB 5.5 This is another area of improvement in the optimizer, as it is clearly

Post: Caching could be the last thing you want to do

…designed to be “optional” (but clearly they weren’t). I …Cache management is really hard – have you planned for cache stampeding, or many cache…queries.  Run them through MySQL‘s EXPLAIN command. Do your …potentially) limiting further optimizations like covering indexes. Do you have information about…

Post: The two even more fundamental performance metrics

…to-mean ratio (a.k.a. the index of dispersion, an amazingly useful metric…a bit longer. This is common in MySQL servers I work with when they… to have something interesting: You can clearly see that there is a spike …happened here was something like a small cache stampede. The application sent a burst …