{"id":3996,"date":"2019-07-18T19:05:42","date_gmt":"2019-07-18T11:05:42","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3996"},"modified":"2019-07-18T19:05:44","modified_gmt":"2019-07-18T11:05:44","slug":"sar","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/sar","title":{"rendered":"sar\u547d\u4ee4 – \u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u7edf\u8ba1"},"content":{"rendered":"\n

sar\u547d\u4ee4\u662fLinux\u4e0b\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u7edf\u8ba1\u5de5\u5177\uff0c\u5b83\u5c06\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u72b6\u6001\u8ba1\u6570\u5668\u663e\u793a\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\u3002<\/p>\n\n\n\n

sar\u5de5\u5177\u5c06\u5bf9\u7cfb\u7edf\u5f53\u524d\u7684\u72b6\u6001\u8fdb\u884c\u53d6\u6837\uff0c\u7136\u540e\u901a\u8fc7\u8ba1\u7b97\u6570\u636e\u548c\u6bd4\u4f8b\u6765\u8868\u8fbe\u7cfb\u7edf\u7684\u5f53\u524d\u8fd0\u884c\u72b6\u6001\u3002\u5b83\u7684\u7279\u70b9\u662f\u53ef\u4ee5\u8fde\u7eed\u5bf9\u7cfb\u7edf\u53d6\u6837\uff0c\u83b7\u5f97\u5927\u91cf\u7684\u53d6\u6837\u6570\u636e\u3002\u53d6\u6837\u6570\u636e\u548c\u5206\u6790\u7684\u7ed3\u679c\u90fd\u53ef\u4ee5\u5b58\u5165\u6587\u4ef6\uff0c\u4f7f\u7528\u5b83\u65f6\u6d88\u8017\u7684\u7cfb\u7edf\u8d44\u6e90\u5f88\u5c0f\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-R<\/td>\u663e\u793a\u5185\u5b58\u72b6\u6001<\/td><\/tr>
-b<\/td>\u663e\u793aI\/O\u901f\u7387<\/td><\/tr>
-B<\/td>\u663e\u793a\u6362\u9875\u72b6\u6001<\/td><\/tr>
-d<\/td>\u663e\u793a\u6bcf\u4e2a\u5757\u8bbe\u5907\u7684\u72b6\u6001<\/td><\/tr>
-i<\/td>\u72b6\u6001\u4fe1\u606f\u5237\u65b0\u7684\u95f4\u9694\u65f6\u95f4<\/td><\/tr>
-u<\/td>\u663e\u793aCPU\u5229\u7528\u7387<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u4f7f\u7528-R\u53c2\u6570\u663e\u793a\u5185\u5b58\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sar -R<\/pre>\n\n\n\n

\u4f7f\u7528-b\u53c2\u6570\u663e\u793aI\/O\u901f\u7387\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sar -R <\/pre>\n\n\n\n

\u4f7f\u7528-u\u53c2\u6570\u663e\u793aCPU\u5229\u7528\u7387\uff1a<\/p>\n\n\n\n

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

sar\u547d\u4ee4\u662fLinux\u4e0b\u7cfb\u7edf\u8fd0\u884c\u72b6\u6001\u7edf\u8ba1\u5de5\u5177\uff0c\u5b83\u5c06\u6307\u5b9a\u7684\u64cd\u4f5c\u7cfb\u7edf\u72b6\u6001\u8ba1\u6570\u5668\u663e\u793a\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\u3002 sar\u5de5\u5177\u5c06\u5bf9 […]<\/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\/3996"}],"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=3996"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3996\/revisions"}],"predecessor-version":[{"id":4053,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3996\/revisions\/4053"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}