wait_mutex duration reach 400ms when the number of total SST file reach 40 thousands
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
> Note: Please use Issues only for bug reports. For questions, discussions, feature requests, etc. post to dev group: https://groups.google.com/forum/#!forum/rocksdb or https://www.facebook.com/groups/rocksdb.dev
### Expected behavior
Write duration and get duration should not be impacted so much by compaction.
### Actual behavior
The compaction impacts the Get duration and the Write duration a lot when the number of total SST files is about 40K. After we open the perf_context feature, we found the wait_mutex duration is very large, this is the root cause for the high latency.






### Steps to reproduce the behavior
- Set `target_file_size` = 8MB, and insert data to let the number of the total SST files reach about 40K
- Run read and write workload
Contributor guide
Assessment
This issue has not been assessed yet.