{"id":3989,"date":"2019-07-18T19:05:22","date_gmt":"2019-07-18T11:05:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3989"},"modified":"2019-07-18T19:05:24","modified_gmt":"2019-07-18T11:05:24","slug":"iotop","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iotop","title":{"rendered":"iotop\u547d\u4ee4 – \u76d1\u89c6\u78c1\u76d8I\/O\u72b6\u6001"},"content":{"rendered":"\n

iotop\u547d\u4ee4\u662f\u4e00\u4e2a\u7528\u6765\u76d1\u89c6\u78c1\u76d8I\/O\u4f7f\u7528\u72b6\u51b5\u7684top\u7c7b\u5de5\u5177\u3002iotop\u5177\u6709\u4e0etop\u76f8\u4f3c\u7684UI\uff0c\u5176\u4e2d\u5305\u62ecPID\u3001\u7528\u6237\u3001I\/O\u3001\u8fdb\u7a0b\u7b49\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n\n\n\n

Linux\u4e0b\u7684IO\u7edf\u8ba1\u5de5\u5177\u5982iostat\uff0cnmon\u7b49\u5927\u591a\u6570\u662f\u53ea\u80fd\u7edf\u8ba1\u5230per\u8bbe\u5907\u7684\u8bfb\u5199\u60c5\u51b5\uff0c\u5982\u679c\u4f60\u60f3\u77e5\u9053\u6bcf\u4e2a\u8fdb\u7a0b\u662f\u5982\u4f55\u4f7f\u7528IO\u7684\u5c31\u6bd4\u8f83\u9ebb\u70e6\uff0c\u4f7f\u7528iotop\u547d\u4ee4\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u67e5\u770b\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-o<\/td>\u53ea\u663e\u793a\u6709io\u64cd\u4f5c\u7684\u8fdb\u7a0b<\/td><\/tr>
-b<\/td>\u6279\u91cf\u663e\u793a\uff0c\u65e0\u4ea4\u4e92\uff0c\u4e3b\u8981\u7528\u4f5c\u8bb0\u5f55\u5230\u6587\u4ef6<\/td><\/tr>
-n NUM<\/td>\u663e\u793aNUM\u6b21\uff0c\u4e3b\u8981\u7528\u4e8e\u975e\u4ea4\u4e92\u5f0f\u6a21\u5f0f<\/td><\/tr>
-d SEC<\/td>\u95f4\u9694SEC\u79d2\u663e\u793a\u4e00\u6b21<\/td><\/tr>
-p PID<\/td>\u76d1\u63a7\u7684\u8fdb\u7a0bpid<\/td><\/tr>
-u USER<\/td>\u76d1\u63a7\u7684\u8fdb\u7a0b\u7528\u6237<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u4f7f\u7528-o\u53c2\u6570\u53ea\u663e\u793aIO\u64cd\u4f5c\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iotop -o<\/pre>\n\n\n\n

\u4f7f\u7528-b\u53c2\u6570\u6279\u91cf\u663e\u793a\uff0c\u65e0\u4ea4\u4e92\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iotop -b<\/pre>\n\n\n\n

\u4f7f\u7528-u\u53c2\u6570\u663e\u793aroot\u7528\u6237\u7684IO\u8fdb\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iotop -u root<\/pre>\n","protected":false},"excerpt":{"rendered":"

iotop\u547d\u4ee4\u662f\u4e00\u4e2a\u7528\u6765\u76d1\u89c6\u78c1\u76d8I\/O\u4f7f\u7528\u72b6\u51b5\u7684top\u7c7b\u5de5\u5177\u3002iotop\u5177\u6709\u4e0etop\u76f8\u4f3c\u7684UI\uff0c\u5176\u4e2d\u5305\u62ecPID […]<\/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\/3989"}],"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=3989"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3989\/revisions"}],"predecessor-version":[{"id":4052,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3989\/revisions\/4052"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}