-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fine grained locks to enhance performance on large multi-cores (#160
) * Added parallelism to rocksdb in the bench. * Add a tcp-connections flag * Add db folder option * Use parking lock mutex * Use many locks, to avoid contention. Co-authored-by: George Danezis <george@danez.is>
- Loading branch information
Showing
6 changed files
with
66 additions
and
20 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
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
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
5b221aa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bench results
�[0m�[0m�[1m�[32m Finished�[0m release [optimized + debuginfo] target(s) in 2.68s
�[0m�[0m�[1m�[32m Running�[0m
target/release/bench
[2022-01-13T18:26:35Z INFO bench] Starting benchmark: OrdersAndCerts
[2022-01-13T18:26:35Z INFO bench] Preparing accounts.
[2022-01-13T18:26:35Z INFO bench] Open database on path: "/tmp/DB_C238090488CC5783C9A1007A61A0B5F4"
[2022-01-13T18:26:40Z INFO bench] Preparing transactions.
[2022-01-13T18:26:51Z INFO fastpay::network] Listening to Tcp traffic on 127.0.0.1:9555
[2022-01-13T18:26:52Z INFO bench] Number of TCP connections: 2
[2022-01-13T18:26:52Z INFO bench] Set max_in_flight to 500
[2022-01-13T18:26:52Z INFO bench] Sending requests.
[2022-01-13T18:26:52Z INFO fastpay::network] Sending Tcp requests to 127.0.0.1:9555
[2022-01-13T18:26:54Z INFO fastpay::network] 127.0.0.1:9555 has processed 5000 packets
[2022-01-13T18:26:56Z INFO fastpay::network] In flight 500 Remaining 35000
[2022-01-13T18:26:56Z INFO fastpay::network] 127.0.0.1:9555 has processed 10000 packets
[2022-01-13T18:26:58Z INFO fastpay::network] 127.0.0.1:9555 has processed 15000 packets
[2022-01-13T18:27:00Z INFO fastpay::network] In flight 500 Remaining 30000
[2022-01-13T18:27:00Z INFO fastpay::network] 127.0.0.1:9555 has processed 20000 packets
[2022-01-13T18:27:01Z INFO fastpay::network] 127.0.0.1:9555 has processed 25000 packets
[2022-01-13T18:27:02Z INFO fastpay::network] In flight 500 Remaining 25000
[2022-01-13T18:27:02Z INFO fastpay::network] 127.0.0.1:9555 has processed 30000 packets
[2022-01-13T18:27:04Z INFO fastpay::network] 127.0.0.1:9555 has processed 35000 packets
[2022-01-13T18:27:04Z INFO fastpay::network] In flight 500 Remaining 20000
[2022-01-13T18:27:05Z INFO fastpay::network] 127.0.0.1:9555 has processed 40000 packets
[2022-01-13T18:27:05Z INFO fastpay::network] In flight 500 Remaining 20000
[2022-01-13T18:27:06Z INFO fastpay::network] 127.0.0.1:9555 has processed 45000 packets
[2022-01-13T18:27:06Z INFO fastpay::network] In flight 500 Remaining 15000
[2022-01-13T18:27:07Z INFO fastpay::network] 127.0.0.1:9555 has processed 50000 packets
[2022-01-13T18:27:07Z INFO fastpay::network] In flight 500 Remaining 15000
[2022-01-13T18:27:08Z INFO fastpay::network] 127.0.0.1:9555 has processed 55000 packets
[2022-01-13T18:27:09Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-13T18:27:09Z INFO fastpay::network] 127.0.0.1:9555 has processed 60000 packets
[2022-01-13T18:27:10Z INFO fastpay::network] 127.0.0.1:9555 has processed 65000 packets
[2022-01-13T18:27:11Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-13T18:27:11Z INFO fastpay::network] 127.0.0.1:9555 has processed 70000 packets
[2022-01-13T18:27:12Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-13T18:27:12Z INFO fastpay::network] 127.0.0.1:9555 has processed 75000 packets
[2022-01-13T18:27:13Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-13T18:27:14Z INFO fastpay::network] 127.0.0.1:9555 has processed 80000 packets
[2022-01-13T18:27:14Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-13T18:27:14Z INFO bench] Received 80000 responses.
[2022-01-13T18:27:14Z WARN bench] Completed benchmark for OrdersAndCerts
Total time: 21670020us, items: 40000, tx/sec: 1845.8681625582255