Commit ff478aa9 authored by Mikael Ronstrom's avatar Mikael Ronstrom

Reverted back to not using large page by default

parent 254baff2
...@@ -454,7 +454,7 @@ char* opt_secure_file_priv= 0; ...@@ -454,7 +454,7 @@ char* opt_secure_file_priv= 0;
my_bool opt_log_slow_admin_statements= 0; my_bool opt_log_slow_admin_statements= 0;
my_bool opt_log_slow_slave_statements= 0; my_bool opt_log_slow_slave_statements= 0;
my_bool lower_case_file_system= 0; my_bool lower_case_file_system= 0;
my_bool opt_large_pages= 1; my_bool opt_large_pages= 0;
my_bool opt_super_large_pages= 0; my_bool opt_super_large_pages= 0;
my_bool opt_myisam_use_mmap= 0; my_bool opt_myisam_use_mmap= 0;
uint opt_large_page_size= 0; uint opt_large_page_size= 0;
...@@ -3242,9 +3242,19 @@ static int init_common_variables(const char *conf_file_name, int argc, ...@@ -3242,9 +3242,19 @@ static int init_common_variables(const char *conf_file_name, int argc,
/* Initialize large page size */ /* Initialize large page size */
if (opt_large_pages && (opt_large_page_size= my_get_large_page_size())) if (opt_large_pages && (opt_large_page_size= my_get_large_page_size()))
{ {
DBUG_PRINT("info", ("Large page set, large_page_size = %d",
opt_large_page_size));
my_use_large_pages= 1; my_use_large_pages= 1;
my_large_page_size= opt_large_page_size; my_large_page_size= opt_large_page_size;
} }
else
{
opt_large_pages= 0;
/*
Either not configured to use large pages or Linux haven't
been compiled with large page support
*/
}
#endif /* HAVE_LARGE_PAGES */ #endif /* HAVE_LARGE_PAGES */
#ifdef HAVE_SOLARIS_LARGE_PAGES #ifdef HAVE_SOLARIS_LARGE_PAGES
#define LARGE_PAGESIZE (4*1024*1024) /* 4MB */ #define LARGE_PAGESIZE (4*1024*1024) /* 4MB */
...@@ -5867,12 +5877,13 @@ struct my_option my_long_options[] = ...@@ -5867,12 +5877,13 @@ struct my_option my_long_options[] =
#ifdef HAVE_LARGE_PAGE_OPTION #ifdef HAVE_LARGE_PAGE_OPTION
{"large-pages", OPT_ENABLE_LARGE_PAGES, "Enable support for large pages. \ {"large-pages", OPT_ENABLE_LARGE_PAGES, "Enable support for large pages. \
Disable with --skip-large-pages.", Disable with --skip-large-pages.",
(uchar**) &opt_large_pages, (uchar**) &opt_large_pages, 0, GET_BOOL, NO_ARG, 0, 0, 0, (uchar**) &opt_large_pages, (uchar**) &opt_large_pages, 0, GET_BOOL,
0, 0, 0}, NO_ARG, 0, 0, 1, 0, 1, 0},
{"super-large-pages", OPT_ENABLE_SUPER_LARGE_PAGES, "Enable support for super large pages. \ {"super-large-pages", OPT_ENABLE_SUPER_LARGE_PAGES,
"Enable support for super large pages. \
Disable with --skip-super-large-pages.", Disable with --skip-super-large-pages.",
(uchar**) &opt_super_large_pages, (uchar**) &opt_super_large_pages, 0, GET_BOOL, NO_ARG, 0, 0, 0, (uchar**) &opt_super_large_pages, (uchar**) &opt_super_large_pages, 0,
0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
#endif #endif
{"ignore-builtin-innodb", OPT_IGNORE_BUILTIN_INNODB , {"ignore-builtin-innodb", OPT_IGNORE_BUILTIN_INNODB ,
"Disable initialization of builtin InnoDB plugin", "Disable initialization of builtin InnoDB plugin",
...@@ -7600,7 +7611,7 @@ static int mysql_init_variables(void) ...@@ -7600,7 +7611,7 @@ static int mysql_init_variables(void)
mysqld_unix_port= opt_mysql_tmpdir= my_bind_addr_str= NullS; mysqld_unix_port= opt_mysql_tmpdir= my_bind_addr_str= NullS;
bzero((uchar*) &mysql_tmpdir_list, sizeof(mysql_tmpdir_list)); bzero((uchar*) &mysql_tmpdir_list, sizeof(mysql_tmpdir_list));
bzero((char *) &global_status_var, sizeof(global_status_var)); bzero((char *) &global_status_var, sizeof(global_status_var));
opt_large_pages= 1; opt_large_pages= 0;
opt_super_large_pages= 0; opt_super_large_pages= 0;
key_map_full.set_all(); key_map_full.set_all();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment