Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions benchmark/run-nexmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if ! cores=$(nproc 2>/dev/null) || test $cores -gt 16; then
cores=16
fi
run=:
storage=false
parse=false

# Feldera SQL options.
Expand Down Expand Up @@ -114,6 +115,9 @@ do
--partitions)
nextarg=partitions
;;
--storage)
storage=:
;;
--project=*)
project=${arg#--project=}
;;
Expand Down Expand Up @@ -508,6 +512,7 @@ case $runner:$language in
--poller-threads 10 \
--input-topic-suffix="-$partitions-$events" \
--csv results.csv \
$(if $storage; then printf "%s" --storage; fi) \
--query $(if test $query = all; then echo all; else echo q$query; fi)
;;

Expand Down
12 changes: 6 additions & 6 deletions crates/dbsp/src/circuit/circuit_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3003,11 +3003,11 @@ where
let exchange_id = runtime.sequence_next(worker_index);
let exchange = Exchange::with_runtime(&runtime, exchange_id);

let unparker = Runtime::parker().with(|parker| parker.unparker().clone());
exchange.register_sender_callback(worker_index, move || unparker.unpark());
let thread = std::thread::current();
exchange.register_sender_callback(worker_index, move || thread.unpark());

let unparker = Runtime::parker().with(|parker| parker.unparker().clone());
exchange.register_receiver_callback(worker_index, move || unparker.unpark());
let thread = std::thread::current();
exchange.register_receiver_callback(worker_index, move || thread.unpark());

let termination_check = move || {
// Send local fixed point status to all peers.
Expand All @@ -3016,7 +3016,7 @@ where
if Runtime::kill_in_progress() {
return Err(SchedulerError::Killed);
}
Runtime::parker().with(|parker| parker.park());
std::thread::park();
}
// Receive the fixed point status of each peer, compute global fixedpoint
// state as a logical and of all peer states.
Expand All @@ -3027,7 +3027,7 @@ where
return Err(SchedulerError::Killed);
}
// Sleep if other threads are still working.
Runtime::parker().with(|parker| parker.park());
std::thread::park();
}
Ok(global_fixedpoint)
};
Expand Down
4 changes: 1 addition & 3 deletions crates/dbsp/src/circuit/dbsp_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,7 @@ impl Runtime {
}
// Nothing to do: do some housekeeping and relinquish the CPU if there's none
// left.
Err(TryRecvError::Empty) => {
Runtime::parker().with(|parker| parker.park());
}
Err(TryRecvError::Empty) => std::thread::park(),
Err(_) => {
break;
}
Expand Down
Loading