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@7f68e14

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
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,20 @@
6868
}, {
6969
'v8_enable_system_instrumentation': 0,
7070
}],
71+
['OS=="linux"', {
72+
# Sets -dV8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION.
73+
#
74+
# This flag speeds up the performance of fork/execve on Linux systems for
75+
# embedders which use it (like Node.js). It works by marking the pages that
76+
# V8 allocates as MADV_DONTFORK. Without MADV_DONTFORK, the Linux kernel
77+
# spends a long time manipulating page mappings on fork and exec which the
78+
# child process doesn't generally need to access.
79+
#
80+
# See v8:7381 for more details.
81+
'v8_enable_private_mapping_fork_optimization': 1,
82+
}, {
83+
'v8_enable_private_mapping_fork_optimization': 0,
84+
}],
7185
],
7286
'is_debug%': 0,
7387

@@ -310,6 +324,9 @@
310324
['v8_enable_hugepage==1', {
311325
'defines': ['ENABLE_HUGEPAGE',],
312326
}],
327+
['v8_enable_private_mapping_fork_optimization==1', {
328+
'defines': ['V8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION'],
329+
}],
313330
['v8_enable_vtunejit==1', {
314331
'defines': ['ENABLE_VTUNE_JIT_INTERFACE',],
315332
}],

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.