{"id":118,"date":"2023-08-19T15:44:50","date_gmt":"2023-08-19T07:44:50","guid":{"rendered":"https:\/\/wp.gojbk.com\/?p=118"},"modified":"2025-12-08T15:40:20","modified_gmt":"2025-12-08T07:40:20","slug":"%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95%e4%b9%8bnmon%e5%af%b9linux%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e7%9b%91%e6%8e%a7","status":"publish","type":"post","link":"https:\/\/wp.teday.com\/?p=118","title":{"rendered":"\u6027\u80fd\u6d4b\u8bd5\u4e4bnmon\u5bf9linux\u670d\u52a1\u5668\u7684\u76d1\u63a7"},"content":{"rendered":"<h4>\u4e00\u3001Nmon\u4ecb\u7ecd<\/h4>\n<blockquote>\n<p>\uff08\u8fd9\u53e5\u4e0d\u7528\u770b\u2014\u2014Nmon\u5f97\u540d\u4e8e Nigel \u7684\u76d1\u63a7\u5668\uff0c\u662fIBM\u7684\u5458\u5de5 Nigel Griffiths \u4e3a AIX \u548c Linux \u7cfb\u7edf\u5f00\u53d1\u7684\uff0c\u4f7f\u7528 Nmon \u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u76d1\u63a7\u7cfb\u7edf\u7684 CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc\u3001\u786c\u76d8\u3001\u6587\u4ef6\u7cfb\u7edf\u3001NFS\u3001\u9ad8\u8017\u8fdb\u7a0b\u3001\u8d44\u6e90\u548c IBM Power \u7cfb\u7edf\u7684\u5fae\u5206\u533a\u7684\u4fe1\u606f\uff09\u3002<\/p>\n<\/blockquote>\n<ul>\n<li>\n<p><strong>Nmon\u662f\u4e00\u6b3e\u8ba1\u7b97\u673a\u6027\u80fd\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u56e0\u4e3a\u5b83\u514d\u8d39\uff0c\u4f53\u79ef\u5c0f\uff0c\u5b89\u88c5\u7b80\u5355\uff0c\u8017\u8d39\u8d44\u6e90\u4f4e\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8eAIX\u548cLinux\u7cfb\u7edf\u3002<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u53c2\u8003<a href=\"https:\/\/www.ibm.com\/developerworks\/cn\/aix\/library\/analyze_aix\/\">IBM\u7684\u5b98\u7f51<\/a><\/strong><\/p>\n<\/li>\n<\/ul>\n<h4>\u4e8c\u3001Nmon\u4e0b\u8f7d<\/h4>\n<p>\u9996\u5148\u67e5\u770bLinux\u7cfb\u7edf\u5185\u6838\u7248\u672c\uff08\u4e24\u79cd\u65b9\u5f0f\uff09\uff1a<\/p>\n<pre class=\"prettyprint linenums\" ><code class=\"language-shell\">[root@test01 ~]# uname -a \nLinux test01 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU\/Linux<\/code><\/pre>\n<pre class=\"prettyprint linenums\" ><code>[root@test01 ~]# cat \/proc\/version\nLinux version 3.10.0-957.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 8 23:39:32 UTC 2018<\/code><\/pre>\n<h5>\u4e0b\u8f7dnmon\u8f6f\u4ef6\u5305\uff1a<\/h5>\n<pre class=\"prettyprint linenums\" ><code>IBM [\u4e0b\u8f7d\u94fe\u63a5](https:\/\/www.ibm.com\/developerworks\/community\/wikis\/home?lang=zh#\/wiki\/Power%20Systems\/page\/nmon)\n\nnmon\u5b98\u65b9 [\u4e0b\u8f7d\u94fe\u63a5](http:\/\/nmon.sourceforge.net\/pmwiki.php?n=Site.Download\uff09<\/code><\/pre>\n<h4>\u4e09\u3001\u89e3\u538b\u5b89\u88c5<\/h4>\n<pre class=\"prettyprint linenums\" ><code class=\"language-shell\">#\u89e3\u538b\n[root@test01 ~]# mkdir nmon16d\n[root@test01 ~]# tar -zxvf nmon16j.tar.gz  -C nmon16d\n\n#\u5728nmon6d\u76ee\u5f55\u4e2d\uff0c\u53ef\u4ee5\u627e\u5230nmon_power_rhel75\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5e76\u5bf9\u5b83\u6dfb\u52a0\u6267\u884c\u6743\u9650\n[root@test01 ~]# chmod +x nmon_x86_64_centos6\n\n#\u52a0\u5165\u73af\u5883\u53d8\u91cf\u8fd0\u884c\u76ee\u5f55\n[root@test01 ~]# mv nmon_power_rhel75 \/usr\/local\/bin\/nmon<\/code><\/pre>\n<h4>\u56db\u3001\u8fd0\u884cNmon<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/docs.teday.com\/server\/..\/Public\/Uploads\/2020-04-20\/5e9d5f6eb6db9.png\" alt=\"\" \/><\/p>\n<h6>\u5728\u4e0a\u9762\u7684\u4ea4\u4e92\u5f0f\u7a97\u53e3\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528nmon \u5feb\u6377\u952e\u6765\u663e\u793a\u4e0d\u540c\u7684\u7cfb\u7edf\u8d44\u6e90\u7edf\u8ba1\u6570\u636e\uff1a<\/h6>\n<blockquote>\n<p>q : \u505c\u6b62\u5e76\u9000\u51fa Nmon<br \/>\nh : \u67e5\u770b\u5e2e\u52a9<br \/>\nc : \u67e5\u770b CPU \u7edf\u8ba1\u6570\u636e<br \/>\nm : \u67e5\u770b\u5185\u5b58\u7edf\u8ba1\u6570\u636e<br \/>\nd : \u67e5\u770b\u786c\u76d8\u7edf\u8ba1\u6570\u636e<br \/>\nk : \u67e5\u770b\u5185\u6838\u7edf\u8ba1\u6570\u636e<br \/>\nn : \u67e5\u770b\u7f51\u7edc\u7edf\u8ba1\u6570\u636e<br \/>\nN : \u67e5\u770b NFS \u7edf\u8ba1\u6570\u636e<br \/>\nj : \u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u7edf\u8ba1\u6570\u636e<br \/>\nt : \u67e5\u770b\u9ad8\u8017\u8fdb\u7a0b<br \/>\nV : \u67e5\u770b\u865a\u62df\u5185\u5b58\u7edf\u8ba1\u6570\u636e<br \/>\nv : \u8be6\u7ec6\u6a21\u5f0f<\/p>\n<h6>\u6309\u4e0bc\uff0cm\uff0cd\u540e\u5982\u4e0b\u56fe\uff0cCPU\u3001\u5185\u5b58\u3001\u78c1\u76d8\u7684\u6d88\u8017\u60c5\u51b5\u90fd\u76f4\u89c2\u7684\u5c55\u73b0\u51fa\u6765\u4e86\uff0c\u6309q\u952e\u53ef\u4ee5\u9000\u51fa\u3002<\/h6>\n<\/blockquote>\n<h4>\u4e94\u3001\u6570\u636e\u91c7\u96c6<\/h4>\n<ul>\n<li><strong>\u6027\u80fd\u6d4b\u8bd5\u65f6\uff0c\u9700\u8981\u6839\u636e\u6d4b\u8bd5\u573a\u666f\u7684\u6267\u884c\u60c5\u51b5\uff0c\u5206\u6790\u4e00\u6bb5\u65f6\u95f4\u5185\u7cfb\u7edf\u8d44\u6e90\u7684\u53d8\u5316\uff0c\u8fd9\u65f6\u9700\u8981nmon\u91c7\u96c6\u6570\u636e\u5e76\u4fdd\u5b58\u4e0b\u6765\uff0c\u4ee5\u4e0b\u662f\u5e38\u7528\u7684\u53c2\u6570\uff1a<\/strong><\/li>\n<\/ul>\n<blockquote>\n<pre class=\"prettyprint linenums\" ><code>-f \u53c2\u6570:\u751f\u6210\u6587\u4ef6,\u6587\u4ef6\u540d=\u4e3b\u673a\u540d+\u5f53\u524d\u65f6\u95f4.nmon\n\n-T \u53c2\u6570:\u663e\u793a\u8d44\u6e90\u5360\u6709\u7387\u8f83\u9ad8\u7684\u8fdb\u7a0b\n\n-s \u53c2\u6570:-s 10\u8868\u793a\u6bcf\u969410\u79d2\u91c7\u96c6\u4e00\u6b21\u6570\u636e\n\n-c \u53c2\u6570:-s 10\u8868\u793a\u603b\u5171\u91c7\u96c6\u5341\u6b21\u6570\u636e\n\n-m \u53c2\u6570:\u6307\u5b9a\u6587\u4ef6\u4fdd\u5b58\u76ee\u5f55<\/code><\/pre>\n<\/blockquote>\n<p>\u5177\u4f53\u7684\u53c2\u6570\u5b66\u4e60\u53ef\u53c2\u8003\u535a\u5ba2\uff1a<a href=\"https:\/\/www.cnblogs.com\/iclk\/p\/4456311.html\">https:\/\/www.cnblogs.com\/iclk\/p\/4456311.html<\/a><\/p>\n<h4>\u6d4b\u8bd5<\/h4>\n<ul>\n<li>\n<p><strong>\u5982\u6bcf\u96945\u79d2\u91c7\u96c6\u4e00\u6b21\uff0c\u4e00\u5171\u91c7\u96c612\u6b21\uff0c\u5c31\u662f1\u5206\u949f\u7684\u6570\u636e<\/strong><\/p>\n<pre class=\"prettyprint linenums\" ><code class=\"language-shell\">[root@test01 ~]# nmon -f -s 5 -c 12 -m \/root\n[root@test01 ~]# nmon -f -T -s 5 -c 12 -m \/root\n[root@test01 ~]# ll\ntotal 1068\ndrwxr-xr-x. 2 root root     139 Apr 20 16:02 nmon16d\n-rw-r--r--. 1 root root 1014491 Apr 20 15:59 nmon16j.tar.gz\n-rw-r--r--. 1 root root   41539 Apr 20 16:22 test01_200420_1621.nmon\n-rw-r--r--. 1 root root   28866 Apr 20 16:42 test01_200420_1642.nmon<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u91c7\u96c6\u5b8c\u6bd5\u540e\uff0c\u5982\u9700\u5173\u95ednmon\u8fdb\u7a0b\uff0c\u9700\u8981\u83b7\u53d6nmon\u7684pid<\/strong><\/p>\n<pre class=\"prettyprint linenums\" ><code class=\"language-shell\">[root@test01 ~]# ps -ef | grep nmon\n[root@test01 ~]# pkill nmon<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>\u516d\u3001\u6570\u636e\u5206\u6790<\/h4>\n<ul>\n<li>\n<p><strong>\u501f\u52a9nmon analyser\u53ef\u4ee5\u628anmon\u91c7\u96c6\u7684\u6570\u636e\u751f\u6210\u76f4\u89c2\u7684Excel\u8868\uff0cnmon analyser\u53ef\u4ee5\u5728IBM\u7684\u5b98\u7f51\u4e0b\u8f7d<\/strong><br \/>\n<a href=\"https:\/\/www.ibm.com\/developerworks\/community\/wikis\/home?lang=en#!\/wiki\/Power+Systems\/page\/nmon_analyser\">IBM\u7684\u5b98\u7f51<\/a><\/p>\n<blockquote>\n<p>\u5728windows\u4e0a\u4e0b\u8f7d\u540e\u89e3\u538b\uff0c\u6709word\u548cexce\u4e24\u4e2a\u6587\u6863\uff0cWord\u662f\u8bf4\u660e\u6587\u6863\uff0c\u5305\u62ec\u66f4\u65b0\u65e5\u5fd7\uff0c\u8be6\u7ec6\u53c2\u6570\u7b49\uff0c\u5176\u4e2d\u7684Excel\u5c31\u662fnmon analyser\u5de5\u5177\u4e86\u3002<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p><strong>\u6253\u5f00nmon analyser<\/strong><br \/>\n\u53cc\u51fb\u6253\u5f00nmon analyser v61.xlsm\uff0c\u70b9\u51fbAnalyze nmon data\u6309\u94ae<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528nmon analyser\u751f\u6210\u56fe\u8868<\/strong><br \/>\n\u6210\u529f\u6253\u5f00nmon analyser\u540e\uff0c\u70b9\u51fbAnalyze nmon data\u6309\u94ae\uff0c\u9009\u62e9nmon\u6570\u636e\u6587\u4ef6\uff0c\u4f1a\u518d\u6b21\u63d0\u793a\u53e6\u5b58\u4e3a\uff0c\u9009\u62e9\u5730\u5740\u4fdd\u5b58\u5373\u53ef\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0b\u56fe\u5c31\u662fnmon\u751f\u6210\u7684\u6570\u636e\u62a5\u544a\u622a\u56fe\uff0c\u5e95\u90e8\u53ef\u4ee5\u5207\u6362\u5176\u4ed6\u8d44\u6e90\u4fe1\u606f\u3002<\/strong><br \/>\n<img decoding=\"async\" src=\"https:\/\/docs.gojbk.com\/server\/..\/Public\/Uploads\/2020-04-20\/5e9d6217519db.png\" alt=\"\" \/><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001Nmon\u4ecb\u7ecd \uff08\u8fd9\u53e5\u4e0d\u7528\u770b\u2014\u2014Nmon\u5f97\u540d\u4e8e Nigel \u7684\u76d1\u63a7\u5668\uff0c\u662fIBM\u7684\u5458\u5de5 Nigel Griffiths \u4e3a AIX \u548c Linux \u7cfb\u7edf\u5f00\u53d1\u7684\uff0c\u4f7f\u7528 Nmon \u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u76d1\u63a7\u7cfb\u7edf\u7684 CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc\u3001\u786c\u76d8\u3001\u6587\u4ef6\u7cfb\u7edf\u3001NFS\u3001\u9ad8\u8017\u8fdb\u7a0b\u3001\u8d44\u6e90\u548c IBM Power \u7cfb\u7edf\u7684\u5fae\u5206\u533a\u7684\u4fe1\u606f\uff09\u3002 Nmon\u662f\u4e00\u6b3e\u8ba1\u7b97\u673a\u6027\u80fd\u7cfb\u7edf\u76d1\u63a7\u5de5\u5177\uff0c\u56e0\u4e3a\u5b83\u514d\u8d39\uff0c\u4f53\u79ef\u5c0f\uff0c\u5b89\u88c5\u7b80\u5355\uff0c\u8017\u8d39\u8d44\u6e90\u4f4e\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8eAI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/wp.teday.com\/index.php?rest_route=\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.teday.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.teday.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.teday.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.teday.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=118"}],"version-history":[{"count":10,"href":"https:\/\/wp.teday.com\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/wp.teday.com\/index.php?rest_route=\/wp\/v2\/posts\/118\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/wp.teday.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.teday.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.teday.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}