From 187a2146a7692440cf6a83efb5fbcc886b66a6df Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 3 Feb 2026 16:23:30 +0100 Subject: [PATCH] runtime: shorten default thread name to fit in Linux limit (#7880) Linux thread names are truncated at 15 characters. Currently, Tokio threads show up as "tokio-runtime-w", whereas shortening "runtime" to "rt" would make the thread name perfectly fit in the 15 character limit. --- tokio/src/runtime/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/builder.rs b/tokio/src/runtime/builder.rs index b5f23e9c5..71be3de32 100644 --- a/tokio/src/runtime/builder.rs +++ b/tokio/src/runtime/builder.rs @@ -288,7 +288,7 @@ impl Builder { max_blocking_threads: 512, // Default thread name - thread_name: std::sync::Arc::new(|| "tokio-runtime-worker".into()), + thread_name: std::sync::Arc::new(|| "tokio-rt-worker".into()), // Do not set a stack size by default thread_stack_size: None,