From d6175b35ad3ad5c8bf0a6520098365ea8234420f Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Thu, 8 Aug 2024 11:50:33 +0200 Subject: [PATCH] Revert "deps: disable io_uring support in libuv by default" This reverts commit 42e659cb9d9425f76dbe9b57a437005508c0933d. PR-URL: https://github.com/nodejs/node/pull/55114 Refs: https://github.com/libuv/libuv/releases/tag/v1.49.0 Refs: https://github.com/libuv/libuv/releases/tag/v1.49.1 Reviewed-By: Rafael Gonzaga Reviewed-By: Luigi Pinca --- doc/api/cli.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index f37684d21f517c..1a9d61138e23f1 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -3467,23 +3467,6 @@ threadpool by setting the `'UV_THREADPOOL_SIZE'` environment variable to a value greater than `4` (its current default value). For more information, see the [libuv threadpool documentation][]. -### `UV_USE_IO_URING=value` - -Enable or disable libuv's use of `io_uring` on supported platforms. - -On supported platforms, `io_uring` can significantly improve the performance of -various asynchronous I/O operations. - -`io_uring` is disabled by default due to security concerns. When `io_uring` -is enabled, applications must not change the user identity of the process at -runtime. In this case, JavaScript functions such as [`process.setuid()`][] are -unavailable, and native addons must not invoke system functions such as -[`setuid(2)`][]. - -This environment variable is implemented by a dependency of Node.js and may be -removed in future versions of Node.js. No stability guarantees are provided for -the behavior of this environment variable. - ## Useful V8 options V8 has its own set of CLI options. Any V8 CLI option that is provided to `node` @@ -3644,8 +3627,6 @@ node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12 [`net.getDefaultAutoSelectFamilyAttemptTimeout()`]: net.md#netgetdefaultautoselectfamilyattempttimeout [`node:sqlite`]: sqlite.md [`process.setUncaughtExceptionCaptureCallback()`]: process.md#processsetuncaughtexceptioncapturecallbackfn -[`process.setuid()`]: process.md#processsetuidid -[`setuid(2)`]: https://man7.org/linux/man-pages/man2/setuid.2.html [`tls.DEFAULT_MAX_VERSION`]: tls.md#tlsdefault_max_version [`tls.DEFAULT_MIN_VERSION`]: tls.md#tlsdefault_min_version [`unhandledRejection`]: process.md#event-unhandledrejection