Skip to content

data/TIERHEAT records how recently and how heavily each data file has been read. It is a derived cache: sealed whole with AAD "stc-tier-heat", written through TIERHEAT.tmp and renamed, and ignored and rebuilt when it fails to open or carries an unknown magic.

Field Encoding Meaning
magic ascii "STH1"
count u32 LE number of entries
entry, repeated count times 24 bytes file_id u64, last_read u64, heat u64

Entries name files by id only. A file with bytes left over after the last entry is ignored as a whole.