{"id":2052,"date":"2014-12-07T08:00:00","date_gmt":"2014-12-07T00:00:00","guid":{"rendered":"http:\/\/www.esojourn.org\/?p=2052"},"modified":"2015-03-23T13:13:28","modified_gmt":"2015-03-23T05:13:28","slug":"%e4%bd%a0%e5%80%bc%e5%be%97%e6%8b%a5%e6%9c%89-25%e4%b8%aalinux%e6%80%a7%e8%83%bd%e7%9b%91%e6%8e%a7%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"https:\/\/ybzx.vip\/wp\/?p=2052","title":{"rendered":"\u4f60\u503c\u5f97\u62e5\u6709\u2014\u201425\u4e2aLinux\u6027\u80fd\u76d1\u63a7\u5de5\u5177"},"content":{"rendered":"<div class=\"ennote\" style=\"margin: 0px; background-color: #f3f2ee;\">\n<div style=\"padding: 16px 12px; margin: 8px auto; max-width: 650px; background-color: #fbfbfb;\">\n<div>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u4e00\u6bb5\u65f6\u95f4\u4ee5\u6765\uff0c\u6211\u4eec\u5728\u7f51\u4e0a\u5411\u8bfb\u8005\u4ecb\u7ecd\u4e86\u5982\u4f55\u4e3aLinux\u4ee5\u53ca\u7c7bLinux\u64cd\u4f5c\u7cfb\u7edf\u914d\u7f6e\u591a\u79cd\u4e0d\u540c\u7684\u6027\u80fd\u76d1\u63a7\u5de5\u5177\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u6211\u4eec\u5c06\u7f57\u5217\u4e00\u7cfb\u5217\u4f7f\u7528\u6700\u9891\u7e41\u7684\u6027\u80fd\u76d1\u63a7\u5de5\u5177\uff0c\u5e76\u5bf9\u4ecb\u7ecd\u5230\u7684\u6bcf\u4e00\u4e2a\u5de5\u5177\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u7b80\u4ecb\u94fe\u63a5\uff0c\u5927\u81f4\u5c06\u5176\u5212\u5206\u4e3a\u4e24\u7c7b\uff0c\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u548c\u63d0\u4f9b\u56fe\u5f62\u5316\u63a5\u53e3\u7684\u3002<\/p>\n<h3>\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u6027\u80fd\u76d1\u63a7\u5de5\u5177<\/h3>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f;  font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">1. dstat &#8211; \u591a\u7c7b\u578b\u8d44\u6e90\u7edf\u8ba1\u5de5\u5177<\/h4>\n<p><!--more--><\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u8be5\u547d\u4ee4\u6574\u5408\u4e86<strong style=\"word-wrap: break-word; color: #c40f0f;\">vmstat<\/strong>\uff0c<strong style=\"word-wrap: break-word; color: #c40f0f;\">iostat<\/strong>\u548c<strong style=\"word-wrap: break-word; color: #c40f0f;\">ifstat<\/strong>\u4e09\u79cd\u547d\u4ee4\u3002\u540c\u65f6\u589e\u52a0\u4e86\u65b0\u7684\u7279\u6027\u548c\u529f\u80fd\u53ef\u4ee5\u8ba9\u4f60\u80fd\u53ca\u65f6\u770b\u5230\u5404\u79cd\u7684\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\uff0c\u4ece\u800c\u80fd\u591f\u4f7f\u4f60\u5bf9\u6bd4\u548c\u6574\u5408\u4e0d\u540c\u7684\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u3002\u901a\u8fc7\u4e0d\u540c\u989c\u8272\u548c\u533a\u5757\u5e03\u5c40\u7684\u754c\u9762\u5e2e\u52a9\u4f60\u80fd\u591f\u66f4\u52a0\u6e05\u6670\u5bb9\u6613\u7684\u83b7\u53d6\u4fe1\u606f\u3002\u5b83\u4e5f\u652f\u6301\u5c06\u4fe1\u606f\u6570\u636e\u5bfc\u51fa\u5230<strong style=\"word-wrap: break-word; color: #c40f0f;\">cvs<\/strong>\u683c\u5f0f\u6587\u4ef6\u4e2d\uff0c\u4ece\u800c\u7528\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u6253\u5f00\uff0c\u6216\u8005\u5bfc\u5165\u5230\u6570\u636e\u5e93\u4e2d\u3002\u4f60\u53ef\u4ee5\u7528\u8be5\u547d\u4ee4\u6765\u76d1\u63a7cpu\uff0c\u5185\u5b58\u548c\u7f51\u7edc\u72b6\u6001\u968f\u7740\u65f6\u95f4\u7684\u53d8\u5316\u3002<\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" style=\"word-wrap: break-word; max-width: 700px; margin: 10px 15px;\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/6cc6bc4f05dfef6be3479e213e12c67d.png\" alt=\"\" width=\"723\" height=\"274\" \/><\/p>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">2. atop &#8211; \u76f8\u6bd4top\u66f4\u597d\u7684ASCII\u7801\u4f53\u9a8c<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u8fd9\u4e2a\u4f7f\u7528<strong style=\"word-wrap: break-word; color: #c40f0f;\">ASCII<\/strong>\u7801\u663e\u793a\u65b9\u5f0f\u7684\u547d\u4ee4\u884c\u5de5\u5177\u662f\u4e00\u4e2a\u663e\u793a\u6240\u6709\u8fdb\u7a0b\u6d3b\u52a8\u7684\u6027\u80fd\u76d1\u63a7\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u5c55\u793a\u6bcf\u65e5\u7684\u7cfb\u7edf\u65e5\u5fd7\u4ee5\u8fdb\u884c\u957f\u671f\u7684\u8fdb\u7a0b\u6d3b\u52a8\u5206\u6790\uff0c\u5e76\u9ad8\u4eae\u663e\u793a\u8fc7\u8f7d\u7684\u7cfb\u7edf\u4f7f\u7528\u8d44\u6e90\u3002\u5b83\u5305\u542b\u4e86CPU\uff0c\u5185\u5b58\uff0c\u4ea4\u6362\u7a7a\u95f4\uff0c\u78c1\u76d8\u548c\u7f51\u7edc\u5c42\u7684\u5ea6\u91cf\u6307\u6807\u3002\u6240\u6709\u8fd9\u4e9b\u529f\u80fd\u53ea\u9700\u5728\u7ec8\u7aef\u8fd0\u884c<strong style=\"word-wrap: break-word; color: #c40f0f;\">atop<\/strong>\u5373\u53ef\u3002<\/p>\n<ol style=\"word-wrap: break-word; margin: 1em; padding-left: 10px; color: #aeaeae; border-left-width: 2px; border-left-style: solid; border-left-color: #009900;\">\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># atop<\/span><\/li>\n<\/ol>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ea4\u4e92\u754c\u9762\u6765\u663e\u793a\u6570\u636e\u5e76\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" style=\"word-wrap: break-word; max-width: 700px; margin: 10px 15px;\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/be7ee64741d22115c98a87db4e89c763.jpeg\" alt=\"\" width=\"700\" height=\"249\" \/><\/p>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">3. Nmon &#8211; \u7c7bUnix\u7cfb\u7edf\u7684\u6027\u80fd\u76d1\u63a7<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">Nmon\u662f<strong style=\"word-wrap: break-word; color: #c40f0f;\">Nigel&#8217;s Monitor<\/strong>\u7f29\u5199\uff0c\u5b83\u6700\u65e9\u5f00\u53d1\u7528\u6765\u4f5c\u4e3a<strong style=\"word-wrap: break-word; color: #c40f0f;\">AIX<\/strong>\u7684\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\u3002\u5982\u679c\u4f7f\u7528<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u5728\u7ebf\u6a21\u5f0f<\/strong>\uff0c\u53ef\u4ee5\u4f7f\u7528\u5149\u6807\u952e\u5728\u5c4f\u5e55\u4e0a\u64cd\u4f5c\u5b9e\u65f6\u663e\u793a\u5728\u7ec8\u7aef\u4e0a\u7684\u76d1\u63a7\u4fe1\u606f\u3002\u4f7f\u7528<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u6355\u6349\u6a21\u5f0f<\/strong>\u80fd\u591f\u5c06\u6570\u636e\u4fdd\u5b58\u4e3a<strong style=\"word-wrap: break-word; color: #c40f0f;\">CSV<\/strong>\u683c\u5f0f\uff0c\u65b9\u4fbf\u8fdb\u4e00\u6b65\u7684\u5904\u7406\u548c\u56fe\u5f62\u5316\u5c55\u793a\u3002<\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" style=\"word-wrap: break-word; max-width: 700px; margin: 10px 15px;\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/917cadb2a78390ce97a8fc716f424be1.png\" alt=\"\" width=\"724\" height=\"435\" \/><\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u66f4\u591a\u7684\u4fe1\u606f\u53c2\u8003\u6211\u4eec\u7684nmon\u6027\u80fd\u76d1\u63a7\u6587\u7ae0\u3002<\/p>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">4. slabtop &#8211; \u663e\u793a\u5185\u6838slab\u7f13\u5b58\u4fe1\u606f<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u8fd9\u4e2a\u5e94\u7528\u80fd\u591f\u663e\u793a<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u7f13\u5b58\u5206\u914d\u5668<\/strong>\u662f\u5982\u4f55\u7ba1\u7406Linux\u5185\u6838\u4e2d\u7f13\u5b58\u7684\u4e0d\u540c\u7c7b\u578b\u7684\u5bf9\u8c61\u3002\u8fd9\u4e2a\u547d\u4ee4\u7c7b\u4f3c\u4e8etop\u547d\u4ee4\uff0c\u533a\u522b\u662f\u5b83\u7684\u91cd\u70b9\u662f\u5b9e\u65f6\u663e\u793a\u5185\u6838slab\u7f13\u5b58\u4fe1\u606f\u3002\u5b83\u80fd\u591f\u663e\u793a\u6309\u7167\u4e0d\u540c\u6392\u5e8f\u6761\u4ef6\u6765\u6392\u5e8f\u663e\u793a\u7f13\u5b58\u5217\u8868\u3002\u5b83\u540c\u65f6\u4e5f\u80fd\u591f\u663e\u793a\u4e00\u4e2aslab\u5c42\u4fe1\u606f\u7684\u7edf\u8ba1\u4fe1\u606f\u7684\u9898\u5934\u3002\u4e3e\u4f8b\u5982\u4e0b\uff1a<\/p>\n<ol style=\"word-wrap: break-word; margin: 1em; padding-left: 10px; color: #aeaeae; border-left-width: 2px; border-left-style: solid; border-left-color: #009900;\">\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop &#8211;sort=a<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop -s b<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop -s c<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop -s l<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop -s v<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop -s n<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># slabtop -s o<\/span><\/li>\n<\/ol>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><strong style=\"word-wrap: break-word; color: #c40f0f;\">\u66f4\u591a\u4fe1\u606f\u53c2\u9605<\/strong>\u5185\u6838slab\u7f13\u5b58\u6587\u7ae0\u3002<\/p>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">5. sar &#8211; \u6027\u80fd\u76d1\u63a7\u548c\u74f6\u9888\u68c0\u67e5<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><strong style=\"word-wrap: break-word; color: #c40f0f;\">sar<\/strong> \u547d\u4ee4\u53ef\u4ee5\u5c06\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6240\u9009\u7684\u7d2f\u79ef\u6d3b\u52a8\u8ba1\u6570\u5668\u5185\u5bb9\u4fe1\u606f\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u4e0a\u3002\u5176\u57fa\u4e8e\u8ba1\u6570\u503c\u548c\u65f6\u95f4\u95f4\u9694\u53c2\u6570\u7684<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u5ba1\u8ba1\u7cfb\u7edf<\/strong>\uff0c\u4f1a\u6309\u7167\u6307\u5b9a\u7684\u65f6\u95f4\u95f4\u9694\u8f93\u51fa\u6307\u5b9a\u6b21\u6570\u7684\u76d1\u63a7\u4fe1\u606f\u3002\u5982\u679c\u65f6\u95f4\u95f4\u9694\u53c2\u6570\u4e3a\u8bbe\u7f6e\u4e3a0\uff0c\u90a3\u4e48sar\u547d\u4ee4\u5c06\u4f1a\u663e\u793a\u7cfb\u7edf\u4ece\u5f00\u673a\u5230\u5f53\u65f6\u65f6\u523b\u7684\u5e73\u5747\u7edf\u8ba1\u4fe1\u606f\u3002\u6709\u7528\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<ol style=\"word-wrap: break-word; margin: 1em; padding-left: 10px; color: #aeaeae; border-left-width: 2px; border-left-style: solid; border-left-color: #009900;\">\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sar -u 2 3<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sar -u -f \/var\/log\/sa\/sa05<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sar -P ALL 1 1<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sar -r 1 3<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sar -W 1 3<\/span><\/li>\n<\/ol>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">6. Saidar &#8211; \u7b80\u5355\u7684\u7edf\u8ba1\u76d1\u63a7\u5de5\u5177<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">Saidar\u662f\u4e00\u4e2a<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u7b80\u5355<\/strong>\u4e14<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u8f7b\u91cf<\/strong>\u7684\u7cfb\u7edf\u4fe1\u606f\u76d1\u63a7\u5de5\u5177\u3002\u867d\u7136\u5b83\u65e0\u6cd5\u63d0\u4f9b\u5927\u591a\u6027\u80fd\u62a5\u8868\uff0c\u4f46\u662f\u5b83\u80fd\u591f\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u660e\u4e86\u7684\u65b9\u5f0f\u663e\u793a\u6700\u6709\u7528\u7684\u7cfb\u7edf\u8fd0\u884c\u72b6\u51b5\u6570\u636e\u3002\u4f60\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u770b\u5230\u8fd0\u884c\u65f6\u95f4\u3001\u5e73\u5747\u8d1f\u8f7d\u3001CPU\u3001\u5185\u5b58\u3001\u8fdb\u7a0b\u3001\u78c1\u76d8\u548c\u7f51\u7edc\u63a5\u53e3\u7edf\u8ba1\u4fe1\u606f\u3002<\/p>\n<ol style=\"word-wrap: break-word; margin: 1em; padding-left: 10px; color: #aeaeae; border-left-width: 2px; border-left-style: solid; border-left-color: #009900;\">\n<li><span style=\"word-wrap: break-word; color: #89bdff;\">Usage<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">:<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> saidar <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">[-<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">d delay<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">]<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">[-<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">c<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">]<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">[-<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">v<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">]<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">[-<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">h<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">]<\/span><\/li>\n<li><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">&#8211;<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">d <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">\u8bbe\u7f6e\u66f4\u65b0\u65f6\u95f4\uff08\u79d2\uff09<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">&#8211;<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">c <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">\u5f69\u8272\u663e\u793a<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">&#8211;<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">v <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">\u663e\u793a\u7248\u672c\u53f7<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">&#8211;<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">h <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">\u663e\u793a\u672c\u5e2e\u52a9<\/span><\/li>\n<\/ol>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" style=\"word-wrap: break-word; max-width: 700px; margin: 10px 15px;\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/c5c0ae0e31cf5020b8411722b4cee475.png\" alt=\"\" width=\"800\" height=\"468\" \/><\/p>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">7. top &#8211; \u7ecf\u5178\u7684Linux\u4efb\u52a1\u7ba1\u7406\u5de5\u5177<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u4f5c\u4e3a\u4e00\u4e2a\u5e7f\u4e3a\u4eba\u77e5\u7684<strong style=\"word-wrap: break-word; color: #c40f0f;\">Linux<\/strong>\u5de5\u5177\uff0c<strong style=\"word-wrap: break-word; color: #c40f0f;\">top<\/strong>\u662f\u5927\u591a\u6570\u7684\u7c7bUnix\u64cd\u4f5c\u7cfb\u7edf\u4efb\u52a1\u7ba1\u7406\u5668\u3002\u5b83\u53ef\u4ee5\u663e\u793a\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u7684\u5217\u8868\uff0c\u7528\u6237\u53ef\u4ee5\u6309\u7167\u4e0d\u540c\u7684\u6761\u4ef6\u5bf9\u8be5\u5217\u8868\u8fdb\u884c\u6392\u5e8f\u3002\u5b83\u4e3b\u8981\u663e\u793a\u4e86\u7cfb\u7edf\u8fdb\u7a0b\u5bf9<strong style=\"word-wrap: break-word; color: #c40f0f;\">CPU<\/strong>\u548c\u5185\u5b58\u7684\u4f7f\u7528\u72b6\u51b5\u3002top\u53ef\u4ee5\u5feb\u901f\u68c0\u67e5\u662f\u54ea\u4e2a\u6216\u54ea\u51e0\u4e2a\u8fdb\u7a0b\u6302\u8d77\u4e86\u4f60\u7684\u7cfb\u7edf\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u770b\u5230top\u4f7f\u7528\u7684\u4f8b\u5b50\u3002 \u4f60\u53ef\u4ee5\u5728\u7ec8\u7aef\u8f93\u5165top\u6765\u8fd0\u884c\u5b83\u5e76\u8fdb\u5165\u5230\u4ea4\u4e92\u6a21\u5f0f\uff1a<\/p>\n<ol style=\"word-wrap: break-word; margin: 1em; padding-left: 10px; color: #aeaeae; border-left-width: 2px; border-left-style: solid; border-left-color: #009900;\">\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u4ea4\u4e92\u6a21\u5f0f\u7684\u4e00\u4e9b\u5feb\u6377\u64cd\u4f5c:<\/span><\/li>\n<li><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u5168\u5c40\u547d\u4ee4:<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">&lt;\u56de\u8f66\/\u7a7a\u683c&gt;<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">?,<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">=,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> A<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> B<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> d<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> G<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> h<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> I<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> k<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> q<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> r<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> s<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> W<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> Z<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u7edf\u8ba1\u533a\u7684\u547d\u4ee4:<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> l<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> m<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> t<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span> <span style=\"word-wrap: break-word; color: #3387cc;\">1<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u4efb\u52a1\u533a\u7684\u547d\u4ee4\uff1a<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u5916\u89c2:<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> b<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> x<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> y<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> z <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">\u5185\u5bb9:<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> c<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> f<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> H<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> o<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> S<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> u <\/span><span style=\"word-wrap: break-word; color: #ffffff;\">\u5927\u5c0f:<\/span> <span style=\"word-wrap: break-word; font-style: italic;\">#, i, n \u6392\u5e8f: &lt;, &gt;, F, O, R<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u8272\u5f69\u65b9\u6848:<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">&lt;<\/span><span style=\"word-wrap: break-word; color: #89bdff;\">Ret<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">&gt;,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> a<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> B<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> b<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> H<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> M<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> q<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> S<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> T<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> w<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> z<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span> <span style=\"word-wrap: break-word; color: #3387cc;\">0<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">&#8211;<\/span> <span style=\"word-wrap: break-word; color: #3387cc;\">7<\/span><\/li>\n<li><span style=\"word-wrap: break-word; color: #ffffff;\">\u7a97\u53e3\u547d\u4ee4:<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">-,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> _<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">=,<\/span> <span style=\"word-wrap: break-word; color: #ffffff;\">+,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> A<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> a<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> G<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> g<\/span><span style=\"word-wrap: break-word; color: #ffffff;\">,<\/span><span style=\"word-wrap: break-word; color: #ffffff;\"> w<\/span><\/li>\n<\/ol>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" style=\"word-wrap: break-word; max-width: 700px; margin: 10px 15px;\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/518a159b65d9e6e6bd202e22f2a32f12.png\" alt=\"\" width=\"635\" height=\"309\" \/><\/p>\n<h4 style=\"word-wrap: break-word; margin: 4px 0px 2px; padding: 0px; font-size: 14px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #2f2f2f; font-family: Tahoma, Helvetica, SimSun, sans-serif; line-height: 25.2000007629395px; white-space: normal; background-color: #ffffff;\">8. Sysdig &#8211; \u7cfb\u7edf\u8fdb\u7a0b\u7684\u9ad8\u7ea7\u89c6\u56fe<\/h4>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><strong style=\"word-wrap: break-word; color: #c40f0f;\">Sysdig<\/strong>\u662f\u4e00\u4e2a\u80fd\u591f\u8ba9\u7cfb\u7edf\u7ba1\u7406\u5458\u548c\u5f00\u53d1\u4eba\u5458\u4ee5\u524d\u6240\u672a\u6709\u65b9\u5f0f\u6d1e\u5bdf\u5176\u7cfb\u7edf\u884c\u4e3a\u7684\u76d1\u63a7\u5de5\u5177\u3002\u5176\u5f00\u53d1\u56e2\u961f\u5e0c\u671b\u6539\u5584\u7cfb\u7edf\u7ea7\u7684\u76d1\u63a7\u65b9\u5f0f\uff0c\u901a\u8fc7\u63d0\u4f9b\u5173\u4e8e<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u5b58\u50a8\uff0c\u8fdb\u7a0b\uff0c\u7f51\u7edc\u548c\u5185\u5b58<\/strong>\u5b50\u7cfb\u7edf\u7684<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u7edf\u4e00\u6709\u5e8f<\/strong>\u4ee5\u53ca<strong style=\"word-wrap: break-word; color: #c40f0f;\">\u7c92\u5ea6\u53ef\u89c1<\/strong>\u7684\u65b9\u5f0f\u6765\u8fdb\u884c\u9519\u8bef\u6392\u67e5\uff0c\u5e76\u53ef\u4ee5\u521b\u5efa\u7cfb\u7edf\u6d3b\u52a8\u8bb0\u5f55\u6587\u4ef6\u4ee5\u4fbf\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u65f6\u95f4\u8f7b\u677e\u5206\u6790\u3002<\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\">\u7b80\u5355\u4f8b\u5b50:<\/p>\n<ol style=\"word-wrap: break-word; margin: 1em; padding-left: 10px; color: #aeaeae; border-left-width: 2px; border-left-style: solid; border-left-color: #009900;\">\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig proc.name=vim<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -p&#8221;%proc.name %fd.name&#8221; &#8220;evt.type=accept and proc.name!=httpd&#8221;<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig evt.type=chdir and user.name=root<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -l<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -L<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -c topprocs_net<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -c fdcount_by fd.sport &#8220;evt.type=accept&#8221;<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -p&#8221;%proc.name %fd.name&#8221; &#8220;evt.type=accept and proc.name!=httpd&#8221;<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -c topprocs_file<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -c fdcount_by proc.name &#8220;fd.type=file&#8221;<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -p &#8220;%12user.name %6proc.pid %12proc.name %3fd.num %fd.typechar %fd.name&#8221; evt.type=open<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -c topprocs_cpu<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -c topprocs_cpu evt.cpu=0<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig -p&#8221;%evt.arg.path&#8221; &#8220;evt.type=chdir and user.name=root&#8221;<\/span><\/li>\n<li><span style=\"word-wrap: break-word; font-style: italic;\"># sysdig evt.type=open and fd.name contains \/etc<\/span><\/li>\n<\/ol>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" style=\"word-wrap: break-word; max-width: 700px; margin: 10px 15px;\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/35a246bb8ab0631d43dbab78bd6a1ab3.jpeg\" alt=\"\" width=\"640\" height=\"249\" \/><\/p>\n<p style=\"word-wrap: break-word; margin-top: 10px; margin-bottom: 10px; padding: 0px; line-height: 2em; font-family: Tahoma, Helvetica, SimSun, sans-serif; font-size: 14px; white-space: normal; background-color: #ffffff;\"><strong style=\"word-wrap: break-word; color: #c40f0f;\">\u66f4\u591a\u4fe1\u606f<\/strong> \u53ef\u4ee5\u5728 \u5982\u4f55\u5229\u7528sysdig\u6539\u5584\u7cfb\u7edf\u5c42\u6b21\u7684\u76d1\u63a7\u548c\u9519\u8bef\u6392\u67e5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"en-media\" src=\"http:\/\/dingxuan.info\/wp\/wp-content\/uploads\/2014\/12\/9daa2abd2605a37997fa1604508c3c2b.png\" alt=\"\" width=\"480\" height=\"240\" \/><\/p>\n<\/div>\n<div>\n<div style=\"display: none;\">\u9605\u8bfb<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u6bb5\u65f6\u95f4\u4ee5\u6765\uff0c\u6211\u4eec\u5728\u7f51\u4e0a\u5411\u8bfb\u8005\u4ecb\u7ecd\u4e86\u5982\u4f55\u4e3aLinux\u4ee5\u53ca\u7c7bLinux\u64cd\u4f5c\u7cfb\u7edf\u914d\u7f6e\u591a\u79cd\u4e0d\u540c\u7684\u6027\u80fd\u76d1\u63a7\u5de5\u5177\u3002\u5728\u8fd9\u7bc7 &hellip; <a href=\"https:\/\/ybzx.vip\/wp\/?p=2052\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4f60\u503c\u5f97\u62e5\u6709\u2014\u201425\u4e2aLinux\u6027\u80fd\u76d1\u63a7\u5de5\u5177<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2053,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[127,78],"class_list":["post-2052","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network","tag-email","tag-linux"],"_links":{"self":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2052"}],"version-history":[{"count":0,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2052\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=\/wp\/v2\/media\/2053"}],"wp:attachment":[{"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ybzx.vip\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}