TimelyDataflow / TimelyDataflow/timely-dataflow

Consider providing a hook into communication thread spawning

Open
#237 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.