Experiment with pinning worker threads to physical CPU threads
See original GitHub issueIntegrate the following library https://github.com/OpenHFT/Java-Thread-Affinity (most likely Linux only) and measure performance difference on a purely CPU bound benchmark (WorkStealingBenchmark.alloc
might be a good candidate, or ParallelBenchmark
).
I doubt that this issue has a clear road to being shipped as part of a Cats Effect release, but it would be a cool experiment nonetheless.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Experiment with setting thread affinity in worker threads
On Linux we have sched_setaffinity , which provides hard affinity (threads run only on the specified CPUs, and the call fails if that...
Read more >Grokking PyTorch Intel CPU performance from first principles
Pinning threads to cores on the same socket helps maintain locality of memory access. In this example, we'll pin to the physical cores...
Read more >KNOWN ISSUE: 'Worker Thread' Count Default Too High ...
We are working on an issue where the 'Worker Thread' count defaults to a value that may be too high for some PCs,...
Read more >CPU pinning Java threads with jstack and taskset
Here is an experiment into pinning the main application thread to a CPU core to see if that prevents loss of performance when...
Read more >Physical Experimentation with Prefetching Helper Threads on ...
require construction of efficient helper threads and processor-level support to allow multiple threads to run concurrently.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Affinity pool is lives in akka now, super cool to see it lands in ce too
Very cool! A worthy experiment imo