mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
Closes #20430 by using prctl/pthread_setname_np to set thread names at runtime inside spawn_blocking tasks, keeping Tokio's thread pooling while making tasks identifiable in profilers like Samply. Thread names (kept under 15-char Linux limit): - reth-multiproof: Multi-proof computation task - reth-sparse: Sparse trie task - reth-prewarm: Prewarm task coordinator - reth-prewarm-w: Prewarm worker threads - reth-tx-conv: Transaction conversion task - reth-tx-order: Transaction ordering task - reth-stor-proof: Storage proof workers - reth-acct-proof: Account proof workers Changes: - Add spawn_blocking_named() to WorkloadExecutor that uses set_thread_name() - Add set_thread_name() helper using prctl (Linux) / pthread_setname_np (macOS) - Update all engine blocking tasks to use named threads - Update ProofWorkerHandle to set thread names inside spawn_blocking