June 19, 2013

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

… see how much overhead do on disk temporary tables cause compared to MEMORY tables. To have things comparable I used medium size table… default key_buffer_size which is not large enough to fit all key blocks from temporary table index, so we get a lot of key…> set global key_buffer_size=8000000; Query OK, 0 rows affected (0.03 sec) mysql> set global max_heap_table_size=1000000000; Query OK…

Post: How much memory can MySQL use in the worst case?

… possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections”. This was never true — … 100M user variable and a 100M lock key. Note how long it took to run these statements…s not something that’s worth worrying about much, in my opinion. I think it’s …

Post: Why you should ignore MySQL's key cache hit ratio

… second kind of time information you’re lacking is how much time each buffer hit or miss takes. If you approach application performance… how important those tables are to you, how big the indexes are on disk, and so on. Raise the key_buffer_size until, when the buffer is full, Key_reads/Uptime…

Post: Using Multiple Key Caches for MyISAM Scalability

…the sum key buffer size (4000000000 in this case) and actual index size: select concat(“SET GLOBAL “, t.table_schema,”_”,t.table_name,”.key_buffer_size=”,round… So going through complex or not multiple key cache creation exercise you probably wonder how much performance gains should you expect. In …

Post: What exactly is read_rnd_buffer_size

…but it does not really tell you how exactly read_rnd_buffer_size works as well as which layer…row pointers together with key value – which are offsets for MyISAM and primary key values for Innodb or…buffer in the sorted order – it can be pretty much sequential if you’re lucky. The read_rnd_buffer_size

Post: Predicting how long data load would take

…_insert_tree_size increase myisam_sort_buffer_size or key_buffer_size increase. Innodb typically needs large innodb_buffer_pool_size and large innodb_log_file_size to perform… 3600; du -sh” in the database data directory to see how much data is loaded per hour (assuming your Innodb tablespace did…

Post: How much memory Innodb locks really take ?

… lock table, located in the buffer pool where small record allocated …`j` varchar(255) default NULL, PRIMARY KEY (`i`), KEY `j` (`j`) ) ENGINE=InnoDB … locked row; Now lets see how much exclusinve locks take: mysql> begin; Query…1878960 6093 lock struct(s), heap size 503104 MySQL thread id 7429, …

Post: What to tune in MySQL Server after installation

…. Innodb tables are much more sensitive to buffer size compared to MyISAM. MyISAM may work kind of OK with default key_buffer_size even with large… larger) so you can see how much memory Innodb allocates for misc needs. innodb_log_file_size Very important for write intensive workloads…

Post: MySQL Server Memory Usage

buffers which are allocated at start and always where – these are key_buffer_size, innodb_buffer_pool_size, innodb_additional_memory_pool_size, innodb_log_buffer_size, query_cache_sizemuch as read_buffer_size, sort_buffer_size, read_rnd_buffer_size, tmp_table_size

Post: Troubleshooting MySQL Memory Usage

…use reasonable global buffers, such as innodb_buffer_size, key_buffer_size etc, you have reasonable amount of connections but yet MySQL takes much more memory than…server. There is no comparable variables of how many user variables are allocated (and how much memory they use). Memory Tables MEMORY …