cache_metadata_size(8)

πŸ“¦
version 1.3.4 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so the manual page is cache_metadata_size(8) πŸ’– and it's all about one thing: estimating how big a metadata device needs to be for a given cache configuration 🧚

cache_metadata_size β€” estimates the size of the metadata device needed for a given configuration. πŸ¦‹

πŸ“œ SYNOPSIS πŸ“œ

cache_metadata_size [options]

πŸ’… DESCRIPTION πŸ’…

bestie, cache_metadata_size estimates the size of the metadata for you 🫢 You need to give it either --nr-blocks, or both --block-size and --device-size. No cap, one of those combos is mandatory πŸ”₯

πŸŽ€ OPTIONS πŸŽ€

  • --nr-blocks {natural} β€” tell it how many cache blocks you've got ✨
  • --block-size {sectors} β€” the size of each cache block, counted in 512 byte sectors 🌸
  • --device-size {sectors} β€” the total size of the fast device you're using for the cache, also in 512 byte sectors πŸ’œ
  • --max-hint-width {nr bytes} β€” sets the hint width πŸ“

okay so this one is lowkey iconic πŸ‘‘ cache policies store a per-block hint to keep track of extra info (like hit counts) πŸ™ˆ Right now every policy uses a 4 byte hint width. If you want something different, pass it in with this switch 🌈

πŸ“ EXAMPLE πŸ“

$ cache_metadata_size --nr-blocks 10240

$ cache_metadata_size --block-size 128 --device-size 1024000

πŸ¦‹ SEE ALSO πŸ¦‹

cache_dump(8), cache_repair(8), cache_restore(8) β€” the vibe check continues over there πŸ’…

🫢 AUTHOR 🫢

Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <heinzm@redhat.com> πŸ’–


Bestie, that's the whole page! 🌈 Manual from System Manager's Manual, Device Mapper Tools πŸŽ€ cache_metadata_size(8) β€” you're literally a Unix queen now πŸ‘‘πŸ˜­βœ¨

πŸ“¦ where this page comes from