make-bcache(8)

πŸŽ€ NAME πŸŽ€

okay bestie, this is make-bcache(8) from the System Manager's Manual πŸ’… and it's how you create a cache device ✨

🧚 SYNOPSIS 🧚

make-bcache [ -U UUID ] [ -b bucket-size ] device

πŸ’– OPTIONS πŸ’–

  • -C β€” the one that makes a cache 🫢
  • -B β€” makes a backing device, but ngl the kernel side isn't implemented yet 😭 so this one's still a work in progress πŸ™ˆ
  • -U UUID β€” creates a cache device with the UUID you pick πŸ¦‹
  • -b bucket-size β€” okay this one is lowkey the most important πŸ”₯
    • allocation happens in terms of buckets, and cache hits get counted per bucket
    • so a smaller bucket size gives you better cache utilization, but poorer write performance πŸ₯Ί
    • the bucket size is meant to match your SSD's erase blocks, which seem to be around 128k-512k for most SSDs πŸ’œ
    • it has to be a power of two, and it takes human readable units πŸ“
    • if you don't set it, it defaults to 128k ✨
bestie, the bucket size is supposed to match your SSD's erase blocks, so pick wisely πŸ’€

make-bcache(8) is the vibe, bestie 🌸 catch you later πŸ’…βœ¨