-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Bathtor/pinning
Thread Pinning fixes #3
- Loading branch information
Showing
11 changed files
with
233 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "executor-performance" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
authors = ["Lars Kroll <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -10,8 +10,9 @@ time = "0.1" | |
|
||
[dependencies.rustc-test] | ||
version = "0.3" | ||
#features = ["asm_black_box"] # uncomment if you want to use --pre or --post | ||
# features = ["asm_black_box"] # uncomment if you want to use --pre or --post | ||
# otherwise the compiler will just optimise out the useless work they do | ||
# doesn't work on travis (stable, beta), though | ||
|
||
[dependencies.clap] | ||
version = "2" | ||
|
@@ -20,6 +21,6 @@ features = ["color"] | |
[dependencies.executors] | ||
path = "../executors/" | ||
default-features = true # to use job counting instead of timed global check set this to false and uncomment next line | ||
# features = ["threadpool-exec", "cb-channel-exec", "workstealing-exec"] | ||
# features = ["threadpool-exec", "cb-channel-exec", "workstealing-exec", "thread-pinning"] | ||
# or to use timed and no parking uncomment next line | ||
# features = ["threadpool-exec", "cb-channel-exec", "workstealing-exec", "ws-no-park", "ws-timed-fairness"] | ||
# features = ["threadpool-exec", "cb-channel-exec", "workstealing-exec", "ws-no-park", "ws-timed-fairness", "thread-pinning"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "executors" | |
# NB: When modifying, also modify: | ||
# 1. html_root_url in lib.rs | ||
# 2. number in readme (for breaking changes) | ||
version = "0.5.3" | ||
version = "0.6.0" | ||
authors = ["Lars Kroll <[email protected]>"] | ||
edition = "2018" | ||
description = "A collection of high-performance task executors." | ||
|
@@ -24,27 +24,30 @@ workstealing-exec = ["crossbeam-channel", "crossbeam-deque", "rand", "crossbeam- | |
defaults = ["num_cpus"] | ||
|
||
# In the workstealing executor, check the global queues every 1ms | ||
ws-timed-fairness = ["time"] | ||
ws-timed-fairness = [] #["time"] | ||
# Otherwise check the global queues every 100 jobs | ||
|
||
# In the workstealing executor, never park worker threads | ||
ws-no-park = [] | ||
|
||
thread-pinning = ["core_affinity"] | ||
|
||
|
||
[dependencies] | ||
log = "0.4" | ||
synchronoise = "1.0" | ||
arr_macro = "0.1.2" | ||
crossbeam-channel = {version = "0.3", optional = true} | ||
crossbeam-channel = {version = "0.4", optional = true} | ||
threadpool = {version = "1.7", optional = true} | ||
crossbeam-utils = {version = "0.6", optional = true} | ||
crossbeam-utils = {version = "0.7", optional = true} | ||
crossbeam-deque = {version = "0.7", optional = true} | ||
time = {version = "0.1", optional = true} | ||
#time = {version = "0.2", optional = true, default-featurs = false, features = ["std", ""]} | ||
rand = {version = "0.7", optional = true} | ||
num_cpus = {version = "1.10", optional = true} | ||
num_cpus = {version = "1.12", optional = true} | ||
core_affinity = {version = "0.5", optional = true} | ||
|
||
[dev-dependencies] | ||
env_logger = "0.6" | ||
env_logger = "0.7" | ||
version-sync = "0.8" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.