{"id":8399,"date":"2020-07-22T21:50:01","date_gmt":"2020-07-22T13:50:01","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8399"},"modified":"2022-05-28T20:55:59","modified_gmt":"2022-05-28T12:55:59","slug":"cpupower","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/cpupower","title":{"rendered":"cpupower\u547d\u4ee4 – \u8c03\u6574CPU\u4e3b\u9891\u53c2\u6570"},"content":{"rendered":"\n

cpupower\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u8c03\u6574CPU\u4e3b\u9891\u53c2\u6570\uff0cLinux\u7cfb\u7edf\u5185\u6838\u652f\u6301\u6839\u636e\u4f7f\u7528\u573a\u666f\u6765\u901a\u8fc7\u8c03\u8282CPU\u4e3b\u9891\u53c2\u6570\u6765\u63d0\u9ad8\u8ba1\u7b97\u6027\u80fd\u6216\u964d\u4f4e\u529f\u8017\u3002<\/p>\n\n\n\n

\u5bf9\u4e8e\u79fb\u52a8\u8bbe\u5907\u6765\u8bb2\uff0c\u5728\u6ca1\u6709\u63a5\u901a\u7535\u6e90\u7684\u65f6\u5019\uff0c\u7eed\u822a\u662f\u5f88\u91cd\u8981\u7684\u3002\u800c\u670d\u52a1\u5668\u662f\u4e00\u76f4\u63a5\u7740\u7535\u6e90\u7684\uff0c\u800c\u4e14\u9700\u8981\u6027\u80fd\u5f88\u5f3a\uff0c\u6b64\u65f6\u5c31\u5e94\u7981\u6b62CPU\u4f11\u7720\u529f\u80fd\uff0c\u5e76\u628aCPU\u4e3b\u9891\u56fa\u5b9a\u5230\u6700\u9ad8\u503c\u4e86\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1acpupower [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/p>\n\n\n\n

frequency-info<\/td>\u9891\u7387\u4fe1\u606f<\/td><\/tr>
frequency-set<\/td>\u540e\u8ddf\u8bbe\u7f6e\u6a21\u5f0f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u5f53\u524dCPU\u7684\u5168\u90e8\u4e3b\u9891\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# cpupower -c all frequency-info<\/strong><\/pre>\n\n\n\n

\u8bbe\u7f6e\u5f53\u524dCPU\u4e3a\u6027\u80fd\u6a21\u5f0f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# cpupower -c all frequency-set -g performance<\/strong><\/pre>\n\n\n\n

\u8bbe\u7f6e\u5f53\u524dCPU\u4e3a\u8282\u80fd\u6a21\u5f0f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# cpupower -c all frequency-set -g powersave<\/strong><\/pre>\n\n\n\n

\u67e5\u770bCPU\u4e3b\u9891\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# cpupower frequency-info<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

cpupower\u547d\u4ee4\u7684\u529f\u80fd\u662f\u7528\u4e8e\u8c03\u6574CPU\u4e3b\u9891\u53c2\u6570\uff0cLinux\u7cfb\u7edf\u5185\u6838\u652f\u6301\u6839\u636e\u4f7f\u7528\u573a\u666f\u6765\u901a\u8fc7\u8c03\u8282CPU\u4e3b\u9891\u53c2\u6570 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8399"}],"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=8399"}],"version-history":[{"count":9,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8399\/revisions"}],"predecessor-version":[{"id":10167,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8399\/revisions\/10167"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}