Skip to content

src: add option to set cpu affinity of mainthread

Add runtime option '--set-mainthread-cpu-affinity' to pin the mainthread to the current running cpu before entering event loop. This feature is implemented on Linux OS currently.

Enabling this option will benefit node.js applications running on heavy-workload system and can increase performance for several node.js benchmarks, ex., several cases in benchmark/vm/ improved by 40%.

Merge request reports

Loading