Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/worker/executor: batch CheckTx transactions #4131

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

ptrus
Copy link
Member

@ptrus ptrus commented Jul 12, 2021

Fixes: #2548

TODO:

@ptrus ptrus force-pushed the ptrus/feature/checktx-queue branch 5 times, most recently from d721f15 to f8c2679 Compare July 13, 2021 07:23
@codecov
Copy link

codecov bot commented Jul 13, 2021

Codecov Report

Merging #4131 (af41f8d) into master (38fd6c5) will decrease coverage by 0.42%.
The diff coverage is 72.58%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4131      +/-   ##
==========================================
- Coverage   69.24%   68.81%   -0.43%     
==========================================
  Files         410      411       +1     
  Lines       47250    47363     +113     
==========================================
- Hits        32716    32593     -123     
- Misses      10508    10760     +252     
+ Partials     4026     4010      -16     
Impacted Files Coverage Δ
go/runtime/client/client.go 67.30% <40.00%> (-0.18%) ⬇️
go/worker/compute/executor/committee/node.go 65.93% <61.11%> (-0.13%) ⬇️
...untime/scheduling/simple/orderedmap/ordered_map.go 68.96% <68.96%> (ø)
go/runtime/host/helpers.go 70.21% <75.00%> (+2.21%) ⬆️
go/worker/compute/executor/tests/tester.go 90.21% <94.44%> (+0.98%) ⬆️
go/runtime/client/tests/tester.go 100.00% <100.00%> (ø)
go/worker/compute/executor/committee/batch.go 69.23% <100.00%> (-14.11%) ⬇️
go/worker/compute/executor/init.go 100.00% <100.00%> (ø)
go/worker/compute/executor/worker.go 89.13% <100.00%> (+0.24%) ⬆️
...nsensus/tendermint/apps/keymanager/transactions.go 0.00% <0.00%> (-52.95%) ⬇️
... and 58 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38fd6c5...af41f8d. Read the comment docs.

@ptrus ptrus force-pushed the ptrus/feature/checktx-queue branch 2 times, most recently from 7594f3f to 1f5d55a Compare July 14, 2021 14:03
@ptrus ptrus added the s:ready-ci Status: ready for CI label Jul 14, 2021
@ptrus ptrus marked this pull request as ready for review July 14, 2021 15:35
Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any performance impact?

@@ -44,5 +44,6 @@ func (ub *unresolvedBatch) resolve(ctx context.Context, sb storage.Backend) (tra
if err != nil {
return nil, fmt.Errorf("failed to fetch inputs from storage: %w", err)
}
ub.batch = batch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

go/worker/compute/executor/committee/node.go Show resolved Hide resolved
go/worker/compute/executor/committee/node.go Outdated Show resolved Hide resolved
go/worker/compute/executor/committee/node.go Show resolved Hide resolved
go/worker/compute/executor/committee/node.go Outdated Show resolved Hide resolved
go/worker/compute/executor/tests/tester.go Show resolved Hide resolved
@ptrus
Copy link
Member Author

ptrus commented Jul 15, 2021

Is there any performance impact?

Yeah the single-machine accounts CI benchmarks (from oasis-sdk CI) goes from ~35 to ~150, and the new bottleneck is serially fetching accounts from storage via host (oasisprotocol/oasis-sdk#278). Also hitting the dispatchers BACKLOG_SIZE limit with large number of concurrent transactions is gone.

@ptrus ptrus force-pushed the ptrus/feature/checktx-queue branch 3 times, most recently from 09251fa to cbaa6ef Compare July 16, 2021 09:44
@ptrus ptrus force-pushed the ptrus/feature/checktx-queue branch from cbaa6ef to af41f8d Compare July 16, 2021 09:47
@ptrus ptrus merged commit fd9abd9 into master Jul 19, 2021
@ptrus ptrus deleted the ptrus/feature/checktx-queue branch July 19, 2021 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:ready-ci Status: ready for CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go/worker/txnscheduler: CheckTx should use a queue
2 participants