{"id":8147,"date":"2020-07-18T21:21:01","date_gmt":"2020-07-18T13:21:01","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8147"},"modified":"2020-07-18T21:21:03","modified_gmt":"2020-07-18T13:21:03","slug":"chcpu","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/chcpu","title":{"rendered":"chcpu\u547d\u4ee4 – \u914d\u7f6eCPU"},"content":{"rendered":"\n
chcpu\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4fee\u6539CPU\u7684\u72b6\u6001\u3002\u53ef\u4ee5\u542f\u7528\u6216\u7981\u7528CPU\uff0c\u626b\u63cf\u65b0\u7684CPU\uff0c\u5c06CPU\u8c03\u52a8\u4ece\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\uff08\u914d\u7f6e\uff09\u6216\u8fd4\u56de\u7684CPU\u4e0e\u8d85\u4f4e\u5c42\u7ba1\u7406\u7a0b\u5e8f\u7684\u6a21\u5f0f\uff0c\u8981\u6c42CPU\u89e3\u9664\u914d\u7f6e\u3002<\/p>\n\n\n\n
cpu\u5217\u8868\u53ef\u4ee5\u4f7f\u7528\u53c2\u6570\u6307\u5b9a\u4ee5\u9017\u53f7\u5206\u9694\u3002 \u5217\u8868\u53ef\u4ee5\u5305\u542b\u5355\u4e2aCPU\u5730\u5740\u6216\u5730\u5740\u8303\u56f4\u3002 \u4f8b\u59820\u30015\u30017\u30019-11\u3002\u8be5\u547d\u4ee4\u9002\u7528\u4e8e\u5730\u5740\u4e3a0\u30015\u30017\u30019\u300110\u548c11\u7684 cpu\u3002chcpu\u547d\u4ee4\u662futil-linux\u8f6f\u4ef6\u5305\u7684\u4e00\u90e8\u5206\uff0c\u53ef\u4eceLinux Kernel Archive\u83b7\u5f97\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>chcpu [\u53c2\u6570] <\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u89e6\u53d1CPU\u91cd\u65b0\u626b\u63cf\uff1a<\/p>\n\n\n\n \u542f\u7528\u6240\u6709\u6307\u5b9a\u7684CPU\uff1a<\/p>\n\n\n\n \u8bbe\u7f6eCPU\u8c03\u5ea6\u6a21\u5f0f\uff1a<\/p>\n\n\n\n chcpu\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u4fee\u6539CPU\u7684\u72b6\u6001\u3002\u53ef\u4ee5\u542f\u7528\u6216\u7981\u7528CPU\uff0c\u626b\u63cf\u65b0\u7684CPU\uff0c\u5c06CPU\u8c03\u52a8\u4ece\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8147"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8147"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8147\/revisions"}],"predecessor-version":[{"id":8384,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8147\/revisions\/8384"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} -g<\/td> \u53d6\u6d88\u914d\u7f6e\u6240\u6709\u6307\u5b9a\u7684CPU<\/td><\/tr> -d<\/td> \u7981\u7528\u6240\u6709\u6307\u5b9a\u7684CPU<\/td><\/tr> -e<\/td> \u542f\u7528\u6240\u6709\u6307\u5b9a\u7684CPU<\/td><\/tr> -c<\/td> \u914d\u7f6e\u6240\u6709\u6307\u5b9a\u7684CPU<\/td><\/tr> -r<\/td> \u89e6\u53d1CPU\u91cd\u65b0\u626b\u63cf<\/td><\/tr> -p<\u6a21\u5f0f><\/td> \u8bbe\u7f6eCPU\u8c03\u5ea6\u6a21\u5f0f\uff0c\u53ef\u7528\u6a21\u5f0f\u5305\u62echorizontal\u548cvertical<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# chcpu -r<\/pre>\n\n\n\n
[root@linuxcool ~]# chcpu -e 2,5,9<\/pre>\n\n\n\n
[root@linuxcool ~]# chcpu -p horizontal<\/pre>\n","protected":false},"excerpt":{"rendered":"