VDOCALCULATESIZE(8)
π¦ VDOCALCULATESIZE(8) β the vibe check π¦
okay bestie, so this is a page from the System Manager's Manual, and it's about vdocalculatesize β yes, all lowercase in the title, we love her anyway. She's your girl for figuring out how much space and memory your VDO setup is gonna eat. no cap β¨
π NAME π
vdocalculatesize β Calculate VDO space and memory usage
β¨ SYNOPSIS β¨
vdocalculatesize [options...]
πΈ DESCRIPTION πΈ
vdocalculatesize calculate VDO space and memory usage. That's literally it, that's the whole job description, and she does it flawlessly. π
π OPTIONS π
okay so here's the whole menu, and yes we're going through every single one, because bestie deserves the full tea β
--helpβ Print help message and exit. The "hey I'm new here" button. She'll tell you what's up and then dip. π--block-map-cache-size=blocksβ Size of the block map cache, in 4K blocks. Note that unit bestie: 4K blocks, not MB, not vibes.--logical-size=MBβ VDO logical size. (yes, in MB, she said what she said.)--physical-size=MBβ VDO physical size. (also MB, keeping it consistent, we stan.)--slab-bits=bitsβ Set the free space allocator's slab size to 2^bits 4 KB blocks.bitsmust be a value between 13 and 23 (inclusive), corresponding to a slab size between 32 MB and 32 GB. The default value is 19 which results in a slab size of 2 GB. This allocator manages the space VDO uses to store user data.
The maximum number of slabs in the system is 8192, so this value determines the maximum physical size of a VDO volume. One slab is the minimum amount by which a VDO volume can be grown. Smaller slabs also increase the potential for parallelism if the device has multiple physical threads. Therefore, this value should be set as small as possible, given the eventual maximal size of the volume. π§ tl;dr: go small, but not so small you cap out your future glow-up.
--slab-size=MBβ set slab-size directly instead of using--slab-bits. This option is mutually exclusive with--slab-bits. PICK ONE. you cannot have both, they are not compatible besties, it's giving toxic ex energy. π--index-memory-size=GBβ Specify the amount of memory, in gigabytes, to devote to the index. Accepted options are.25,.5,.75, and all positive integers. So quarters and whole numbers only β no chaotic.333nonsense, she has standards. π--sparse-indexβ Specify whether or not to use a sparse index. (a yes/no situation, very demure, very mindful.) π
π EXAMPLE π
here's her serving a full look, copy-paste this exact line and it'll do the thing:
vdoCalculateSize --physical-size 600G --slab-bits 22 --logical-size 2T --index-memory-size 1 --block-map-cache-size 32768
and yes, the example spells it vdoCalculateSize with the capitals while the command itself is lowercase vdocalculatesize β that's just how the original rolls, we don't question it, we respect it. π
π₯ SEE ALSO π₯
vdo(8). go read that one next, she's the main character and this one's her bestie. π«Ά
and that's the whole page, bestie! this cutie was brought to you by Red Hat, dated 2025-02-24, and she's iconic for it. mwah ππ β¨
π¦ where this page comes from
- centos-stream 10: vdo 8.3.2.1-1.el10 Β· GPL-2.0-only
- fedora 44: vdo 8.3.2.1-2.fc44 Β· GPL-2.0-only
- nixos 26.05: vdo 8.3.2.1
- nixpkgs unstable: vdo 8.3.2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms