--use-largepages=mode


在启动时将 Node.js 静态代码重新映射到大内存页面。如果目标系统支持,则将导致 Node.js 静态代码移动到 2 MiB 页而不是 4 KiB 页。

¥Re-map the Node.js static code to large memory pages at startup. If supported on the target system, this will cause the Node.js static code to be moved onto 2 MiB pages instead of 4 KiB pages.

以下值对 mode 有效:

¥The following values are valid for mode:

  • off:不会尝试映射。这是默认值。

    ¥off: No mapping will be attempted. This is the default.

  • on:如果操作系统支持,则将尝试映射。映射失败将被忽略,并且将向标准错误打印消息。

    ¥on: If supported by the OS, mapping will be attempted. Failure to map will be ignored and a message will be printed to standard error.

  • silent:如果操作系统支持,则将尝试映射。映射失败将被忽略,并且不会被报告。

    ¥silent: If supported by the OS, mapping will be attempted. Failure to map will be ignored and will not be reported.