Index: mysql-5.7.4-m14/sql/mysqld.cc =================================================================== --- mysql-5.7.4-m14.orig/sql/mysqld.cc +++ mysql-5.7.4-m14/sql/mysqld.cc @@ -21,6 +21,7 @@ #include #include #include +#include #include "sql_priv.h" #include "unireg.h" @@ -4246,6 +4247,8 @@ int mysqld_main(int argc, char **argv) */ my_progname= argv[0]; + set_mempolicy(MPOL_INTERLEAVE, NULL, 0); + #ifndef _WIN32 #ifdef WITH_PERFSCHEMA_STORAGE_ENGINE pre_initialize_performance_schema(); @@ -4687,6 +4690,7 @@ int mysqld_main(int argc, char **argv) Service.SetRunning(); #endif + set_mempolicy(MPOL_DEFAULT, NULL, 0); /* Signal threads waiting for server to be started */ mysql_mutex_lock(&LOCK_server_started);