{"id":3788,"date":"2022-12-20T17:20:04","date_gmt":"2022-12-20T20:20:04","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/chcpu-man8\/"},"modified":"2022-12-20T17:20:04","modified_gmt":"2022-12-20T20:20:04","slug":"chcpu-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/chcpu-man8\/","title":{"rendered":"CHCPU (man8)"},"content":{"rendered":"<h1 align=\"center\">CHCPU<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXIT STATUS\">EXIT STATUS<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">chcpu \u2212 configure CPUs<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>chcpu \u2212c<\/b>|<b>\u2212d<\/b>|<b>\u2212e<\/b>|<b>\u2212g<\/b> <i>cpu-list<\/i> <b><br \/> chcpu \u2212p<\/b> <i>mode<\/i> <b><br \/> chcpu \u2212r<\/b>|<b>\u2212h<\/b>|<b>\u2212V<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>chcpu<\/b> can modify the state of CPUs. It can enable or disable CPUs, scan for new CPUs, change the CPU dispatching <i>mode<\/i> of the underlying hypervisor, and request CPUs from the hypervisor (configure) or return CPUs to the hypervisor (deconfigure).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some options have a <i>cpu-list<\/i> argument. Use this argument to specify a comma-separated list of CPUs. The list can contain individual CPU addresses or ranges of addresses. For example, <b>0,5,7,9-11<\/b> makes the command applicable to the CPUs with the addresses 0, 5, 7, 9, 10, and 11.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212c<\/b>, <b>\u2212\u2212configure<\/b> <i>cpu-list<\/i><\/p>\n<p style=\"margin-left:22%;\">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.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212d<\/b>, <b>\u2212\u2212disable<\/b> <i>cpu-list<\/i><\/p>\n<p style=\"margin-left:22%;\">Disable the specified CPUs. Disabling a CPU means that the kernel sets it offline.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212e<\/b>, <b>\u2212\u2212enable<\/b> <i>cpu-list<\/i><\/p>\n<p style=\"margin-left:22%;\">Enable the specified CPUs. Enabling a CPU means that the kernel sets it online. A CPU must be configured, see <b>\u2212c<\/b>, before it can be enabled.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212g<\/b>, <b>\u2212\u2212deconfigure<\/b> <i>cpu-list<\/i><\/p>\n<p style=\"margin-left:22%;\">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 <b>\u2212d<\/b>, before it can be deconfigured.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212p<\/b>, <b>\u2212\u2212dispatch<\/b> <i>mode<\/i><\/p>\n<p style=\"margin-left:22%;\">Set the CPU dispatching <i>mode<\/i> (polarization). This option has an effect only if your hardware architecture and hypervisor support CPU polarization. Available <i>modes<\/i> are:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"16%\">\n<p><b>horizontal<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"49%\">\n<p>The workload is spread across all available CPUs.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"16%\">\n<p><b>vertical<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"49%\">\n<p>The workload is concentrated on few CPUs.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212r<\/b>, <b>\u2212\u2212rescan<\/b><\/p>\n<p style=\"margin-left:22%;\">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.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<h2>EXIT STATUS <a name=\"EXIT STATUS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>chcpu<\/b> has the following exit status values:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>0<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"23%\">\n<p>success<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>1<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"23%\">\n<p>failure<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>64<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"23%\">\n<p>partial success<\/p>\n<\/td>\n<td width=\"55%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><a href=\"mailto:heiko.carstens@de.ibm.com\">Heiko Carstens<\/a><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright IBM Corp. 2011<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lscpu<\/b>(1)<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The chcpu command is part of the util-linux package and is available from <a href=\"https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\">Linux Kernel Archive<\/a>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  chcpu \u2212 configure CPUs <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,887,4],"class_list":["post-3788","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-chcpu","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3788"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3788\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}