Skip to main content

Crate sst_inspect

Crate sst_inspect 

Source
Expand description

SST file inspector binary for turbo-persistence databases.

This tool inspects SST files to report entry type statistics per family, useful for verifying that inline value optimization is being used.

Entry types:

  • 0: Small value (stored in value block)
  • 1: Blob reference
  • 2: Deleted/tombstone
  • 3: Medium value
  • 8-255: Inline value where (type - 8) = value byte count

Structsยง

BlockSizeInfo ๐Ÿ”’
Block size information
RawBlock ๐Ÿ”’
Information about a raw block read from disk.
SstInfo ๐Ÿ”’
Information about an SST file from the meta file
SstStats ๐Ÿ”’
Statistics for a single SST file

Enumsยง

KeyBlockHeader ๐Ÿ”’
Parsed header of a key block.

Constantsยง

KEY_BLOCK_HEADER_SIZE ๐Ÿ”’
Size of the key block header (1B type + 3B entry count).

Functionsยง

analyze_sst_file ๐Ÿ”’
Analyze an SST file and return entry type statistics
collect_sst_info ๐Ÿ”’
Collect SST info from all meta files in the database directory
entry_type_description ๐Ÿ”’
family_name ๐Ÿ”’
format_bytes ๐Ÿ”’
format_number ๐Ÿ”’
Format a number with comma separators for readability
iter_key_block_entry_types ๐Ÿ”’
Iterates over entry type bytes in a key block.
main ๐Ÿ”’
parse_key_block_header ๐Ÿ”’
Parses the header of a key block from the full decompressed block data.
parse_key_block_indices ๐Ÿ”’
Parses an index block to extract all referenced key block indices.
print_block_stats ๐Ÿ”’
print_entry_histogram ๐Ÿ”’
print_family_summary ๐Ÿ”’
print_sst_details ๐Ÿ”’
print_value_storage ๐Ÿ”’
read_block ๐Ÿ”’
Reads, checksums, and decompresses a single block from the mmap.
track_entry_type ๐Ÿ”’
Accumulates statistics for a single entry of the given type.