I assume there is a pure-RocksDB tool that can be used to determine whether this is true for your workload by analyzing the content of your SST files, but I tend to use MyRocks and have less experience with the pure-RocksDB tools. The output from compaction IO statistics, which might be written periodically to the RocksDB log might be a good start. What is the value of the KeyDrop column per level of the LSM tree. If it is much larger
https://github.com/facebook/rocksdb/wiki/Compaction-Stats-and-DB-StatusAn example of compaction IO statistics is here --
https://gist.github.com/mdcallag/30f3ad454808d6cba8c95640f9de38b7And note that both the absolute value for KeyDrop is largest for L7. Also, the ratio (KeyDrop / KeyIn) is very small for L0, L3, L4 and L5, gets larger for L6 and is largest for L7. The ratio is ~0.25 for L7, ~0.05 for L6, ~0.007 for L5, ~0.0019 for L4 and even small for L3 and L0. Note that L1 and L2 aren't there because dynamic leveled compaction is used.