Skip to content
/ Zorro Public

This is Zorro, the implementation of a distributed threadpool with work stealing enabled

License

Notifications You must be signed in to change notification settings

YukunJ/Zorro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zorro Logo


license os

Zorro

This is Zorro, the implementation of a distributed threadpool with work stealing enabled. It builds on Linux OS and use C++17 as the programming language.

It aims to separate parallel task definition and execution. This should ease users' experience of executing multiple tasks in parallel by automatically managing the scheduling and work balancing while squeezing all the parallel performance out of the underlying hardware.

Authors

Yukun Jiang (yukunj) & Leo Guo (jiongtig)


Key Challenge

Firstly, load balancing is hard. Without knowing the exact workload of each task, the workload balancing has to been dynamically on the fly. This is why we need the work-stealing policy.

Secondly, with a distributed work queue, synchronization is challenging. The more workers in the threadpool, the higher the contention for critical data structure.


System Diagram

The final version, which is thread-local fine-grained locking queue with work stealing policy enabled, is illustrated in the diagram below for reference.

System Architecture


Performance Benchmark

We benchmark our systems on PSC super computer cluster ranging thread from 2, 4, 8, ... to 128, and on various workload.

System Architecture

System Architecture

System Architecture

System Architecture

System Architecture


Schedule

  • Week1: Read related literature and setup repo build with base interface
  • Week2: Build the global work queue version
  • Week3: Build the distributed thread-local work queue version
  • Week4: Enable work-stealing policy to enhance work balance
  • Week5: Wrap up the project and prepare report & poster

About

This is Zorro, the implementation of a distributed threadpool with work stealing enabled

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published