Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d2e89004
Commit
d2e89004
authored
Feb 21, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted back to not using large page by default
parent
fd5339fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
sql/mysqld.cc
sql/mysqld.cc
+18
-7
No files found.
sql/mysqld.cc
View file @
d2e89004
...
...
@@ -454,7 +454,7 @@ char* opt_secure_file_priv= 0;
my_bool
opt_log_slow_admin_statements
=
0
;
my_bool
opt_log_slow_slave_statements
=
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_myisam_use_mmap
=
0
;
uint
opt_large_page_size
=
0
;
...
...
@@ -3242,9 +3242,19 @@ static int init_common_variables(const char *conf_file_name, int argc,
/* Initialize 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_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 */
#ifdef HAVE_SOLARIS_LARGE_PAGES
#define LARGE_PAGESIZE (4*1024*1024)
/* 4MB */
...
...
@@ -5867,12 +5877,13 @@ struct my_option my_long_options[] =
#ifdef HAVE_LARGE_PAGE_OPTION
{
"large-pages"
,
OPT_ENABLE_LARGE_PAGES
,
"Enable support for large pages. \
Disable with --skip-large-pages."
,
(
uchar
**
)
&
opt_large_pages
,
(
uchar
**
)
&
opt_large_pages
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"super-large-pages"
,
OPT_ENABLE_SUPER_LARGE_PAGES
,
"Enable support for super large pages. \
(
uchar
**
)
&
opt_large_pages
,
(
uchar
**
)
&
opt_large_pages
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
1
,
0
,
1
,
0
},
{
"super-large-pages"
,
OPT_ENABLE_SUPER_LARGE_PAGES
,
"Enable support for 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
,
0
,
0
,
0
},
(
uchar
**
)
&
opt_super_large_pages
,
(
uchar
**
)
&
opt_super_large_pages
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
1
,
0
,
1
,
0
},
#endif
{
"ignore-builtin-innodb"
,
OPT_IGNORE_BUILTIN_INNODB
,
"Disable initialization of builtin InnoDB plugin"
,
...
...
@@ -7600,7 +7611,7 @@ static int mysql_init_variables(void)
mysqld_unix_port
=
opt_mysql_tmpdir
=
my_bind_addr_str
=
NullS
;
bzero
((
uchar
*
)
&
mysql_tmpdir_list
,
sizeof
(
mysql_tmpdir_list
));
bzero
((
char
*
)
&
global_status_var
,
sizeof
(
global_status_var
));
opt_large_pages
=
1
;
opt_large_pages
=
0
;
opt_super_large_pages
=
0
;
key_map_full
.
set_all
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment