You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launching the node binary (when compiled with large pages support) with the --use-largepages flag enabled (either on or silent) may lead to this bug occurring.
What is the expected behavior?
Under Linux on a system where transparent hugepages are enabled (either in mode always or madvise), node launched with large pages enabled should make use of that system feature.
What do you see instead?
When --use-largepages=on (requesting non-silent operation), the following output is displayed when node is launched:
Large pages are not enabled.
Welcome to Node.js v16.0.0-pre.
Type ".help" for more information.
>
The state of transparent hugetable support can be examined on a running Linux system from a terminal by running the following command (with example output included):
$ cat /sys/kernel/mm/transparent_hugepage/enabled
always [madvise] never
The text was updated successfully, but these errors were encountered:
There was an unexpected and hard-to-spot issue here:
the /sys/kernel/mm/transparent_hugepage/enabled file contains three
entries, and the std::ifstream reader was reading two values on each
loop iteration, resulting in incorrect behaviour.
Fixes: #37064
PR-URL: #37065
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
There was an unexpected and hard-to-spot issue here:
the /sys/kernel/mm/transparent_hugepage/enabled file contains three
entries, and the std::ifstream reader was reading two values on each
loop iteration, resulting in incorrect behaviour.
Fixes: #37064
PR-URL: #37065
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
What steps will reproduce the bug?
Launching the
node
binary (when compiled with large pages support) with the--use-largepages
flag enabled (eitheron
orsilent
) may lead to this bug occurring.What is the expected behavior?
Under Linux on a system where transparent hugepages are enabled (either in mode
always
ormadvise
),node
launched with large pages enabled should make use of that system feature.What do you see instead?
When
--use-largepages=on
(requesting non-silent operation), the following output is displayed whennode
is launched:The state of transparent hugetable support can be examined on a running Linux system from a terminal by running the following command (with example output included):
The text was updated successfully, but these errors were encountered: