rocksdb-statistics
A small snippet I wrote to generate plots for my thesis on Auto-tuning RocksDB
Parses db_bench.log files outputted from RocksDB Outputs CSV-files and pgfplot of write, compaction and stall statistics.
Supported statistics:
- interval_writes
- cumulative_writes
- interval_stall
- cumulative_stall
- interval_compaction
- cumulative_compaction
Usage
pip install rocksdb-statistics
rocksdb-statistics db_bench.log
Parsed stats are outputted to output/ in the current directory
Alternatively specify what stats to output
rocksdb-statistics db_bench.log --statistics "interval_writes,interval_compaction"
Example
Run db_bench with statistics using stats_interval_seconds to retrieve stats for each second. Make sure to set stats_per_interval to make db_bench output ** DB stats ** for each interval.
./db_bench --benchmarks="fillrandom,stats" -stats_interval_seconds 1 -stats_per_interval 1 &> db_bench.log
rocksdb-statistics db_bench.log
The directory output/ contains the parsed statistics in csv.
Example files are provided in the example/ directory.
You can also add -statistics to get a summary of a lot of other things.
./db_bench --benchmarks="fillrandom,stats" -statistics -stats_interval_seconds 1 -stats_per_interval 1 &> db_bench.log
Example plots
Below are some plots I generated using this tool for my thesis.
Metadata
Release files for rocksdb-statistics 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rocksdb-statistics-0.0.10.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rocksdb_statistics-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / rocksdb-statistics-0.0.10.tar.gz
| Download URL | rocksdb-statistics-0.0.10.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73cc98764eaeb5b267e3a44a432204753a6418a46145feceab47c2446a6e69e3
|
|
BLAKE2b-256 checksum How to use checksums |
05b8803b8f0f15209b85b1681d9654b3d8d8add236edce1d12512c171d48ff3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.7 Darwin/21.6.0
|
Release files / rocksdb_statistics-0.0.10-py3-none-any.whl
| Download URL | rocksdb_statistics-0.0.10-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bac9f1a285cbac7e2c21f294e31ff2049900f418a79e37a7c5e3f8a79ace3c2
|
|
BLAKE2b-256 checksum How to use checksums |
eed424bc0d5f5dac063a79a04c7efc78b4cdda19e1bd306ec60cd67c2883227a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.7 Darwin/21.6.0
|