forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rocksdb] more config updates to improve write throughput (MystenLabs…
…#10952) ## Description ### Blob storage for transactions and effects Sui transactions and effects are 300B and 600B minimum respectively. Narwhal payload minimum size is similar to Sui transactions. Narwhal headers and certificates are 2KB ~ 3KB with 100 nodes. Currently they are stored as values in sst files, which are read and often written again each time the file is compacted, while they are not changing. This behavior can be optimized by using rocksdb blob storage: https://rocksdb.org/blog/2021/05/26/integrated-blob-db.html. From the blog post above, it seems the additional lookup cost is minimal. Also, transactions and effects are accessed most often when they are recent, when they are still in memtables. ### Increase block size to 16KiB Default block size is increased from 4KiB to 16KiB, which seems to be the production setting in Facebook. This should help reduce metadata size, but may increase read amplifications and block cache load. For tables optimized for point lookup, block size is still 4KiB. ### Other changes Default write buffer and base level target sizes are restored to default values, i.e. what they were before 3ca4d30. They are increased only for tables optimized for write throughput. ## Test Plan Verified on private testnet, with shared counter and batch workloads. --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
Showing
6 changed files
with
197 additions
and
110 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
Oops, something went wrong.