@@ -152,27 +152,31 @@ iterable_named_enum! {
152
152
BlockCacheCompressionDictBytesInsert ( "rocksdb.block.cache.compression.dict.bytes.insert" ) ,
153
153
154
154
/// # of blocks redundantly inserted into block cache.
155
- /// REQUIRES: BLOCK_CACHE_ADD_REDUNDANT <= BLOCK_CACHE_ADD
155
+ /// REQUIRES: BlockCacheAddRedundant <= BlockCacheAdd
156
156
BlockCacheAddRedundant ( "rocksdb.block.cache.add.redundant" ) ,
157
157
/// # of index blocks redundantly inserted into block cache.
158
- /// REQUIRES: BLOCK_CACHE_INDEX_ADD_REDUNDANT <= BLOCK_CACHE_INDEX_ADD
158
+ /// REQUIRES: BlockCacheIndexAddRedundant <= BlockCacheIndexAdd
159
159
BlockCacheIndexAddRedundant ( "rocksdb.block.cache.index.add.redundant" ) ,
160
160
/// # of filter blocks redundantly inserted into block cache.
161
- /// REQUIRES: BLOCK_CACHE_FILTER_ADD_REDUNDANT <= BLOCK_CACHE_FILTER_ADD
161
+ /// REQUIRES: BlockCacheFilterAddRedundant <= BlockCacheFilterAdd
162
162
BlockCacheFilterAddRedundant ( "rocksdb.block.cache.filter.add.redundant" ) ,
163
163
/// # of data blocks redundantly inserted into block cache.
164
- /// REQUIRES: BLOCK_CACHE_DATA_ADD_REDUNDANT <= BLOCK_CACHE_DATA_ADD
164
+ /// REQUIRES: BlockCacheDataAddRedundant <= BlockCacheDataAdd
165
165
BlockCacheDataAddRedundant ( "rocksdb.block.cache.data.add.redundant" ) ,
166
- // # of dict blocks redundantly inserted into block cache.
167
- // REQUIRES: BLOCK_CACHE_COMPRESSION_DICT_ADD_REDUNDANT
168
- // <= BLOCK_CACHE_COMPRESSION_DICT_ADD
166
+ /// # of dict blocks redundantly inserted into block cache.
167
+ /// REQUIRES: BlockCacheCompressionDictAddRedundant
168
+ /// <= BlockCacheCompressionDictAdd
169
169
BlockCacheCompressionDictAddRedundant ( "rocksdb.block.cache.compression.dict.add.redundant" ) ,
170
170
171
+ /// Secondary cache statistics
171
172
SecondaryCacheHits ( "rocksdb.secondary.cache.hits" ) ,
173
+
174
+ /// Fine grained secondary cache stats
172
175
SecondaryCacheFilterHits ( "rocksdb.secondary.cache.filter.hits" ) ,
173
176
SecondaryCacheIndexHits ( "rocksdb.secondary.cache.index.hits" ) ,
174
177
SecondaryCacheDataHits ( "rocksdb.secondary.cache.data.hits" ) ,
175
178
179
+ /// Compressed secondary cache related stats
176
180
CompressedSecondaryCacheDummyHits ( "rocksdb.compressed.secondary.cache.dummy.hits" ) ,
177
181
CompressedSecondaryCacheHits ( "rocksdb.compressed.secondary.cache.hits" ) ,
178
182
CompressedSecondaryCachePromotions ( "rocksdb.compressed.secondary.cache.promotions" ) ,
@@ -218,21 +222,21 @@ iterable_named_enum! {
218
222
/// # of Get() queries served by L2 and up
219
223
GetHitL2AndUp ( "rocksdb.l2andup.hit" ) ,
220
224
221
- /**
222
- * Compaction_KeyDrop* count the reasons for key drop during compaction
223
- * There are 4 reasons currently.
224
- */
225
- CompactionKeyDropNewerEntry ( "rocksdb.compaction.key.drop.new" ) ,
225
+ ///
226
+ /// Compaction_KeyDrop* count the reasons for key drop during compaction
227
+ /// There are 4 reasons currently.
228
+ ///
226
229
/// key was written with a newer value.
227
230
/// Also includes keys dropped for range del.
228
- CompactionKeyDropObsolete ( "rocksdb.compaction.key.drop.obsolete " ) ,
231
+ CompactionKeyDropNewerEntry ( "rocksdb.compaction.key.drop.new " ) ,
229
232
/// The key is obsolete.
230
- CompactionKeyDropRangeDel ( "rocksdb.compaction.key.drop.range_del " ) ,
233
+ CompactionKeyDropObsolete ( "rocksdb.compaction.key.drop.obsolete " ) ,
231
234
/// key was covered by a range tombstone.
232
- CompactionKeyDropUser ( "rocksdb.compaction.key.drop.user " ) ,
235
+ CompactionKeyDropRangeDel ( "rocksdb.compaction.key.drop.range_del " ) ,
233
236
/// user compaction function has dropped the key.
234
- CompactionRangeDelDropObsolete ( "rocksdb.compaction.range_del .drop.obsolete " ) ,
237
+ CompactionKeyDropUser ( "rocksdb.compaction.key .drop.user " ) ,
235
238
/// all keys in range were deleted.
239
+ CompactionRangeDelDropObsolete ( "rocksdb.compaction.range_del.drop.obsolete" ) ,
236
240
/// Deletions obsoleted before bottom level due to file gap optimization.
237
241
CompactionOptimizedDelDropObsolete ( "rocksdb.compaction.optimized.del.drop.obsolete" ) ,
238
242
/// If a compaction was canceled in sfm to prevent ENOSPC
@@ -269,8 +273,9 @@ iterable_named_enum! {
269
273
/// over large number of keys with same userkey.
270
274
NumberOfReseeksInIteration ( "rocksdb.number.reseeks.iteration" ) ,
271
275
272
- NoIteratorCreated ( "rocksdb.num.iterator.created" ) ,
273
276
/// number of iterators created
277
+ NoIteratorCreated ( "rocksdb.num.iterator.created" ) ,
278
+ /// number of iterators deleted
274
279
NoIteratorDeleted ( "rocksdb.num.iterator.deleted" ) ,
275
280
276
281
NoFileOpens ( "rocksdb.no.file.opens" ) ,
@@ -285,6 +290,9 @@ iterable_named_enum! {
285
290
NumberMultigetCalls ( "rocksdb.number.multiget.get" ) ,
286
291
NumberMultigetKeysRead ( "rocksdb.number.multiget.keys.read" ) ,
287
292
NumberMultigetBytesRead ( "rocksdb.number.multiget.bytes.read" ) ,
293
+ /// Number of keys actually found in MultiGet calls (vs number requested by
294
+ /// caller)
295
+ /// NumberMultigetKeys_Read gives the number requested by caller
288
296
NumberMultigetKeysFound ( "rocksdb.number.multiget.keys.found" ) ,
289
297
290
298
NumberMergeFailures ( "rocksdb.number.merge.failures" ) ,
@@ -300,16 +308,17 @@ iterable_named_enum! {
300
308
/// Writes can be processed by requesting thread or by the thread at the
301
309
/// head of the writers queue.
302
310
WriteDoneBySelf ( "rocksdb.write.self" ) ,
303
- WriteDoneByOther ( "rocksdb.write.other" ) ,
304
311
/// Equivalent to writes done for others
305
- WriteWithWal ( "rocksdb.write.wal " ) ,
312
+ WriteDoneByOther ( "rocksdb.write.other " ) ,
306
313
/// Number of Write calls that request WAL
307
- CompactReadBytes ( "rocksdb.compact.read.bytes " ) ,
314
+ WriteWithWal ( "rocksdb.write.wal " ) ,
308
315
/// Bytes read during compaction
309
- CompactWriteBytes ( "rocksdb.compact.write .bytes" ) ,
316
+ CompactReadBytes ( "rocksdb.compact.read .bytes" ) ,
310
317
/// Bytes written during compaction
311
- FlushWriteBytes ( "rocksdb.flush .write.bytes" ) ,
318
+ CompactWriteBytes ( "rocksdb.compact .write.bytes" ) ,
312
319
/// Bytes written during flush
320
+ FlushWriteBytes ( "rocksdb.flush.write.bytes" ) ,
321
+
313
322
314
323
/// Compaction read and write statistics broken down by CompactionReason
315
324
CompactReadBytesMarked ( "rocksdb.compact.read.marked.bytes" ) ,
@@ -329,6 +338,7 @@ iterable_named_enum! {
329
338
/// # of compressions/decompressions executed
330
339
NumberBlockCompressed ( "rocksdb.number.block.compressed" ) ,
331
340
NumberBlockDecompressed ( "rocksdb.number.block.decompressed" ) ,
341
+
332
342
/// Number of input bytes (uncompressed) to compression for SST blocks that
333
343
/// are stored compressed.
334
344
BytesCompressedFrom ( "rocksdb.bytes.compressed.from" ) ,
@@ -346,10 +356,12 @@ iterable_named_enum! {
346
356
/// CompressionOptions::max_compressed_bytes_per_kb) or found invalid by the
347
357
/// `verify_compression` option.
348
358
BytesCompressionRejected ( "rocksdb.bytes.compression.rejected" ) ,
359
+
349
360
/// Like BytesCompressionBypassed but counting number of blocks
350
361
NumberBlockCompressionBypassed ( "rocksdb.number.block_compression_bypassed" ) ,
351
362
/// Like BytesCompressionRejected but counting number of blocks
352
363
NumberBlockCompressionRejected ( "rocksdb.number.block_compression_rejected" ) ,
364
+
353
365
/// Number of input bytes (compressed) to decompression in reading compressed
354
366
/// SST blocks from storage.
355
367
BytesDecompressedFrom ( "rocksdb.bytes.decompressed.from" ) ,
@@ -371,10 +383,11 @@ iterable_named_enum! {
371
383
/// (ReadAMP_ToTAL_ReadBytes / Read_AMP_Estimate_UsefulBytes)
372
384
//
373
385
/// REQUIRES: ReadOptions::read_amp_bytes_per_bit to be enabled
374
- ReadAmpEstimateUsefulBytes ( "rocksdb.read.amp.estimate.useful.bytes" ) ,
375
386
/// Estimate of total bytes actually used.
376
- ReadAmpTotalReadBytes ( "rocksdb.read.amp.total.read .bytes" ) ,
387
+ ReadAmpEstimateUsefulBytes ( "rocksdb.read.amp.estimate.useful .bytes" ) ,
377
388
/// Total size of loaded data blocks.
389
+ ReadAmpTotalReadBytes ( "rocksdb.read.amp.total.read.bytes" ) ,
390
+
378
391
379
392
/// Number of refill intervals where rate limiter's bytes are fully consumed.
380
393
NumberRateLimiterDrains ( "rocksdb.number.rate_limiter.drains" ) ,
@@ -646,8 +659,8 @@ iterable_named_enum! {
646
659
647
660
// Time spent in writing SST files
648
661
SstWriteMicros ( "rocksdb.sst.write.micros" ) ,
649
- // Time spent in writing SST table (currently only block-based table) or
650
- // blob file for flush, compaction or db open
662
+ // Time spent in writing SST table (currently only block-based table) or blob
663
+ // file for flush, compaction or db open
651
664
FileWriteFlushMicros ( "rocksdb.file.write.flush.micros" ) ,
652
665
FileWriteCompactionMicros ( "rocksdb.file.write.compaction.micros" ) ,
653
666
FileWriteDbOpenMicros ( "rocksdb.file.write.db.open.micros" ) ,
@@ -658,6 +671,7 @@ iterable_named_enum! {
658
671
BytesPerRead ( "rocksdb.bytes.per.read" ) ,
659
672
BytesPerWrite ( "rocksdb.bytes.per.write" ) ,
660
673
BytesPerMultiget ( "rocksdb.bytes.per.multiget" ) ,
674
+
661
675
CompressionTimesNanos ( "rocksdb.compression.times.nanos" ) ,
662
676
DecompressionTimesNanos ( "rocksdb.decompression.times.nanos" ) ,
663
677
/// Number of merge operands passed to the merge operator in user read
0 commit comments