Bug #69316 | Drop/Alter table takes much longer time in 5.6 than 5.5 | ||
---|---|---|---|
Submitted: | 24 May 2013 23:50 | Modified: | 5 Jul 2013 15:56 |
Reporter: | Yoshinori Matsunobu (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S5 (Performance) |
Version: | 5.6.11 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | innodb |
[24 May 2013 23:50]
Yoshinori Matsunobu
[13 Jun 2013 13:28]
MySQL Verification Team
I also noticed this in my tests with innodb_buffer_pool_size=512M drop table if exists t1; create table t1(a int primary key)engine=innodb; InnoDB: 100000 loops of drop/create with datadir on hard disk and ramdisk ----------------------------------- time in seconds Version , hdd , ramdisk ----------------------------------- 4.1.25-pro-gpl-nt, 233 , 66 5.0.96-community , 257 , 80 5.1.70-community , 261 , 84 5.5.32 , 257 , 83 5.6.12 , 745 , 242 5.7.2-m12 , 914 , 246 The buf_LRU_drop_page_hash_for_tablespace in 5.7.2 on ramdisk took 81 seconds: mysqld.exe!buf_LRU_drop_page_hash_for_tablespace - buf0lru.cc mysqld.exe!buf_LRU_flush_or_remove_pages+0x4a - buf0lru.cc:886 mysqld.exe!fil_delete_tablespace+0x14d - fil0fil.cc:2659 mysqld.exe!row_drop_table_for_mysql+0xb98 - row0mysql.cc:4544 mysqld.exe!ha_innobase::delete_table+0x250 - ha_innodb.cc:9737 mysqld.exe!ha_delete_table+0xb6 - handler.cc:2364 mysqld.exe!mysql_rm_table_no_locks+0x566 - sql_table.cc:2443 mysqld.exe!mysql_rm_table+0x1d6 - sql_table.cc:2129 mysqld.exe!mysql_execute_command+0x1af6 - sql_parse.cc:3448 mysqld.exe!mysql_parse+0x1e8 - sql_parse.cc:5227 mysqld.exe!dispatch_command+0x6e1 - sql_parse.cc:1327 mysqld.exe!do_command+0x147 - sql_parse.cc:1026 mysqld.exe!do_handle_one_connection+0x125 - sql_connect.cc:983 mysqld.exe!handle_one_connection+0x29 - sql_connect.cc:899 mysqld.exe!pfs_spawn_thread+0x160 - pfs.cc:1924 mysqld.exe!pthread_start+0x1d - my_winthread.c:61 mysqld.exe!callthreadstartex+0x16 - threadex.c:314 mysqld.exe!threadstartex+0x7e - threadex.c:292
[13 Jun 2013 13:34]
MySQL Verification Team
minimal php script to time loops...
Attachment: ddl.php (application/octet-stream, text), 558 bytes.
[5 Jul 2013 15:56]
Bugs System
Added a changelog entry for 5.6.13, 5.7.2: "A code regression introduced in MySQL 5.6 negatively impacted "DROP TABLE" and "ALTER TABLE" performance."
[23 Aug 2013 16:48]
MySQL Verification Team
See http://bugs.mysql.com/bug.php?id=70139 .