Just installed a new 24 core server and it is noticeably slower when doing truncates and drops. Example:
$ mysql -u root lmcdental_test2
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 58
Server version: 5.6.23-72.1 Percona Server (GPL), Release 72.1, Revision 0503478
Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set profiling=1;
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> drop database lmcdental_test6;
Query OK, 66 rows affected (6.65 sec)
mysql> show profile for query 1;
+----------------------+----------+
| Status | Duration |
+----------------------+----------+
| starting | 0.000022 |
| checking permissions | 0.000548 |
| Opening tables | 0.000017 |
| System lock | 6.651106 |
| Opening tables | 0.000061 |
| System lock | 0.000041 |
| Opening tables | 0.000571 |
| System lock | 0.000668 |
| query end | 0.000009 |
| closing tables | 0.000044 |
| freeing items | 0.000025 |
| cleaning up | 0.000043 |
+----------------------+----------+
12 rows in set, 1 warning (0.00 sec)
Please notice the "System lock". This is running Ubuntu 14.04LTS.
The same database on a 16 core system is almost instantaneous. Any ideas on how to mitigate the 6.65 second system lock?
Thank you.