{
    "mode": "man",
    "parameter": "chcpu",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/chcpu/8/json",
    "generated": "2026-05-30T07:07:37Z",
    "synopsis": "chcpu -c|-d|-e|-g cpu-list\nchcpu -p mode\nchcpu -r|-h|-V",
    "sections": {
        "NAME": {
            "content": "chcpu - configure CPUs\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "chcpu -c|-d|-e|-g cpu-list\n\nchcpu -p mode\n\nchcpu -r|-h|-V\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "chcpu can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change\nthe CPU dispatching mode of the underlying hypervisor, and request CPUs from the hypervisor\n(configure) or return CPUs to the hypervisor (deconfigure).\n\nSome options have a cpu-list argument. Use this argument to specify a comma-separated list of\nCPUs. The list can contain individual CPU addresses or ranges of addresses. For example,\n0,5,7,9-11 makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and\n11.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-c --configure",
                    "content": "Configure the specified CPUs. Configuring a CPU means that the hypervisor takes a CPU\nfrom the CPU pool and assigns it to the virtual hardware on which your kernel runs.\n",
                    "flag": "-c",
                    "long": "--configure"
                },
                {
                    "name": "-d --disable",
                    "content": "Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline.\n",
                    "flag": "-d",
                    "long": "--disable"
                },
                {
                    "name": "-e --enable",
                    "content": "Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU\nmust be configured, see -c, before it can be enabled.\n",
                    "flag": "-e",
                    "long": "--enable"
                },
                {
                    "name": "-g --deconfigure",
                    "content": "Deconfigure the specified CPUs. Deconfiguring a CPU means that the hypervisor removes the\nCPU from the virtual hardware on which the Linux instance runs and returns it to the CPU\npool. A CPU must be offline, see -d, before it can be deconfigured.\n",
                    "flag": "-g",
                    "long": "--deconfigure"
                },
                {
                    "name": "-p --dispatch",
                    "content": "Set the CPU dispatching mode (polarization). This option has an effect only if your\nhardware architecture and hypervisor support CPU polarization. Available modes are:\n\nhorizontal\nThe workload is spread across all available CPUs.\n\nvertical\nThe workload is concentrated on few CPUs.\n",
                    "flag": "-p",
                    "long": "--dispatch"
                },
                {
                    "name": "-r --rescan",
                    "content": "Trigger a rescan of CPUs. After a rescan, the Linux kernel recognizes the new CPUs. Use\nthis option on systems that do not automatically detect newly attached CPUs.\n",
                    "flag": "-r",
                    "long": "--rescan"
                },
                {
                    "name": "-V --version",
                    "content": "Display version information and exit.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-h --help",
                    "content": "Display help text and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "chcpu has the following exit status values:\n\n0\nsuccess\n\n1\nfailure\n\n64\npartial success\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Heiko Carstens <heiko.carstens@de.ibm.com>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright IBM Corp. 2011\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "lscpu(1)\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "For bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "The chcpu command is part of the util-linux package which can be downloaded from Linux Kernel\nArchive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-06-02                                     CHCPU(8)",
            "subsections": []
        }
    },
    "summary": "chcpu - configure CPUs",
    "flags": [
        {
            "flag": "-c",
            "long": "--configure",
            "arg": null,
            "description": "Configure the specified CPUs. Configuring a CPU means that the hypervisor takes a CPU from the CPU pool and assigns it to the virtual hardware on which your kernel runs."
        },
        {
            "flag": "-d",
            "long": "--disable",
            "arg": null,
            "description": "Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline."
        },
        {
            "flag": "-e",
            "long": "--enable",
            "arg": null,
            "description": "Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see -c, before it can be enabled."
        },
        {
            "flag": "-g",
            "long": "--deconfigure",
            "arg": null,
            "description": "Deconfigure the specified CPUs. Deconfiguring a CPU means that the hypervisor removes the CPU from the virtual hardware on which the Linux instance runs and returns it to the CPU pool. A CPU must be offline, see -d, before it can be deconfigured."
        },
        {
            "flag": "-p",
            "long": "--dispatch",
            "arg": null,
            "description": "Set the CPU dispatching mode (polarization). This option has an effect only if your hardware architecture and hypervisor support CPU polarization. Available modes are: horizontal The workload is spread across all available CPUs. vertical The workload is concentrated on few CPUs."
        },
        {
            "flag": "-r",
            "long": "--rescan",
            "arg": null,
            "description": "Trigger a rescan of CPUs. After a rescan, the Linux kernel recognizes the new CPUs. Use this option on systems that do not automatically detect newly attached CPUs."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Display version information and exit."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display help text and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "lscpu",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/lscpu/1/json"
        }
    ]
}