{"id":4849,"date":"2019-08-31T00:08:25","date_gmt":"2019-08-30T16:08:25","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4849"},"modified":"2019-09-01T00:59:06","modified_gmt":"2019-08-31T16:59:06","slug":"iostat","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iostat","title":{"rendered":"iostat\u547d\u4ee4 – \u76d1\u89c6\u7cfb\u7edf\u8f93\u5165\u8f93\u51fa\u8bbe\u5907\u548cCPU\u7684\u4f7f\u7528\u60c5\u51b5"},"content":{"rendered":"\n

iostat\u88ab\u7528\u4e8e\u76d1\u89c6\u7cfb\u7edf\u8f93\u5165\u8f93\u51fa\u8bbe\u5907\u548cCPU\u7684\u4f7f\u7528\u60c5\u51b5\u3002\u5b83\u7684\u7279\u70b9\u662f\u6c47\u62a5\u78c1\u76d8\u6d3b\u52a8\u7edf\u8ba1\u60c5\u51b5\uff0c\u540c\u65f6\u4e5f\u4f1a\u6c47\u62a5\u51faCPU\u4f7f\u7528\u60c5\u51b5\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> iostat [\u53c2\u6570] [\u8bbe\u5907] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-c<\/td>\u4ec5\u663e\u793aCPU\u4f7f\u7528\u60c5\u51b5<\/td><\/tr>
-d<\/td>\u4ec5\u663e\u793a\u8bbe\u5907\u5229\u7528\u7387<\/td><\/tr>
-k<\/td>\u663e\u793a\u72b6\u6001\u4ee5\u5343\u5b57\u8282\u6bcf\u79d2\u4e3a\u5355\u4f4d\uff0c\u800c\u4e0d\u4f7f\u7528\u5757\u6bcf\u79d2<\/td><\/tr>
-m<\/td>\u663e\u793a\u72b6\u6001\u4ee5\u5146\u5b57\u8282\u6bcf\u79d2\u4e3a\u5355\u4f4d <\/td><\/tr>
-p<\/td>\u4ec5\u663e\u793a\u5757\u8bbe\u5907\u548c\u6240\u6709\u88ab\u4f7f\u7528\u7684\u5176\u4ed6\u5206\u533a\u7684\u72b6\u6001<\/td><\/tr>
-t<\/td>\u663e\u793a\u6bcf\u4e2a\u62a5\u544a\u4ea7\u751f\u65f6\u7684\u65f6\u95f4<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u6bcf\u9694\u4e24\u79d2\u62a5\u544a\u4e00\u6b21\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iostat -d 2<\/pre>\n\n\n\n

\u6bcf2\u79d2\u62a5\u544a\u4e00\u6b21\uff0c\u6301\u7eed6\u6b21\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iostat -d 2 6<\/pre>\n\n\n\n

\u663e\u793asda\u4e0esdc\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u6bcf2\u79d2\u62a5\u544a\u4e00\u6b21\uff0c\u6301\u7eed6\u6b21\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iostat -x sda sdc 2 6<\/pre>\n","protected":false},"excerpt":{"rendered":"

iostat\u88ab\u7528\u4e8e\u76d1\u89c6\u7cfb\u7edf\u8f93\u5165\u8f93\u51fa\u8bbe\u5907\u548cCPU\u7684\u4f7f\u7528\u60c5\u51b5\u3002\u5b83\u7684\u7279\u70b9\u662f\u6c47\u62a5\u78c1\u76d8\u6d3b\u52a8\u7edf\u8ba1\u60c5\u51b5\uff0c\u540c\u65f6\u4e5f\u4f1a\u6c47\u62a5\u51faCPU […]<\/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\/4849"}],"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=4849"}],"version-history":[{"count":10,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4849\/revisions"}],"predecessor-version":[{"id":4946,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4849\/revisions\/4946"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}