Commit fcbd2d2
src: make --use-largepages a runtime option
Moves the option that instructs Node.js to-remap its static code to
large pages from a configure-time option to a runtime option. This
should make it easy to assess the performance impact of such a change
without having to custom-build.
Backport-PR-URL: #31063
PR-URL: #30954
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Co-authored-by: David Carlier <devnexen@gmail.com>1 parent 54635f5 commit fcbd2d2Copy full SHA for fcbd2d2
File tree
Expand file treeCollapse file tree
10 files changed
+101
-58
lines changedOpen diff view settings
Filter options
- doc
- api
- src
- large_pages
- test/parallel
Expand file treeCollapse file tree
10 files changed
+101
-58
lines changedOpen diff view settings
Collapse file
-33Lines changed: 0 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
398 | 398 | |
399 | 399 | |
400 | 400 | |
401 | | - |
402 | | - |
403 | | - |
404 | | - |
405 | | - |
406 | | - |
407 | | - |
408 | | - |
409 | | - |
410 | | - |
411 | | - |
412 | 401 | |
413 | 402 | |
414 | 403 | |
| ||
1041 | 1030 | |
1042 | 1031 | |
1043 | 1032 | |
1044 | | - |
1045 | | - |
1046 | | - |
1047 | | - |
1048 | | - |
1049 | | - |
1050 | | - |
1051 | | - |
1052 | | - |
1053 | | - |
1054 | | - |
1055 | | - |
1056 | | - |
1057 | | - |
1058 | | - |
1059 | | - |
1060 | | - |
1061 | | - |
1062 | | - |
1063 | | - |
1064 | | - |
1065 | | - |
1066 | 1033 | |
1067 | 1034 | |
1068 | 1035 | |
|
Collapse file
+17Lines changed: 17 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
833 | 833 | |
834 | 834 | |
835 | 835 | |
| 836 | + |
| 837 | + |
| 838 | + |
| 839 | + |
| 840 | + |
| 841 | + |
| 842 | + |
| 843 | + |
| 844 | + |
| 845 | + |
| 846 | + |
| 847 | + |
| 848 | + |
| 849 | + |
| 850 | + |
| 851 | + |
836 | 852 | |
837 | 853 | |
838 | 854 | |
| ||
1085 | 1101 | |
1086 | 1102 | |
1087 | 1103 | |
| 1104 | + |
1088 | 1105 | |
1089 | 1106 | |
1090 | 1107 | |
|
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
371 | 371 | |
372 | 372 | |
373 | 373 | |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
374 | 384 | |
375 | 385 | |
376 | 386 | |
|
Collapse file
+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
824 | 824 | |
825 | 825 | |
826 | 826 | |
827 | | - |
| 827 | + |
| 828 | + |
828 | 829 | |
829 | | - |
830 | | - |
831 | 830 | |
832 | 831 | |
833 | 832 | |
|
Collapse file
+2-4Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
302 | 302 | |
303 | 303 | |
304 | 304 | |
305 | | - |
306 | | - |
| 305 | + |
307 | 306 | |
308 | 307 | |
309 | 308 | |
310 | 309 | |
311 | 310 | |
312 | 311 | |
313 | 312 | |
314 | | - |
315 | | - |
| 313 | + |
316 | 314 | |
317 | 315 | |
318 | 316 | |
|
Collapse file
src/large_pages/node_large_page.cc
Copy file name to clipboardExpand all lines: src/large_pages/node_large_page.cc+11-8Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
| ||
308 | 308 | |
309 | 309 | |
310 | 310 | |
311 | | - |
| 311 | + |
312 | 312 | |
313 | 313 | |
314 | 314 | |
| ||
333 | 333 | |
334 | 334 | |
335 | 335 | |
336 | | - |
337 | | - |
338 | | - |
339 | 336 | |
340 | 337 | |
341 | 338 | |
| ||
352 | 349 | |
353 | 350 | |
354 | 351 | |
355 | | - |
| 352 | + |
356 | 353 | |
357 | 354 | |
358 | 355 | |
359 | 356 | |
360 | 357 | |
361 | 358 | |
| 359 | + |
362 | 360 | |
363 | 361 | |
364 | 362 | |
| ||
369 | 367 | |
370 | 368 | |
371 | 369 | |
| 370 | + |
372 | 371 | |
373 | 372 | |
374 | 373 | |
| ||
383 | 382 | |
384 | 383 | |
385 | 384 | |
| 385 | + |
386 | 386 | |
387 | 387 | |
388 | 388 | |
| ||
393 | 393 | |
394 | 394 | |
395 | 395 | |
| 396 | + |
396 | 397 | |
397 | 398 | |
398 | 399 | |
| ||
405 | 406 | |
406 | 407 | |
407 | 408 | |
| 409 | + |
408 | 410 | |
409 | 411 | |
| 412 | + |
410 | 413 | |
411 | 414 | |
412 | 415 | |
| ||
418 | 421 | |
419 | 422 | |
420 | 423 | |
421 | | - |
| 424 | + |
422 | 425 | |
423 | 426 | |
424 | 427 | |
425 | 428 | |
426 | | - |
| 429 | + |
427 | 430 | |
428 | 431 | |
429 | 432 | |
|
Collapse file
+20-10Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
67 | | - |
68 | 67 | |
69 | | - |
70 | 68 | |
71 | 69 | |
72 | 70 | |
| ||
887 | 885 | |
888 | 886 | |
889 | 887 | |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | | - |
895 | | - |
896 | | - |
897 | | - |
898 | 888 | |
899 | 889 | |
900 | 890 | |
| ||
914 | 904 | |
915 | 905 | |
916 | 906 | |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
| 911 | + |
| 912 | + |
| 913 | + |
| 914 | + |
| 915 | + |
| 916 | + |
| 917 | + |
| 918 | + |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
917 | 927 | |
918 | 928 | |
919 | 929 | |
|
Collapse file
+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
66 | 71 | |
67 | 72 | |
68 | 73 | |
| ||
745 | 750 | |
746 | 751 | |
747 | 752 | |
| 753 | + |
| 754 | + |
| 755 | + |
| 756 | + |
748 | 757 | |
749 | 758 | |
750 | 759 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
231 | 231 | |
232 | 232 | |
233 | 233 | |
| 234 | + |
234 | 235 | |
235 | 236 | |
236 | 237 | |
|
Collapse file
test/parallel/test-startup-large-pages.js
Copy file name to clipboard+29Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
0 commit comments