Commit 243d0d4
src: add debug option to report large page stats
This adds the new option `HUGEPAGES` to `NODE_DEBUG_NATIVE` that
causes the code responsible for re-mapping to large pages to output
memory range and page count information to `stderr`.
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: #32331
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>1 parent 4d173ea commit 243d0d4Copy full SHA for 243d0d4
File tree
Expand file treeCollapse file tree
2 files changed
+22
-3
lines changedOpen diff view settings
Filter options
- src
- large_pages
Expand file treeCollapse file tree
2 files changed
+22
-3
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
| 43 | + |
43 | 44 | |
44 | 45 | |
45 | 46 | |
|
Collapse file
src/large_pages/node_large_page.cc
Copy file name to clipboardExpand all lines: src/large_pages/node_large_page.cc+21-3Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | 32 | |
| ||
97 | 98 | |
98 | 99 | |
99 | 100 | |
100 | | - |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
101 | 109 | |
102 | 110 | |
103 | 111 | |
104 | | - |
| 112 | + |
105 | 113 | |
106 | 114 | |
107 | 115 | |
| ||
152 | 160 | |
153 | 161 | |
154 | 162 | |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
155 | 168 | |
156 | | - |
| 169 | + |
| 170 | + |
| 171 | + |
157 | 172 | |
| 173 | + |
158 | 174 | |
159 | 175 | |
160 | 176 | |
161 | 177 | |
| 178 | + |
162 | 179 | |
163 | 180 | |
164 | 181 | |
| ||
261 | 278 | |
262 | 279 | |
263 | 280 | |
| 281 | + |
264 | 282 | |
265 | 283 | |
266 | 284 | |
|
0 commit comments