yongkangc
54d07c55e5
feat(engine): add descriptive thread names for spawn_blocking tasks
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
2025-12-18 09:08:45 +00:00
..
2025-12-09 13:08:15 +00:00
2025-12-17 11:03:12 +00:00
2025-12-18 09:08:45 +00:00
2025-12-09 21:15:02 +00:00
2025-12-15 11:33:50 +00:00
2025-12-17 11:03:12 +00:00
2025-12-18 09:08:45 +00:00
2025-12-16 15:08:43 +00:00
2025-11-17 22:27:16 +00:00
2025-12-16 15:08:43 +00:00
2025-09-28 12:53:45 +02:00
2025-12-17 11:03:12 +00:00
2025-09-28 12:53:45 +02:00
2025-12-15 13:40:03 +00:00
2025-12-15 10:15:57 +00:00
2025-10-27 11:17:29 +01:00
2025-12-03 10:03:40 +00:00
2025-12-16 12:05:11 +00:00
2025-12-18 00:50:16 +00:00
2025-12-17 11:03:12 +00:00
2025-12-17 08:44:17 +00:00
2025-12-18 00:51:45 +00:00
2025-12-16 12:27:53 +00:00
2025-12-10 13:33:11 +00:00
2025-11-28 06:10:59 +00:00
2025-11-13 22:58:02 +00:00
2025-12-17 10:15:49 +00:00
2025-12-17 11:03:12 +00:00
2025-12-04 18:46:04 +00:00
2025-11-21 19:34:16 +00:00
2025-12-17 20:26:51 +00:00
2025-12-18 09:08:45 +00:00
2025-09-28 12:53:45 +02:00
2025-11-21 21:05:43 +00:00
2025-11-21 21:05:43 +00:00
2025-12-17 10:15:49 +00:00
2025-12-18 09:08:45 +00:00