facebook / facebook/rocksdb

The MixGraph workload should not be used with more than one thread

Open
#9,651 1 comment 0 reactions 1 assignee Claimed by @mdcallag View on GitHub
enhancement
Dominant language
C++
Stars
32.1k
Forks
6.9k
Avg merge
32m
Merged PRs (30d)
1

Description

I spoke with the author to confirm that db_bench --benchmarks=mixgraph should only be used with --threads=1

The short term fix is to fail with an error if --threads is greater than 1.

From the author:
For the first question, I have tried the multi-thread, it works. Specify the thread number in db_bench options. But there is a problem. Each thread will generate the workload with the expected distribution. So the actual workload shape will change (add together).

A proper fix might be to have a background thread generate the workload and place requests on queues processed by user (foreground) threads that will perform RocksDB API calls.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.