Skip to main content

rocksdb-statistics

PyPI version

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rocksdb-statistics-0.0.10.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rocksdb_statistics-0.0.10-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file rocksdb-statistics-0.0.10.tar.gz.

File metadata

  • Download URL: rocksdb-statistics-0.0.10.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.7 Darwin/21.6.0

File hashes

Hashes for rocksdb-statistics-0.0.10.tar.gz
Algorithm Hash digest
SHA256 73cc98764eaeb5b267e3a44a432204753a6418a46145feceab47c2446a6e69e3
MD5 f6c47a1b57a04270b97b5367c7f1c109
BLAKE2b-256 05b8803b8f0f15209b85b1681d9654b3d8d8add236edce1d12512c171d48ff3d

See more details on using hashes here.

File details

Details for the file rocksdb_statistics-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for rocksdb_statistics-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 6bac9f1a285cbac7e2c21f294e31ff2049900f418a79e37a7c5e3f8a79ace3c2
MD5 811e7c1c00748a86b38b837cfa6be7b5
BLAKE2b-256 eed424bc0d5f5dac063a79a04c7efc78b4cdda19e1bd306ec60cd67c2883227a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page