分片的 spawn_blocking 队列可能会在负载情况下使后续分片处于等待状态
作者: darkraider01创建于 2026年9月29日更新于 2026年9月30日
标签C-bugA-tokioM-runtime
const JOBS: usize = 4_400; const WORK: Duration = Duration::from_micros(500); const ARRIVAL: Duration = Duration::from_nanos(454_545); // About 110% of what that worker could handle. I measured from just before `spawn_blocking` to the start of the closure. Four release runs of the small reproducer below gave:
内容来源: tokio-rs/tokio