{
    "content": [
        {
            "type": "text",
            "text": "# cache_metadata_size(8) (man)\n\n**Summary:** cachemetadatasize  - Estimate the size of the metadata device needed for a given configura‐ tion.\n\n**Synopsis:** cachemetadatasize [options]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --nr-blocks | — | Specify the number of cache blocks. |\n| — | --block-size | — | Specify the size of each cache block in 512 byte sectors. |\n| — | --device-size | — | Specify total size of the fast device used in the cache. In 512 byte sectors. |\n| — | --max-hint-width | — | Specify hint width. Cache policies use a per block 'hint' to record extra info (for instance hit counts). At the moment  |\n\n## Examples\n\n- `$ cachemetadatasize --nr-blocks 10240`\n- `$ cachemetadatasize --block-size 128 --device-size 1024000`\n\n## See Also\n\n- cachedump(8)\n- cacherepair(8)\n- cacherestore(8)\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **OPTIONS** (1 lines) — 4 subsections\n  - --nr-blocks {natural} (2 lines)\n  - --block-size {sectors} (2 lines)\n  - --device-size {sectors} (2 lines)\n  - --max-hint-width {nr bytes} (8 lines)\n- **EXAMPLE** (4 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\ncachemetadatasize  - Estimate the size of the metadata device needed for a given configura‐\ntion.\n\n### SYNOPSIS\n\ncachemetadatasize [options]\n\n### DESCRIPTION\n\ncachemetadatasize estimates the size of the metadata.\nEither --nr-blocks, or --block-size and --device-size must be specified.\n\n### OPTIONS\n\n#### --nr-blocks {natural}\n\nSpecify the number of cache blocks.\n\n#### --block-size {sectors}\n\nSpecify the size of each cache block in 512 byte sectors.\n\n#### --device-size {sectors}\n\nSpecify total size of the fast device used in the cache.  In 512 byte sectors.\n\n#### --max-hint-width {nr bytes}\n\nSpecify hint width.\n\nCache policies use a per block 'hint' to record extra info (for instance\nhit counts).  At the moment all policies use a 4 byte hint\nwidth.  If you want to use a different hint width specify it with this\nswitch.\n\n### EXAMPLE\n\n$ cachemetadatasize --nr-blocks 10240\n\n$ cachemetadatasize --block-size 128 --device-size 1024000\n\n### SEE ALSO\n\ncachedump(8), cacherepair(8), cacherestore(8)\n\n### AUTHOR\n\nJoe Thornber <ejt@redhat.com>, Heinz Mauelshagen <heinzm@redhat.com>\n\n\n\nSystem Manager's Manual                  Device Mapper Tools                  cachemetadatasize(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "cache_metadata_size",
        "section": "8",
        "mode": "man",
        "summary": "cachemetadatasize  - Estimate the size of the metadata device needed for a given configura‐ tion.",
        "synopsis": "cachemetadatasize [options]",
        "flags": [
            {
                "flag": "",
                "long": "--nr-blocks",
                "arg": null,
                "description": "Specify the number of cache blocks."
            },
            {
                "flag": "",
                "long": "--block-size",
                "arg": null,
                "description": "Specify the size of each cache block in 512 byte sectors."
            },
            {
                "flag": "",
                "long": "--device-size",
                "arg": null,
                "description": "Specify total size of the fast device used in the cache. In 512 byte sectors."
            },
            {
                "flag": "",
                "long": "--max-hint-width",
                "arg": null,
                "description": "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": [
            "$ cachemetadatasize --nr-blocks 10240",
            "$ cachemetadatasize --block-size 128 --device-size 1024000"
        ],
        "see_also": [
            {
                "name": "cachedump",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/cachedump/8/json"
            },
            {
                "name": "cacherepair",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/cacherepair/8/json"
            },
            {
                "name": "cacherestore",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/cacherestore/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "--nr-blocks {natural}",
                        "lines": 2,
                        "long": "--nr-blocks"
                    },
                    {
                        "name": "--block-size {sectors}",
                        "lines": 2,
                        "long": "--block-size"
                    },
                    {
                        "name": "--device-size {sectors}",
                        "lines": 2,
                        "long": "--device-size"
                    },
                    {
                        "name": "--max-hint-width {nr bytes}",
                        "lines": 8,
                        "long": "--max-hint-width"
                    }
                ]
            },
            {
                "name": "EXAMPLE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}