cache_metadata_size(8)

cache_metadata_size8

Estimate the size of the metadata device needed for a given configuration.

Usage

cache_metadata_size [options]

Overview

cache_metadata_size estimates the size of the metadata. Either --nr-blocks, or --block-size and --device-size must be specified.

Options

--nr-blocks {natural}

Specify the number of cache blocks.

--block-size {sectors}

Specify the size of each cache block in 512 byte sectors.

--device-size {sectors}

Specify total size of the fast device used in the cache. In 512 byte sectors.

--max-hint-width {nr bytes}

Specify hint width.

    Cache policies use a per block 'hint' to record extra info (for instance
    hit counts).  At the moment all policies use a 4 byte hint
    width.  If you want to use a different hint width specify it with this
    switch.

Examples

$ cache_metadata_size --nr-blocks 10240

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

Releases

5 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11–12
  3. 13–Arch

Author

Joe Thornber <[email protected]>, Heinz Mauelshagen <[email protected]>

From thin-provisioning-tools 1.3.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.