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
96d4b228
Commit
96d4b228
authored
Apr 06, 2020
by
Daniel Black
Committed by
Sergey Vojtovich
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
my_large_pages: simplify solaris constants
parent
7b7a9161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
mysys/my_largepage.c
mysys/my_largepage.c
+2
-9
No files found.
mysys/my_largepage.c
View file @
96d4b228
...
...
@@ -213,8 +213,6 @@ int my_init_large_pages(my_bool super_large_pages)
#endif
#ifdef HAVE_SOLARIS_LARGE_PAGES
#define LARGE_PAGESIZE (4*1024*1024)
/* 4MB */
#define SUPER_LARGE_PAGESIZE (256*1024*1024)
/* 256MB */
/*
tell the kernel that we want to use 4/256MB page for heap storage
and also for the stack. We use 4 MByte as default and if the
...
...
@@ -226,14 +224,9 @@ int my_init_large_pages(my_bool super_large_pages)
desired page sizes.
*/
int
nelem
=
0
;
size_t
max_desired_page_size
;
size_t
max_page_size
=
0
;
if
(
super_large_pages
)
max_desired_page_size
=
SUPER_LARGE_PAGESIZE
;
else
max_desired_page_size
=
LARGE_PAGESIZE
;
size_t
max_desired_page_size
=
(
super_large_pages
?
256
:
4
)
*
1024
*
1024
;
size_t
max_page_size
=
my_next_large_page_size
(
max_desired_page_size
,
&
nelem
);
max_page_size
=
my_next_large_page_size
(
max_desired_page_size
,
&
nelem
);
if
(
max_page_size
>
0
)
{
struct
memcntl_mha
mpss
;
...
...
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