GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — child_process: improve spawn performance on Linux · nodejs/node@4f4d0b8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/v8_gypfiles
    • features.gypi
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/v8_gypfiles/features.gypi‎

Copy file name to clipboardExpand all lines: tools/v8_gypfiles/features.gypi
+18-1Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,21 @@
7272
'v8_enable_etw_stack_walking': 1,
7373
}, {
7474
'v8_enable_etw_stack_walking': 0,
75-
}]
75+
}],
76+
['OS=="linux"', {
77+
# Sets -dV8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION.
78+
#
79+
# This flag speeds up the performance of fork/execve on Linux systems for
80+
# embedders which use it (like Node.js). It works by marking the pages that
81+
# V8 allocates as MADV_DONTFORK. Without MADV_DONTFORK, the Linux kernel
82+
# spends a long time manipulating page mappings on fork and exec which the
83+
# child process doesn't generally need to access.
84+
#
85+
# See v8:7381 for more details.
86+
'v8_enable_private_mapping_fork_optimization': 1,
87+
}, {
88+
'v8_enable_private_mapping_fork_optimization': 0,
89+
}],
7690
],
7791
'is_debug%': 0,
7892

@@ -320,6 +334,9 @@
320334
['v8_enable_hugepage==1', {
321335
'defines': ['ENABLE_HUGEPAGE',],
322336
}],
337+
['v8_enable_private_mapping_fork_optimization==1', {
338+
'defines': ['V8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION'],
339+
}],
323340
['v8_enable_vtunejit==1', {
324341
'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
325342
}],

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.