May 25, 2012

Post: Troubleshooting MySQL Memory Usage

MySQL in wild. I also wanted to share some troubleshooting techniques I use. Plot Memory Usage First I would like to see MySQL memory

Post: Dynamic row format for MEMORY tables

… of eBay implemented true-VARCHAR support for MEMORY tables for MySQL 5.0. Although this patch did not … to be show-stopping, in the future we will work to remove them. The full usage notes, including … kB Here we can see that the performance and memory usage is about the same for both row formats. (…

Post: Wanted: Better memory profiling for MySQL

… some mysterous memory which I can’t really explain. It can be several Gigabytes accounting for over 50% of memory usage of MySQL in… implemented similary to SHOW STATUS – threads could account statistics for their own memory usage which is when merged together to show GLOBAL status – this…

Post: SHOW INNODB STATUS walk through

… through SHOW INNODB STATUS output, showing what you can learn from SHOW INNODB STATUS output and how to use this info to improve MySQLshows Buffer pool activity and memory usage. You can see total memory allocated by Innodb (sometimes it is higher than you anticipated), amount of memory

Post: How much memory Innodb locks really take ?

… efficient in terms of low resource usage as they are advertised. Lets start… `j` (`j`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 mysql> show table status like “sample” \G; *************************** 1. row … take half GB of memory, which is small fraction of memory used on serious …

Post: MySQL on Amazon RDS part 1: insert performance

… Relational Database Service (RDS) is a cloud-hosted MySQL solution. I’ve had some clients hitting performance …be dedicated to RDS, not shared with the general usage of AWS as you get on normal EC2 …the line is steady enough to show that we did not cross a dramatic memory-to-disk threshold, as …

Post: Shard-Query EC2 images available

…Due to memory requirements, the InnoDB versions are only available on 64 bit instances. MySQL will fail…There will be another blog post about the usage and performance of the splitter. It is… data from 1988 to 2010′; mysql> use ontime1; Database changed mysql> show table status like ‘ontime_fact’G …

Post: Predicting Performance improvements from memory increase

… typically do not expect to gain much by increasing the memory. This however have to be watched carefully. Performance does not… be increasing memory is helpful to solve this problem. If it is IO bound (high IO system utilization, low CPU usage) one… very IO bound showing 100% IO subsystem utilization on 5% of CPU usage ? This is the true challenge becomes because MySQL has no…

Comment: COUNT(*) vs COUNT(col)

…the PK column comment_ID with a unique index: mysql> show create table wp_comments\G *************************** 1. row *************************** Table: wp_comments…+———-+ 1 row in set (1.19 sec) mysql> and the buffer pool usage: Total memory allocated 589194920; in additional pool allocated …

Post: The new cool MySQL patch has landed! Check your queries performance!

… that table must be created on disk instead of in memory, in such case Disk_tmp_table will state that. Filesort… USAGE The final part are the InnoDB usage statistics. MySQL currently allows you to see many per-session statistics for operations with SHOW SESSION… entire buffer pool, because it could take a lot of memory to map all the pages. The inaccuracy grows with the…