TimelyDataflow / TimelyDataflow/timely-dataflow
Consider providing a hook into communication thread spawning
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.6k
- Forks
- 293
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 4
Description
For example, this would enable pinning communication threads.
This could be done by allowing customisation of how comm threads are spawned by modifying a Configuration::Cluster (similarly to how comm logging is set-up).
Box::new(|index, sender, _, loop_fn| {
::std::thread::Builder::new()
.name(
if sender { format!("send thread {}", index) }
else { format!("send thread {}", index) })
.spawn(move || {
pin_to_core(base + index);
loop_fn.start()
})
}),
Other designs are possible/desirable.
https://github.com/TimelyDataflow/timely-dataflow/pull/203 has an early attempt.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Configuration::Cluster and the existing communication-thread logging setup, then compare the early attempt in pull request #203. Determine a suitable hook for customizing communication-thread spawning, including the callback inputs and thread startup behavior. Done means the design is integrated without breaking existing spawning behavior and supports the proposed thread pinning use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100