{"id":3693,"date":"2019-06-29T10:08:23","date_gmt":"2019-06-29T02:08:23","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3693"},"modified":"2019-06-29T22:39:50","modified_gmt":"2019-06-29T14:39:50","slug":"mpstat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/mpstat","title":{"rendered":"mpstat\u547d\u4ee4 – \u663e\u793a\u53d8\u5316\u7684CPU\u6570\u636e"},"content":{"rendered":"\n
mpstat\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u968f\u7740\u65f6\u95f4\u53d8\u5316\u7684CPU\u6570\u636e\uff0c\u65b9\u4fbf\u627e\u51faCPU\u4f7f\u7528\u7387\u4e0e\u65f6\u95f4\u7684\u5173\u7cfb\u3002\u8fd9\u4e2a\u547d\u4ee4\u5305\u542b\u5728\u5de5\u5177\u96c6sysstat\u4e2d\uff0c\u4f7f\u7528\u4e4b\u524d\u9700\u8981\u5b89\u88c5sysstat\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>mpstat [\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 \u6267\u884c\u76d1\u63a7\u7b2c\u4e00\u4e2aCPU\uff1a<\/p>\n\n\n\n \u6267\u884c\u76d1\u63a7\u5168\u90e8CPU\uff1a<\/p>\n\n\n\n \u6bcf\u96941\u4e2a\u65f6\u95f4\u5355\u4f4d\u91c7\u68375\u6b21\uff1a<\/p>\n\n\n\n mpstat\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u968f\u7740\u65f6\u95f4\u53d8\u5316\u7684CPU\u6570\u636e\uff0c\u65b9\u4fbf\u627e\u51faCPU\u4f7f\u7528\u7387\u4e0e\u65f6\u95f4\u7684\u5173\u7cfb\u3002\u8fd9\u4e2a\u547d\u4ee4\u5305\u542b\u5728\u5de5\u5177\u96c6sys […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3693"}],"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=3693"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3693\/revisions"}],"predecessor-version":[{"id":3700,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3693\/revisions\/3700"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-P<\/td> \u6267\u884c\u76d1\u63a7\u7684CPU\uff0c\u53d6\u503c0~CPUNUM\u3002\u6216\u8005\u7528ALL\u67e5\u770b\u5168\u90e8CPU<\/td><\/tr> delay<\/td> \u91c7\u6837\u95f4\u9694<\/td><\/tr> count<\/td> \u91c7\u6837\u6b21\u6570<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# mpstat -P 1<\/pre>\n\n\n\n
[root@linuxcool ~]# mpstat -P ALL <\/pre>\n\n\n\n
[root@linuxcool ~]# mpstat 1 5<\/pre>\n","protected":false},"excerpt":{"rendered":"