{"id":8149,"date":"2020-07-18T21:20:24","date_gmt":"2020-07-18T13:20:24","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8149"},"modified":"2020-07-18T21:20:27","modified_gmt":"2020-07-18T13:20:27","slug":"cpuspeed","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/cpuspeed","title":{"rendered":"cpuspeed\u547d\u4ee4 – \u7528\u6237\u7a7a\u95f4\u7684CPU\u9891\u7387\u8c03\u8282"},"content":{"rendered":"\n
cpuspeed\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u76d1\u63a7\u7cfb\u7edf\u7684\u7a7a\u95f2\u767e\u5206\u6bd4\uff0c\u964d\u4f4e\u6216\u63d0\u9ad8CPU\u7684\u65f6\u949f\u901f\u5ea6\u548c\u7535\u538b\u3002\u5728\u7a7a\u95f2\u65f6\u529f\u8017\u964d\u81f3\u6700\u4f4e\uff0c\u5e76\u5728\u9700\u8981\u65f6\u6700\u5927\u9650\u5ea6\u5730\u63d0\u9ad8\u6027\u80fd\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u5c06\u7ba1\u7406\u6240\u6709CPU\u3002<\/p>\n\n\n\n
\u5927\u591a\u6570linux\u7cfb\u7edf\u652f\u6301\u5185\u6838\u5185CPU\u9891\u7387\u52a8\u6001\u8c03\u8282\u3002cpuspeed\u547d\u4ee4\u5b88\u62a4\u7a0b\u5e8f\u4ec5\u4e0e\u201c\u7528\u6237\u7a7a\u95f4\u201d\u9891\u7387\u7f29\u653e\u8c03\u8282\u5668\u7ed3\u5408\u4f7f\u7528\u3002\u5176\u4ed6\u4f8b\u5982\u201c\u52a8\u6001\u201d\u548c\u201c\u8282\u80fd\u201d\uff0c\u5219\u4f9d\u9760linux\u5185\u6838\u5373\u65f6\u8c03\u6574CPU\u9891\u7387\uff0c\u800c\u65e0\u9700\u4efb\u4f55\u7528\u6237\u7a7a\u95f4\u534f\u52a9\u3002<\/p>\n\n\n\n
RedHat\u548cFedora\u53d1\u884c\u7248\u5728\u8fd9\u4e24\u79cd\u60c5\u51b5\u4e0b\u90fd\u4f7f\u7528\u7edf\u4e00\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u53ca\u4e00\u4e2acpuspeed\u521d\u59cb\u5316\u811a\u672c\uff0c\u8be5\u811a\u672c\u5c06\u6839\u636e\u9700\u8981\u914d\u7f6ecpuspeed\u6216\u5185\u6838\u5185CPU\u9891\u7387\u8c03\u8282\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>cpuspeed [\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 \u7528\u6237\u7a7a\u95f4\u7684CPU\u9891\u7387\u8c03\u8282\uff1a<\/p>\n\n\n\n \u7a0b\u5e8f\u9000\u51fa\u6062\u590d\u4ee5\u524d\u7684\u901f\u5ea6\uff1a<\/p>\n\n\n\n \u8bbe\u7f6e\u4e00\u4e2a\u6307\u5b9a\u7684CPU\u6700\u5927\u901f\u5ea6\uff1a<\/p>\n\n\n\n cpuspeed\u547d\u4ee4\u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u76d1\u63a7\u7cfb\u7edf\u7684\u7a7a\u95f2\u767e\u5206\u6bd4\uff0c\u964d\u4f4e\u6216\u63d0\u9ad8CPU\u7684\u65f6\u949f\u901f\u5ea6\u548c\u7535\u538b\u3002\u5728\u7a7a\u95f2\u65f6\u529f\u8017\u964d\u81f3\u6700\u4f4e\uff0c […]<\/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\/8149"}],"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=8149"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8149\/revisions"}],"predecessor-version":[{"id":8170,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8149\/revisions\/8170"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-d<\/td> \u901a\u77e5\u8fdb\u7a0b\uff0c\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u672c\u8eab\u5728\u540e\u53f0\u8fd0\u884c<\/td><\/tr> -S [[]…]<\/td> \u53ea\u7ba1\u7406CPU\u6838\u5fc3\u7684\u4e00\u4e2a\u7ec4<\/td><\/tr> -w<\/td> \u4e0d\u8981\u628a\u65f6\u95f4\u7b49\u5f85\u5728IO\u7a7a\u95f2\u65f6\u95f4<\/td><\/tr> -C<\/td> \u5f53AC\u9002\u914d\u5668\u8fde\u63a5\u65f6\u4ee5\u6700\u9ad8\u901f\u5ea6\u8fd0\u884c<\/td><\/tr> -A<\u65f6\u95f4\u95f4\u9694><\/td> \u8bbe\u7f6e\u5728\u8be5AC\u9002\u914d\u5668\u7684\u72b6\u6001\u5c06\u5728\u5341\u5206\u4e4b\u4e00\u79d2\u88ab\u8f6e\u8be2\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u9ed8\u8ba4\u4e3a50<\/td><\/tr> -T<\u65f6\u95f4\u95f4\u9694><\/td> \u8bbe\u7f6e\u5728\u8be5\u6e29\u5ea6\u5c06\u5728\u5341\u5206\u4e4b\u4e00\u79d2\u88ab\u8f6e\u8be2\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u9ed8\u8ba4\u4e3a10<\/td><\/tr> -a<\/td> \u5f53\u4ea4\u6d41\u9002\u914d\u5668\u65ad\u5f00\u65f6\uff0c\u8bbe\u5b9aACPI\u7535\u6e90\u9002\u914d\u5668\u72b6\u6001\u6587\u4ef6\uff0c\u5e76\u544a\u8bc9\u7a0b\u5e8f\u8bbe\u7f6eCPU\u4e3a\u6700\u4f4e\u901f\u5ea6<\/td><\/tr> -i<\u65f6\u95f4\u95f4\u9694><\/td> \u8bbe\u7f6e\u7a7a\u95f2\u767e\u5206\u6bd4\u6d4b\u8bd5\u548c\u53ef\u80fd\u901f\u5ea6\u53d8\u5316\u4e4b\u95f4\u7684\u65f6\u95f4\u95f4\u9694\u3002\u9ed8\u8ba4\u503c\u662f20<\/td><\/tr> -t<\u6e29\u5ea6\u6587\u4ef6><\u6700\u9ad8\u6e29\u5ea6><\/td> \u8bbe\u7f6eACPI\u6e29\u5ea6\u6587\u4ef6\u548c\u5728\u5176\u4e2d\u7684CPU\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u6700\u4f4e\u901f\u5ea6\u65f6\u7684\u6e29\u5ea6<\/td><\/tr> -p<\/td> \u8bbe\u7f6eCPU\u6838\u5fc3\u7a7a\u95f2\u7684\u767e\u5206\u6bd4\u9600\u503c\u3002\u662f\u7a7a\u95f2\u7684\u767e\u5206\u6bd4\u4f4e\u4e8e\u6b64CPU\u6838\u5fc3\u4f1a\u88ab\u8bbe\u7f6e\u4e3a\u5c3d\u53ef\u80fd\u9ad8\u7684\u901f\u5ea6\u3002\u5b9a\u662f\u7a7a\u95f2\u7684\u767e\u5206\u6bd4\u9ad8\u4e8e\u8be5CPU\u6838\u5fc3\u7684\u8fd0\u884c\u901f\u5ea6\u5c06\u51cf\u5c11\uff0c\u4f4e\u4e8e\u6b64CPU\u6838\u5fc3\u7684\u8fd0\u884c\u901f\u5ea6\u5c06\u63d0\u9ad8\uff08\u9ed8\u8ba4\u503c\u662f10\u548c25\uff09<\/td><\/tr> -m<\u6700\u5c0f\u901f\u5ea6><\/td> \u8bbe\u7f6e\u4e00\u4e2aCPU\u5185\u6838\u5c06\u4e0d\u4f1a\u88ab\u8bbe\u7f6e\u7684\u6700\u5c0f\u901f\u5ea6\uff0c\u5355\u4f4d\u4e3akHz<\/td><\/tr> -M<\u6700\u5927\u901f\u5ea6><\/td> \u8bbe\u7f6e\u4e00\u4e2aCPU\u5185\u6838\u5c06\u4e0d\u4f1a\u88ab\u8bbe\u7f6e\u7684\u6700\u5927\u901f\u5ea6\uff0c\u5355\u4f4d\u4e3akHz<\/td><\/tr> -r<\/td> \u5728\u7a0b\u5e8f\u9000\u51fa\u6062\u590d\u4ee5\u524d\u7684\u901f\u5ea6<\/td><\/tr> -D<\/td> \u5f53AC\u9002\u914d\u5668\u65ad\u5f00\u65f6\uff0c\u4e0d\u8981\u5f3a\u5236\u4ee5\u6700\u5c0f\u901f\u5ea6\u8fd0\u884c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# cpuspeed<\/pre>\n\n\n\n
[root@linuxcool ~]# cpuspeed -r<\/pre>\n\n\n\n
[root@linuxcool ~]# cpuspeed -M 5000<\/pre>\n","protected":false},"excerpt":{"rendered":"