MTBL_INFO(1)
π MTBL_INFO(1) β bestie's guide to peeking inside an MTBL file π
okay so you've got an mtbl_info situation and honestly? iconic. this is the mtbl_info page from section 1 of the manual, and it's about to tell you literally everything your MTBL file is hiding. π
β¨ NAME β¨
mtbl_info β display information about an MTBL file
like. that's it. that's the job. it shows you info about an MTBL file. slay. π
πΈ SYNOPSIS πΈ
mtbl_info FILE [FILE]...
one or more files, bestie. you can pass a whole lil lineup of them and it'll go through each one. no cap. β¨
π¦ DESCRIPTION π¦
mtbl_info(1) displays the following information about the MTBL files specified on the command line. like, all of it. every stat. it's giving "tell me everything about me" energy and honestly same. π
Here's the tea on every single thing it reports:
- file name β the name of the MTBL file. yeah. its name. who it is. π
- file size β the total size of the MTBL file, in bytes.
- index bytes β the total number of bytes and proportion of the total file size consumed by the index. so it's double-dipping: raw number and percentage, periodt.
- data block bytes β the total number of bytes and proportion of the total file size consumed by data blocks. same energy, different section.
- data block size β the maximum size of an uncompressed data block. uncompressed, bestie, don't forget that part. π«Ά
- data block count β the total number of data blocks. how many. the count. yes.
- entry count β the total number of key-value entries. every single little pair. π
- key bytes β the total number of bytes that all keys in the file would occupy if stored end-to-end in a byte array with no delimiters. imagine them all squished together with zero gaps β that's the number.
- value bytes β the total number of bytes that all values in the file would occupy if stored end-to-end in a byte array with no delimiters. same deal, but for the values. β¨
- compression algorithm β the algorithm used to compress data blocks. the possible values are
"none","snappy","zlib","lz4","lz4hc", and"zstd". that's the whole roster, no extras, no surprises. π - compactness β a rough metric comparing the total number of bytes in the key-value entries with the total size of the MTBL file. it's calculated as
(file size) / (key bytes + value bytes), and thus takes into account the gains of data block compression and prefix key compression against the overhead of the index, metadata, and data block offset arrays. so basically: how much glow-up did compression give you vs. how much are the index/metadata/offset arrays eating into it. math but make it fashion. π
ngl it's called rough for a reason β it's a rough metric, bestie, not a court ruling. don't @ me. π
and that's the whole page!! mtbl_info(1), from the manual, dated 12/11/2016 β go forth and inspect your files, you absolute main character ππβ¨
π¦ where this page comes from
- debian bookworm: mtbl-bin 1.3.0-1 Β· Apache-2.0
- debian trixie: mtbl-bin 1.6.1-1+b1 Β· Apache-2.0
- ubuntu jammy: mtbl-bin 1.3.0-1 Β· Apache-2.0
- ubuntu noble: mtbl-bin 1.3.0-1 Β· Apache-2.0
- ubuntu questing: mtbl-bin 1.6.1-1
- ubuntu resolute: mtbl-bin 1.6.1-1build1 Β· Apache-2.0
- ubuntu stonking: mtbl-bin 1.6.1-1build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms