{"id":25248,"date":"2022-11-15T05:00:13","date_gmt":"2022-11-14T21:00:13","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=25248"},"modified":"2022-11-15T05:00:24","modified_gmt":"2022-11-14T21:00:24","slug":"linux-three-saber","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-three-saber.html","title":{"rendered":"Linux\u4e0b\u6027\u80fd\u76d1\u63a7\u7684\u4e09\u628a\u519b\u5200"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nLinux\u4e3b\u673a\u600e\u4e48\u7ba1\uff0c\u5341\u516b\u822c\u5175\u5668\u4ef6\u4ef6\u90fd\u53ef\u4ee5\u7b97\u5f97\u4e0a\u662f\u745e\u58eb\u519b\u5200\uff0c\u79f0\u624b\u7684\u5175\u5668\u4e00\u4e24\u4ef6\u5373\u53ef\uff0c\u6700\u5e38\u7528\u7684\uff0c\u83ab\u8fc7\u4e8estat\u5bb6\u65cf\u4e09\u5144\u5f1f\u5427\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8ba1\u7b97\u673a\u4e3b\u8981\u8d44\u6e90\u662f\u4ec0\u4e48\uff1fCPU\u3001\u5185\u5b58\u548c\u78c1\u76d8\uff1f\u5c3d\u7ba1\u73b0\u5728\u4e91\u8ba1\u7b97\u6280\u672f\u6709\u591a\u666e\u53ca\uff0c\u67e5\u770b\u4e00\u4e2a\u7cfb\u7edf\u662f\u5426\u5065\u5eb7\u8fd0\u884c\u8fd8\u662f\u9700\u8981\u4ece\u8fd93\u65b9\u9762\u6765\u7740\u624b\u5f00\u59cb\u8c03\u67e5\u7684\uff0c\u8c03\u67e5\u51fa\u4e86\u539f\u56e0\uff0c\u80fd\u6539\u7a0b\u5e8f\u5c31\u6539\u7a0b\u5e8f\uff0c\u6539\u4e0d\u4e86\u7a0b\u5e8f\u5c31\u82b1\u94b1\u5347\u7ea7\u786c\u4ef6\uff0c\u4e0d\u884c\u5c31\u53ea\u80fd\u5fcd\u7740\u4e86\u3002<\/p>\n

    \n
  1. \u8001\u5927mpstat\uff0c\u4e3b\u8981\u7528\u6765\u67e5\u770bCPU\u62a5\u544a\uff0c\u5305\u62ecuser\/system\u3001iowait\u548c\u4e2d\u65ad\u7b49\u3002<\/li>\n
  2. \u8001\u4e8cvmstat\uff0c\u8fd9\u91cc\u7684m\u4e0d\u662f\u865a\u62df\u673a\u7684m\uff0c\u800c\u662f\u865a\u62df\u5185\u5b58\u7684m\uff0c\u5f53\u7136\u4e3b\u8981\u770b\u5185\u5b58\uff08\u5305\u62eccache\u548cbuffer\u7b49\uff09\u4e86\u3002<\/li>\n
  3. \u8001\u4e09iostat\uff0c\u540d\u5b57\u6709\u70b9\u552c\u4eba\uff0c\u9664\u4e86\u751f\u6210\u78c1\u76d8\u4f7f\u7528\u4fe1\u606f\u7684\u62a5\u544a\uff0c\u8fd8\u5305\u62ecCPU\u7684\u4f7f\u7528\u60c5\u51b5\u3002<\/li>\n<\/ol>\n

    \u8fd9\u91cc\u6211\u4eec\u4e3b\u8981\u770b\u770bvmstat\uff0c\u5b83\u7684\u8f93\u51fa\u5185\u5bb9\u5927\u6982\u5982\u4e0b\uff08\u539f\u8c05\u6211\uff0c\u867d\u7136\u6ca1\u5230\u6781\u9650\uff0c\u4f46\u662f\u6211\u5df2\u7ecf\u7a0d\u5fae\u5c3d\u529b\u8ba9\u8fd9\u6bb5shell\u8f93\u51fa\u53d8\u5f97\u597d\u770b\uff0c\u7136\u800c\u5931\u8d25\uff09\uff1a<\/p>\n

    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----\r\n r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st\r\n 0  0      0  96572 160052 119776    0    0    11    15    0    1  0  0 100  0  0\r\n<\/pre>\n

    \u4e0a\u9762\u7684\u8f93\u51fa\u7684\u7b2c\u4e00\u884c\u4e3a\u5927\u5206\u7c7b\u540d\uff0c\u4e3b\u8981\u662f\u5904\u7406\u5668\u3001\u5185\u5b58\u3001\u4ea4\u6362\u533a\u3001io\u3001\u7cfb\u7edf\u548cCPU\u4f7f\u7528\u60c5\u51b5\u3002\u8fd9\u4e5f\u662fvmstat\u547d\u4ee4\u80fd\u770b\u5230\u7684\u6570\u636e\u5185\u5bb9\uff0c\u7b2c\u4e8c\u884c\u662f\u5404\u9879\u76ee\u540d\uff0c\u6bd4\u5982io\u4e2d\u7684bi\u548cbo\u5206\u522b\u8868\u793a\u6bcf\u79d2\u7684block in\u548cblock out\uff0c\u4e5f\u5c31\u662f\u4ece\u5757\u8bbe\u5907\u8bfb\u53d6\u548c\u5411\u5757\u8bbe\u5907\u5199\u5165\u7684\u91cf\u3002\u6bcf\u4e00\u9879\u7684\u5177\u4f53\u5185\u5bb9\u53ef\u4ee5\u53c2\u8003man\u624b\u518c\uff0c\u8fd9\u91cc\u4e0d\u8bf4\u4e86\uff0c\u77e5\u9053\u7684\u4eba\u81ea\u7136\u4e4b\u9053\uff0c\u770b\u4e86\u4e5f\u4e0d\u53bb\u67e5\u7684\u4eba\uff0c\u81ea\u7136\u4e5f\u4e0d\u9700\u8981\u4e4b\u9053\u3002<\/p>\n

    \u4e0b\u9762\u6839\u636e\u7f51\u4e0a\u7684\u4e00\u4e9b\u8d44\u6599\uff0c\u603b\u7ed3\u4e86\u4e00\u4e0b\u7b80\u5355\u7684\u51e0\u4e2a\u8c03\u67e5\u7cfb\u7edf\u6027\u80fd\u74f6\u9888\u7684\u201c\u5957\u8def\u201d\u3002\u5f53\u7136\uff0c\u8981\u60f3\u8bfb\u61c2\u4e0b\u9762\u7684\u201c\u5957\u8def\u201d\uff0c\u4f60\u8fd8\u5f97\u7406\u89e3\u5176\u4e2d\u7684\u201c\u9ed1\u8bdd\u201d\uff0c\u4e5f\u5c31\u662fvmstat\u547d\u4ee4\u8f93\u51fa\u7684\u5404\u9879\u76ee\u540d\u6240\u4ee3\u8868\u7684\u542b\u4e49\u3002<\/p>\n

    \"linux-three-saber000002\"
    \n\"linux-three-saber000003\"
    \n\"linux-three-saber000004\"<\/p>\n

    \n

    \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/mp.weixin.qq.com\/s?__biz=MzI3OTEzNjI1OQ==&<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/linux-three-saber.html \u200e<\/a>\u7f16\u8f91\uff1a\u5cb3\u56fd\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u5f20\u5b8f\u5b87<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

    \u5bfc\u8bfb Linux\u4e3b\u673a\u600e\u4e48\u7ba1\uff0c\u5341\u516b\u822c\u5175\u5668\u4ef6\u4ef6\u90fd\u53ef\u4ee5\u7b97\u5f97\u4e0a\u662f\u745e\u58eb\u519b\u5200\uff0c\u79f0\u624b\u7684\u5175\u5668\u4e00\u4e24\u4ef6\u5373\u53ef\uff0c\u6700\u5e38\u7528\u7684\uff0c\u83ab\u8fc7\u4e8esta […]<\/p>\n","protected":false},"author":63,"featured_media":25271,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-25248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/25248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=25248"}],"version-history":[{"count":13,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/25248\/revisions"}],"predecessor-version":[{"id":257396,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/25248\/revisions\/257396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/25271"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=25248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=25248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=25248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}