-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Large Page Support for Code Issue: 16198 #21064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
0a76c7e
fa0e324
fdb45cd
b7791c2
6631eea
843089c
077bc01
7bdd9fc
b91de5a
7ef956a
b02e7a9
2af82b1
cae9285
30114b6
39e1f0d
49cd0de
2dd9e8c
51d0f02
2f672ee
31504cc
f998c58
9f15cfc
d6de361
29c7d13
9828036
600cf54
bf259e2
f0a6dcb
4610793
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
… enable node_use_large_pages=true in configure and protect the node_large_page.cc and the link using node_use_large_pages
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -161,14 +161,24 @@ | |
| }, | ||
| }, | ||
| 'conditions': [ | ||
| ['OS!="aix" and node_shared=="false"', { | ||
| ['OS!="aix" and node_shared=="false" and node_use_large_pages=="true"', { | ||
| 'ldflags': [ | ||
| '-Wl,-T <(PRODUCT_DIR)/../../ld.script', | ||
| '-Wl,--whole-archive,<(obj_dir)/deps/uv/<(STATIC_LIB_PREFIX)' | ||
| 'uv<(STATIC_LIB_SUFFIX)', | ||
| '-Wl,--no-whole-archive', | ||
| ] | ||
| }], | ||
|
|
||
| ['OS!="aix" and node_shared=="false" and node_use_large_pages=="false"', { | ||
| 'ldflags': [ | ||
| '-Wl,-T <(PRODUCT_DIR)/../../ld.script', | ||
| '-Wl,--whole-archive,<(obj_dir)/deps/uv/<(STATIC_LIB_PREFIX)' | ||
| 'uv<(STATIC_LIB_SUFFIX)', | ||
| '-Wl,--no-whole-archive', | ||
| ], | ||
|
|
||
| }], | ||
|
|
||
| ], | ||
| }], | ||
| ], | ||
|
|
@@ -319,6 +329,5 @@ | |
| }, { | ||
| 'defines': [ 'HAVE_OPENSSL=0' ] | ||
| }], | ||
|
|
||
| ], | ||
| ] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Stylistic change, please undo. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4485,9 +4485,12 @@ int Start(int argc, char** argv) { | |
|
|
||
| CHECK_GT(argc, 0); | ||
|
|
||
| //#ifdef NODE_ENABLE_LARGE_CODE_PAGES | ||
| node::largepages::map_static_code_to_large_pages(); | ||
| //#endif | ||
| #ifdef NODE_ENABLE_LARGE_CODE_PAGES | ||
| if (node::largepages::isLargePagesEnabled()) { | ||
| // fprintf(stderr, "Mapping static code to large pages\n"); | ||
| node::largepages::map_static_code_to_large_pages(); | ||
| } | ||
| #endif | ||
|
|
||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason why we are doing it here, as opposed to the very beginning of everything, in main?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No particular reason. This was a place where other things were initialized like VTune support. |
||
| // Hack around with the argv pointer. Used for process.title = "blah". | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this on on other platforms than x86_64 Linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No only on x86_64 Linux, specifically Ubuntu 16.04 is what I have done most of my measurement and testing on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I figured as much. This needs an additional guard to ensure it's only activated when
OS=="linux" and target_arch="x64".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks fixed it.