{"id":5893,"date":"2022-06-15T09:42:27","date_gmt":"2022-06-15T01:42:27","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=5893"},"modified":"2022-06-15T12:35:40","modified_gmt":"2022-06-15T04:35:40","slug":"rapid-diagnostic-linux-performance","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rapid-diagnostic-linux-performance.html","title":{"rendered":"\u5feb\u901f\u8bca\u65adLinux\u6027\u80fd"},"content":{"rendered":"
\n

\u672c\u6587\u7531lrxjmw.cn\u56e2\u961f\u6210\u5458\u9b4f\u4e3d\u733f<\/span>\u6574\u7406\u53d1\u5e03\uff0c\u70b9\u6b64\u67e5\u770b\u6700\u65b0Linux\u8d44\u8baf<\/a><\/span><\/strong>\u3002<\/p>\n<\/div>\n\n\n\n
\u5bfc\u8bfb<\/td>\n\u5f53\u4f60\u4e3a\u4e86\u89e3\u51b3\u4e00\u4e2a\u6027\u80fd\u95ee\u9898\u767b\u5f55\u5230\u4e00\u53f0 Linux \u670d\u52a1\u5668\uff1a\u5728\u7b2c\u4e00\u5206\u949f\u4f60\u5e94\u8be5\u68c0\u67e5\u4e9b\u4ec0\u4e48\uff1f<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"small-Linux_performance\"
\n\u901a\u8fc7\u8fd0\u884c\u4e0b\u9762\u5341\u4e2a\u547d\u4ee4\uff0c\u4f60\u5c31\u80fd\u5728\u516d\u5341\u79d2\u5185\u7c97\u7565\u5730\u4e86\u89e3\u7cfb\u7edf\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u53ca\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\u3002\u901a\u8fc7\u67e5\u770b\u8fd9\u4e9b\u547d\u4ee4\u8f93\u51fa\u7684\u9519\u8bef\u4fe1\u606f\u548c\u8d44\u6e90\u9971\u548c\u5ea6\uff08\u5b83\u4eec\u90fd\u5f88\u5bb9\u6613\u770b\u61c2\uff09\uff0c\u4f60\u53ef\u4ee5\u63a5\u4e0b\u6765\u5bf9\u8d44\u6e90\u8fdb\u884c\u4f18\u5316\u3002\u9971\u548c\u662f\u6307\u67d0\u4e2a\u8d44\u6e90\u7684\u8d1f\u8f7d\u8d85\u51fa\u4e86\u5176\u80fd\u591f\u5904\u7406\u7684\u9650\u5ea6\uff0c\u4e00\u65e6\u51fa\u73b0\u9971\u548c\uff0c\u5b83\u901a\u5e38\u4f1a\u5728\u8bf7\u6c42\u961f\u5217\u7684\u957f\u5ea6\u6216\u7b49\u5f85\u65f6\u95f4\u4e0a\u66b4\u9732\u51fa\u6765\u3002<\/p>\n

uptime\r\ndmesg | tail\r\nvmstat 1\r\nmpstat -P ALL 1\r\npidstat 1\r\niostat -xz 1\r\nfree -m\r\nsar -n DEV 1\r\nsar -n TCP,ETCP 1\r\ntop\r\n<\/pre>\n

\u5176\u4e2d\u67d0\u4e9b\u547d\u4ee4\u9700\u8981\u9884\u5148\u5b89\u88c5 sysstat \u8f6f\u4ef6\u5305,\u8fd9\u4e9b\u547d\u4ee4\u5c55\u793a\u51fa\u6765\u7684\u4fe1\u606f\u80fd\u591f\u5e2e\u4f60\u5b9e\u65bd USE \u65b9\u6cd5\uff08\u4e00\u79cd\u7528\u4e8e\u5b9a\u4f4d\u6027\u80fd\u74f6\u9888\u7684\u65b9\u6cd5\uff09\uff0c\u6bd4\u5982\u68c0\u67e5\u5404\u79cd\u8d44\u6e90\uff08\u5982 CPU\u3001\u5185\u5b58\u3001\u78c1\u76d8\u7b49\uff09\u7684\u4f7f\u7528\u7387\u3001\u9971\u548c\u5ea6\u548c\u9519\u8bef\u4fe1\u606f,\u53e6\u5916\u5728\u5b9a\u4f4d\u95ee\u9898\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\u6765\u6392\u9664\u67d0\u4e9b\u5bfc\u81f4\u95ee\u9898\u7684\u53ef\u80fd\u6027\uff0c\u5e2e\u52a9\u4f60\u7f29\u5c0f\u68c0\u67e5\u8303\u56f4\uff0c\u4e3a\u4e0b\u4e00\u6b65\u68c0\u67e5\u6307\u660e\u65b9\u5411,\u4e0b\u9762\u7684\u7ae0\u8282\u5c06\u4f1a\u4ee5\u5728\u4e00\u4e2a\u751f\u4ea7\u73af\u5883\u4e0a\u6267\u884c\u8fd9\u4e9b\u547d\u4ee4\u7684\u5f62\u5f0f\u4f5c\u4e3a\u4f8b\u5b50\uff0c\u7b80\u5355\u4ecb\u7ecd\u8fd9\u4e9b\u547d\u4ee4,\u82e5\u60f3\u8be6\u7ec6\u4e86\u89e3\u8fd9\u4e9b\u5de5\u5177\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u8bf7\u53c2\u8003\u5b83\u4eec\u7684 man \u6587\u6863\u3002<\/p>\n

1. uptime<\/strong><\/div>\n
$ uptime\r\n23:51:26 up 21:31, 1 user, load average: 30.02, 26.43, 19.02\r\n<\/pre>\n

\u8fd9\u662f\u4e00\u79cd\u7528\u6765\u5feb\u901f\u67e5\u770b\u7cfb\u7edf\u5e73\u5747\u8d1f\u8f7d\u7684\u65b9\u6cd5\uff0c\u5b83\u8868\u660e\u4e86\u7cfb\u7edf\u4e2d\u6709\u591a\u5c11\u8981\u8fd0\u884c\u7684\u4efb\u52a1\uff08\u8fdb\u7a0b\uff09,\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u8fd9\u4e9b\u6570\u5b57\u5305\u542b\u4e86\u9700\u8981\u5728 CPU \u4e2d\u8fd0\u884c\u7684\u8fdb\u7a0b\u4ee5\u53ca\u6b63\u5728\u7b49\u5f85 I\/O\uff08\u901a\u5e38\u662f\u78c1\u76d8 I\/O\uff09\u7684\u8fdb\u7a0b,\u5b83\u4ec5\u4ec5\u662f\u5bf9\u7cfb\u7edf\u8d1f\u8f7d\u7684\u4e00\u4e2a\u7c97\u7565\u5c55\u793a\uff0c\u7a0d\u5fae\u770b\u4e0b\u5373\u53ef,\u4f60\u8fd8\u9700\u8981\u5e94\u7528\u5176\u4ed6\u5de5\u5177\u6765\u8fdb\u4e00\u6b65\u4e86\u89e3\u5177\u4f53\u60c5\u51b5\u3002
\n\u6700\u540e\u7684\u4e09\u4e2a\u6570\u5b57\u5c55\u793a\u7684\u662f\u4e00\u5206\u949f\u3001\u4e94\u5206\u949f\u548c\u5341\u4e94\u5206\u949f\u5185\u7cfb\u7edf\u7684\u8d1f\u8f7d\u603b\u91cf\u5e73\u5747\u503c\u6309\u7167\u6307\u6570\u6bd4\u4f8b\u538b\u7f29\u5f97\u5230\u7684\u7ed3\u679c\u3002\u6211\u4eec\u53ef\u4ee5\u4ece\u4e2d\u770b\u5230\u7cfb\u7edf\u7684\u8d1f\u8f7d\u662f\u5982\u4f55\u968f\u65f6\u95f4\u53d8\u5316\u7684\uff0c\u5728\u4e0a\u9762\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7cfb\u7edf\u8d1f\u8f7d\u5728\u968f\u7740\u65f6\u95f4\u589e\u52a0\uff0c\u56e0\u4e3a\u6700\u8fd1\u4e00\u5206\u949f\u7684\u8d1f\u8f7d\u503c\u8d85\u8fc7\u4e86 30\uff0c\u800c 15 \u5206\u949f\u7684\u5e73\u5747\u8d1f\u8f7d\u5219\u53ea\u6709 19\uff0c\u8fd9\u6837\u663e\u8457\u7684\u5dee\u8ddd\u5305\u542b\u4e86\u5f88\u591a\u542b\u4e49\uff0c\u6bd4\u65b9 CPU \u8d1f\u8f7d\u3002\u82e5\u8981\u8fdb\u4e00\u6b65\u786e\u8ba4\u7684\u8bdd\uff0c\u5219\u8981\u8fd0\u884c vmstat \u6216 mpstat \u547d\u4ee4\uff0c\u8fd9\u4e24\u4e2a\u547d\u4ee4\u8bf7\u53c2\u8003\u540e\u9762\u7684\u7b2c 3 \u548c\u7b2c 4 \u7ae0\u8282\u3002<\/p>\n

2. dmesg | tail<\/strong><\/div>\n
$ dmesg | tail[1880957.563150] perl invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0\r\n[...]\r\n[1880957.563400] Out of memory: Kill process 18694 (perl) score 246 or sacrifice child\r\n[1880957.563408] Killed process 18694 (perl) total-vm:1972392kB, anon-rss:1953348kB, file-rss:0kB\r\n[2320864.954447] TCP: Possible SYN flooding on port 7001. Dropping request. Check SNMP counters.\r\n<\/pre>\n

\u8fd9\u6761\u547d\u4ee4\u663e\u5f0f\u4e86\u6700\u8fd1\u7684 10 \u6761\u7cfb\u7edf\u6d88\u606f\uff0c\u5f53\u7136\u524d\u63d0\u662f\u5b83\u4eec\u4f9d\u7136\u5b58\u5728\uff0c\u67e5\u627e\u80fd\u591f\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u7684\u9519\u8bef\u3002
\n\u4e0a\u9762\u7684\u4f8b\u5b50\u5305\u542b\u4e86 oom-killer\uff0c\u4ee5\u53ca TCP \u4e22\u5f03\u4e00\u4e2a\u8bf7\u6c42\uff0c\u5343\u4e07\u4e0d\u8981\u9519\u8fc7\u8fd9\u4e00\u6b65\uff01dmesg \u547d\u4ee4\u6c38\u8fdc\u503c\u5f97\u4e00\u8bd5\u3002<\/p>\n

3. vmstat 1<\/strong><\/div>\n
$ vmstat 1procs ---------memory---------- ---swap-- -----io---- -system-- ------cpu-----\r\nr b swpd free buff cache si so bi bo in cs us sy id wa st\r\n34 0 0 200889792 73708 591828 0 0 0 5 6 10 96 1 3 0 0\r\n32 0 0 200889920 73708 591860 0 0 0 592 13284 4282 98 1 1 0 0\r\n32 0 0 200890112 73708 591860 0 0 0 0 9501 2154 99 1 0 0 0\r\n32 0 0 200889568 73712 591856 0 0 0 48 11900 2459 99 0 0 0 0\r\n32 0 0 200890208 73712 591860 0 0 0 0 15898 4840 98 1 1 0 0\r\n^C\r\n<\/pre>\n

vmstat(8) \u662f\u865a\u62df\u5185\u5b58\u7edf\u8ba1\u7684\u7b80\u79f0\uff0c\u5176\u662f\u4e00\u4e2a\u5e38\u7528\u5de5\u5177\uff08\u51e0\u5341\u5e74\u524d\u4e3a\u4e86 BSD \u6240\u521b\u5efa\uff09\uff0c\u5176\u4f1a\u5728\u6bcf\u884c\u672b\u5c3e\u6253\u5370\u4e00\u6761\u5173\u952e\u7684\u670d\u52a1\u5668\u7684\u7edf\u8ba1\u6458\u8981\uff0cvmstat \u547d\u4ee4\u6307\u5b9a\u4e00\u4e2a\u53c2\u6570 1 \u8fd0\u884c\uff0c\u662f\u8981\u6253\u5370\u6bcf\u4e00\u79d2\u7684\u7edf\u8ba1\u6458\u8981\uff0c\uff08\u4f8b\u5b50\u4e2d\u7684\u8fd9\u4e2a\u7248\u672c\u7684 vmstat\uff09\u8f93\u51fa\u7684\u7b2c\u4e00\u884c\u7684\u90a3\u4e9b\u5217\uff0c\u663e\u5f0f\u7684\u662f\u5f00\u673a\u4ee5\u6765\u7684\u5e73\u5747\u503c\uff0c\u800c\u4e0d\u662f\u524d\u4e00\u79d2\u7684\u503c\u3002
\n\u73b0\u5728\uff0c\u6211\u4eec\u8df3\u8fc7\u7b2c\u4e00\u884c\uff0c\u9664\u975e\u4f60\u60f3\u8981\u4e86\u89e3\u5e76\u8bb0\u4f4f\u6bcf\u4e00\u5217\uff0c\u68c0\u67e5\u8fd9\u4e9b\u5217\uff1a<\/p>\n

r\uff1a<\/strong>CPU \u4e2d\u6b63\u5728\u8fd0\u884c\u548c\u7b49\u5f85\u8fd0\u884c\u7684\u8fdb\u7a0b\u7684\u6570\u91cf\uff0c\u5176\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6bd4\u5e73\u5747\u8d1f\u8f7d\u66f4\u597d\u7684\u4fe1\u53f7\u6765\u786e\u5b9a CPU \u662f\u5426\u9971\u548c\uff0c\u56e0\u4e3a\u5176\u4e0d\u5305\u542b I\/O\uff0c\u5982\u679c\u201cr\u201d\u7684\u503c\u5927\u4e8e\u4e86 CPU \u7684\u6570\u91cf\u5c31\u8868\u793a\u5df2\u7ecf\u9971\u548c\u4e86\u3002\r\nfree\uff1a<\/strong>\u4ee5 kb \u4e3a\u5355\u4f4d\u663e\u5f0f\u7684\u7a7a\u95f2\u5185\u5b58,\u5982\u679c\u6570\u5b57\u4f4d\u6570\u5f88\u591a\uff0c\u8bf4\u660e\u4f60\u6709\u8db3\u591f\u7684\u7a7a\u95f2\u5185\u5b58,\u201cfree -m\u201d \u547d\u4ee4\uff0c\u662f\u4e0b\u9762\u7684\u7b2c\u4e03\u4e2a\u547d\u4ee4\uff0c\u5176\u53ef\u4ee5\u66f4\u597d\u7684\u8bf4\u660e\u7a7a\u95f2\u5185\u5b58\u7684\u72b6\u6001\u3002\r\nsi, so\uff1a<\/strong>\u4ee3\u8868Swap-ins \u548c swap-outs,\u5982\u679c\u5b83\u4eec\u4e0d\u662f\u96f6\uff0c\u5219\u4ee3\u8868\u4f60\u7684\u5185\u5b58\u4e0d\u8db3\u4e86\u3002\r\nus, sy, id, wa, st\uff1a<\/strong>\u8fd9\u4e9b\u90fd\u662f\u5e73\u5747\u4e86\u6240\u6709 CPU \u7684 CPU \u5206\u89e3\u65f6\u95f4\uff0c\u5b83\u4eec\u5206\u522b\u662f\u7528\u6237\u65f6\u95f4\uff08user\uff09\u3001\u7cfb\u7edf\u65f6\u95f4\uff08\u5185\u6838\uff09\uff08system\uff09\u3001\u7a7a\u95f2\uff08idle\uff09\u3001\u7b49\u5f85 I\/O\uff08wait\uff09\u3001\u4ee5\u53ca\u5360\u7528\u65f6\u95f4\uff08stolen\uff09\uff08\u88ab\u5176\u4ed6\u8bbf\u5ba2\uff0c\u6216\u4f7f\u7528 Xen\uff0c\u8bbf\u5ba2\u81ea\u5df1\u72ec\u7acb\u7684\u9a71\u52a8\u57df\uff09\u3002\r\n<\/pre>\n

CPU \u5206\u89e3\u65f6\u95f4\u5c06\u4f1a\u901a\u8fc7\u7528\u6237\u65f6\u95f4\u52a0\u7cfb\u7edf\u65f6\u95f4\u786e\u8ba4 CPU \u662f\u5426\u4e3a\u5fd9\u788c\u72b6\u6001\uff1b\u7b49\u5f85 I\/O \u7684\u65f6\u95f4\u4e00\u76f4\u4e0d\u53d8\u5219\u8868\u660e\u4e86\u4e00\u4e2a\u78c1\u76d8\u74f6\u9888\uff1b\u8fd9\u5c31\u662f CPU \u7684\u95f2\u7f6e\uff0c\u56e0\u4e3a\u4efb\u52a1\u90fd\u963b\u585e\u5728\u7b49\u5f85\u6302\u8d77\u78c1\u76d8 I\/O \u4e0a\u4e86\uff0c\u4f60\u53ef\u4ee5\u628a\u7b49\u5f85 I\/O \u5f53\u6210\u662f CPU \u95f2\u7f6e\u7684\u53e6\u4e00\u79cd\u5f62\u5f0f\uff0c\u5176\u7ed9\u51fa\u4e86\u4e3a\u4ec0\u4e48 CPU \u95f2\u7f6e\u7684\u4e00\u4e2a\u7ebf\u7d22\uff0c\u5bf9\u4e8e I\/O \u5904\u7406\u6765\u8bf4\uff0c\u7cfb\u7edf\u65f6\u95f4\u662f\u5f88\u91cd\u8981\u7684\uff0c\u4e00\u4e2a\u9ad8\u4e8e 20% \u7684\u5e73\u5747\u7cfb\u7edf\u65f6\u95f4\uff0c\u53ef\u4ee5\u503c\u5f97\u8fdb\u4e00\u6b65\u7684\u63a2\u8ba8\uff1a\u4e5f\u8bb8\u5185\u6838\u5728\u5904\u7406 I\/O \u65f6\u6548\u7387\u592a\u4f4e\u4e86\u3002
\n\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0cCPU \u65f6\u95f4\u51e0\u4e4e\u5b8c\u5168\u82b1\u5728\u4e86\u7528\u6237\u7ea7\uff0c\u8868\u660e\u5e94\u7528\u7a0b\u5e8f\u5360\u7528\u4e86\u592a\u591a CPU \u65f6\u95f4\uff0c\u800c CPU \u7684\u5e73\u5747\u4f7f\u7528\u7387\u4e5f\u5728 90% \u4ee5\u4e0a\uff0c\u5f53\u7136\u8fd9\u4e0d\u4e00\u5b9a\u662f\u4e00\u4e2a\u95ee\u9898\uff0c\u68c0\u67e5\u4e00\u4e0b\u201cr\u201d\u5217\u4e2d\u7684\u9971\u548c\u5ea6\u5c31\u80fd\u5224\u65ad\u4e86\u3002<\/p>\n

4. mpstat -P ALL 1<\/strong><\/div>\n
$ mpstat -P ALL 1Linux 3.13.0-49-generic (titanclusters-xxxxx) 07\/14\/2015 _x86_64_ (32 CPU)\r\n\r\n07:38:49 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle\r\n07:38:50 PM all 98.47 0.00 0.75 0.00 0.00 0.00 0.00 0.00 0.00 0.78\r\n07:38:50 PM 0 96.04 0.00 2.97 0.00 0.00 0.00 0.00 0.00 0.00 0.99\r\n07:38:50 PM 1 97.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 2.00\r\n07:38:50 PM 2 98.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 1.00\r\n07:38:50 PM 3 96.97 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 3.03\r\n[...]\r\n<\/pre>\n

\u8fd9\u4e2a\u547d\u4ee4\u6253\u5370\u6bcf\u4e2a CPU \u7684 CPU \u5206\u89e3\u65f6\u95f4\uff0c\u5176\u53ef\u7528\u4e8e\u5bf9\u4e00\u4e2a\u4e0d\u5747\u8861\u7684\u4f7f\u7528\u60c5\u51b5\u8fdb\u884c\u68c0\u67e5\uff0c\u4e00\u4e2a\u5355\u72ec CPU \u5f88\u5fd9\u788c\u5219\u4ee3\u8868\u4e86\u6b63\u5728\u8fd0\u884c\u4e00\u4e2a\u5355\u7ebf\u7a0b\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

5. pidstat 1<\/strong><\/div>\n
$ pidstat 1Linux 3.13.0-49-generic (titanclusters-xxxxx) 07\/14\/2015 _x86_64_ (32 CPU)\r\n\r\n07:41:02 PM UID PID %usr %system %guest %CPU CPU Command\r\n07:41:03 PM 0 9 0.00 0.94 0.00 0.94 1 rcuos\/0\r\n07:41:03 PM 0 4214 5.66 5.66 0.00 11.32 15 mesos-slave\r\n07:41:03 PM 0 4354 0.94 0.94 0.00 1.89 8 java\r\n07:41:03 PM 0 6521 1596.23 1.89 0.00 1598.11 27 java\r\n07:41:03 PM 0 6564 1571.70 7.55 0.00 1579.25 28 java\r\n07:41:03 PM 60004 60154 0.94 4.72 0.00 5.66 9 pidstat\r\n\r\n07:41:03 PM UID PID %usr %system %guest %CPU CPU Command\r\n07:41:04 PM 0 4214 6.00 2.00 0.00 8.00 15 mesos-slave\r\n07:41:04 PM 0 6521 1590.00 1.00 0.00 1591.00 27 java\r\n07:41:04 PM 0 6564 1573.00 10.00 0.00 1583.00 28 java\r\n07:41:04 PM 108 6718 1.00 0.00 0.00 1.00 0 snmp-pass\r\n07:41:04 PM 60004 60154 1.00 4.00 0.00 5.00 9 pidstat\r\n^C\r\n<\/pre>\n

pidstat \u547d\u4ee4\u6709\u70b9\u50cf top \u547d\u4ee4\u5bf9\u6bcf\u4e2a\u8fdb\u7a0b\u7684\u7edf\u8ba1\u6458\u8981\uff0c\u4f46\u5faa\u73af\u6253\u5370\u4e00\u4e2a\u6eda\u52a8\u7684\u7edf\u8ba1\u6458\u8981\u6765\u4ee3\u66ff top \u7684\u5237\u5c4f\uff0c\u5176\u53ef\u7528\u4e8e\u5b9e\u65f6\u67e5\u770b\uff0c\u540c\u65f6\u4e5f\u53ef\u5c06\u4f60\u6240\u770b\u5230\u7684\u4e1c\u897f\uff08\u590d\u5236\u7c98\u8d34\uff09\u5230\u4f60\u7684\u8c03\u67e5\u8bb0\u5f55\u4e2d\u3002
\n\u4e0a\u9762\u7684\u4f8b\u5b50\u8868\u660e\u4e24\u4e2a Java \u8fdb\u7a0b\u6b63\u5728\u6d88\u8017 CPU\u3002%CPU \u8fd9\u5217\u662f\u6240\u6709 CPU \u5408\u8ba1\u7684\uff1b1591% \u8868\u793a\u8fd9\u4e2a Java \u8fdb\u7a0b\u6d88\u8017\u4e86\u5c06\u8fd1 16 \u4e2a CPU\u3002<\/p>\n

6. iostat -xz 1<\/strong><\/div>\n
$ iostat -xz 1Linux 3.13.0-49-generic (titanclusters-xxxxx) 07\/14\/2015 _x86_64_ (32 CPU)\r\n\r\navg-cpu: %user %nice %system %iowait %steal %idle\r\n73.96 0.00 3.73 0.03 0.06 22.21\r\n\r\nDevice: rrqm\/s wrqm\/s r\/s w\/s rkB\/s wkB\/s avgrq-sz avgqu-sz await r_await w_await svctm %util\r\nxvda 0.00 0.23 0.21 0.18 4.52 2.08 34.37 0.00 9.98 13.80 5.42 2.44 0.09\r\nxvdb 0.01 0.00 1.02 8.94 127.97 598.53 145.79 0.00 0.43 1.78 0.28 0.25 0.25\r\nxvdc 0.01 0.00 1.02 8.86 127.79 595.94 146.50 0.00 0.45 1.82 0.30 0.27 0.26\r\ndm-0 0.00 0.00 0.69 2.32 10.47 31.69 28.01 0.01 3.23 0.71 3.98 0.13 0.04\r\ndm-1 0.00 0.00 0.00 0.94 0.01 3.78 8.00 0.33 345.84 0.04 346.81 0.01 0.00\r\ndm-2 0.00 0.00 0.09 0.07 1.35 0.36 22.50 0.00 2.55 0.23 5.62 1.78 0.03\r\n[...]\r\n^C\r\n<\/pre>\n

\u65e0\u8bba\u662f\u5bf9\u5de5\u4f5c\u8d1f\u8f7d\u8fd8\u662f\u6027\u80fd\u8868\u73b0\u6765\u8bf4\uff0c\u8fd9\u90fd\u662f\u4e00\u4e2a\u5f88\u68d2\u7684\u7528\u4e8e\u67e5\u770b\u5757\u8bbe\u5907\uff08\u78c1\u76d8\uff09\u60c5\u51b5\u7684\u5de5\u5177\u3002
\n\u67e5\u770b\u4e2a\u5217\uff1a<\/p>\n

r\/s, w\/s, rkB\/s, wkB\/s\uff1a<\/strong>\u8fd9\u4e9b\u5206\u522b\u4ee3\u8868\u8be5\u8bbe\u5907\u6bcf\u79d2\u7684\u8bfb\u6b21\u6570\u3001\u5199\u6b21\u6570\u3001\u8bfb\u53d6 kb \u6570\uff0c\u548c\u5199\u5165 kb \u6570\uff0c\u8fd9\u4e9b\u6570\u503c\u7528\u4e8e\u63cf\u8ff0\u5de5\u4f5c\u8d1f\u8f7d\u60c5\u51b5\uff0c\u6027\u80fd\u8fdf\u6ede\u95ee\u9898\u5219\u53ef\u80fd\u4ec5\u4ec5\u662f\u7531\u4e8e\u65bd\u52a0\u4e86\u8fc7\u5927\u7684\u8d1f\u8f7d\u3002\r\nawait\uff1a<\/strong>\u8868\u793a\u4ee5\u6beb\u79d2\u4e3a\u5355\u4f4d\u7684 I\/O \u5e73\u5747\u6d88\u8017\u65f6\u95f4\uff0c\u8fd9\u662f\u5e94\u7528\u7a0b\u5e8f\u6d88\u8017\u7684\u5b9e\u9645\u65f6\u95f4\uff0c\u56e0\u4e3a\u5b83\u5305\u62ec\u4e86\u6392\u961f\u65f6\u95f4\u548c\u5904\u7406\u65f6\u95f4\uff0c\u6bd4\u9884\u671f\u8017\u7528\u4e86\u66f4\u591a\u7684\u5e73\u5747\u65f6\u95f4\u5c31\u53ef\u80fd\u610f\u5473\u7740\u8bbe\u5907\u7684\u9971\u548c\uff0c\u6216\u8bbe\u5907\u51fa\u4e86\u95ee\u9898\u3002\r\navgqu-sz\uff1a<\/strong>\u5411\u8bbe\u5907\u53d1\u51fa\u7684\u8bf7\u6c42\u7684\u5e73\u5747\u6570\u91cf\uff0c\u8be5\u503c\u5927\u4e8e 1 \u8bf4\u660e\u5df2\u7ecf\u9971\u548c\u4e86\uff08\u867d\u8bf4\u8bbe\u5907\u53ef\u4ee5\u5e76\u884c\u5904\u7406\u8bf7\u6c42\uff0c\u5c24\u5176\u662f\u7531\u591a\u4e2a\u78c1\u76d8\u7ec4\u6210\u7684\u865a\u62df\u8bbe\u5907\u3002\uff09\r\n%util\uff1a<\/strong>\u8bbe\u5907\u5229\u7528\u7387\uff0c\u8fd9\u4e2a\u503c\u662f\u4e00\u4e2a\u663e\u793a\u51fa\u8be5\u8bbe\u5907\u5728\u5de5\u4f5c\u65f6\u6bcf\u79d2\u5904\u4e8e\u5fd9\u788c\u72b6\u6001\u7684\u767e\u5206\u6bd4\uff0c\u867d\u7136\u5b83\u53d6\u51b3\u4e8e\u8bbe\u5907\u672c\u8eab\u7269\u7406\u6027\u80fd\uff0c\u82e5\u503c\u5927\u4e8e 60\uff05\uff0c\u901a\u5e38\u8868\u660e\u6027\u80fd\u4e0d\u4f73\uff08\u53ef\u4ee5\u4ece await \u4e2d\u770b\u51fa\uff09\uff0c\u5f53\u503c\u63a5\u8fd1 100% \u901a\u5e38\u610f\u5473\u7740\u5df2\u9971\u548c\u3002\r\n<\/pre>\n

\u5982\u679c\u8be5\u5b58\u50a8\u8bbe\u5907\u662f\u4e00\u4e2a\u9762\u5411\u5f88\u591a\u540e\u7aef\u78c1\u76d8\u7684\u903b\u8f91\u78c1\u76d8\u8bbe\u5907\uff0c\u5219 100% \u5229\u7528\u7387\u53ef\u80fd\u53ea\u662f\u610f\u5473\u7740\u5f53\u524d\u6b63\u5728\u5904\u7406\u67d0\u4e9b I\/O \u5360\u7528\uff0c\u7136\u800c\uff0c\u540e\u7aef\u78c1\u76d8\u53ef\u80fd\u8fdc\u672a\u9971\u548c\uff0c\u5e76\u4e14\u53ef\u80fd\u80fd\u591f\u5904\u7406\u66f4\u591a\u7684\u5de5\u4f5c\uff0c\u8bf7\u8bb0\u4f4f\uff0c\u78c1\u76d8 I\/O \u6027\u80fd\u8f83\u5dee\u4e0d\u4e00\u5b9a\u662f\u7a0b\u5e8f\u7684\u95ee\u9898\uff0c\u8bb8\u591a\u6280\u672f\u901a\u5e38\u662f\u5f02\u6b65 I\/O\uff0c\u4f7f\u5e94\u7528\u7a0b\u5e8f\u4e0d\u4f1a\u88ab\u963b\u585e\u5e76\u906d\u53d7\u5ef6\u8fdf\uff08\u4f8b\u5982\uff0c\u9884\u8bfb\uff0c\u4ee5\u53ca\u5199\u7f13\u51b2\uff09\u3002<\/p>\n

7. free -m<\/strong><\/div>\n
$ free -m\r\ntotal used free shared buffers cached\r\nMem: 245998 24545 221453 83 59 541\r\n-\/+ buffers\/cache: 23944 222053\r\nSwap: 0 0 0\r\n<\/pre>\n

\u53f3\u8fb9\u7684\u4e24\u5217\u663e\u5f0f\uff1a<\/p>\n

buffers\uff1a<\/strong>\u7528\u4e8e\u5757\u8bbe\u5907 I\/O \u7684\u7f13\u51b2\u533a\u7f13\u5b58\u3002\r\ncached\uff1a<\/strong>\u7528\u4e8e\u6587\u4ef6\u7cfb\u7edf\u7684\u9875\u9762\u7f13\u5b58\u3002\r\n<\/pre>\n

\u6211\u4eec\u53ea\u662f\u60f3\u8981\u68c0\u67e5\u8fd9\u4e9b\u4e0d\u63a5\u8fd1\u96f6\u7684\u5927\u5c0f\uff0c\u5176\u53ef\u80fd\u4f1a\u5bfc\u81f4\u66f4\u9ad8\u78c1\u76d8 I\/O\uff08\u4f7f\u7528 iostat \u786e\u8ba4\uff09\uff0c\u548c\u66f4\u7cdf\u7cd5\u7684\u6027\u80fd\uff0c\u4e0a\u9762\u7684\u4f8b\u5b50\u770b\u8d77\u6765\u8fd8\u4e0d\u9519\uff0c\u6bcf\u4e00\u5217\u5747\u6709\u5f88\u591a M \u4e2a\u5927\u5c0f\uff0c\u6bd4\u8d77\u7b2c\u4e00\u884c\uff0c-\/+ buffers\/cache \u63d0\u4f9b\u7684\u5185\u5b58\u4f7f\u7528\u91cf\u4f1a\u66f4\u52a0\u51c6\u786e\u4e9b\uff0cLinux \u4f1a\u628a\u6682\u65f6\u7528\u4e0d\u4e0a\u7684\u5185\u5b58\u7528\u4f5c\u7f13\u5b58\uff0c\u4e00\u65e6\u5e94\u7528\u9700\u8981\u7684\u65f6\u5019\u5c31\u7acb\u523b\u91cd\u65b0\u5206\u914d\u7ed9\u5b83\uff0c\u6240\u4ee5\u90e8\u5206\u88ab\u7528\u4f5c\u7f13\u5b58\u7684\u5185\u5b58\u5176\u5b9e\u4e5f\u7b97\u662f\u7a7a\u95f2\u7684\u5185\u5b58\uff0c\u4e3a\u4e86\u89e3\u91ca\u8fd9\u4e00\u70b9\uff0c \u751a\u81f3\u6709\u4eba\u4e13\u95e8\u5efa\u4e86\u4e2a\u7f51\u7ad9\uff1a linuxatemyram\uff0c\u60a8\u5982\u679c\u8fd8\u662f\u4e0d\u7406\u89e3\u7684\u8bdd\uff0c\u53ef\u4ee5\u53bb\u201c\u5145\u5145\u7535\u201d\u3002\u5982\u679c\u4f60\u5728 Linux \u4e0a\u5b89\u88c5\u4e86 ZFS\uff0c\u8fd9\u4e00\u70b9\u4f1a\u53d8\u5f97\u66f4\u52a0\u56f0\u60d1\uff0c\u56e0\u4e3a ZFS \u5b83\u81ea\u5df1\u7684\u6587\u4ef6\u7cfb\u7edf\u7f13\u5b58\u4e0d\u7b97\u5165free -m\uff0c\u6709\u65f6\u5019\u53d1\u73b0\u7cfb\u7edf\u5df2\u7ecf\u6ca1\u6709\u591a\u5c11\u7a7a\u95f2\u5185\u5b58\u53ef\u7528\u4e86\uff0c\u5176\u5b9e\u5185\u5b58\u5374\u90fd\u5f85\u5728 ZFS \u7684\u7f13\u5b58\u91cc\u3002<\/p>\n

8. sar -n DEV 1<\/strong><\/div>\n
$ sar -n DEV 1Linux 3.13.0-49-generic (titanclusters-xxxxx) 07\/14\/2015 _x86_64_ (32 CPU)\r\n\r\n12:16:48 AM IFACE rxpck\/s txpck\/s rxkB\/s txkB\/s rxcmp\/s txcmp\/s rxmcst\/s %ifutil\r\n12:16:49 AM eth0 18763.00 5032.00 20686.42 478.30 0.00 0.00 0.00 0.00\r\n12:16:49 AM lo 14.00 14.00 1.36 1.36 0.00 0.00 0.00 0.00\r\n12:16:49 AM docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00\r\n\r\n12:16:49 AM IFACE rxpck\/s txpck\/s rxkB\/s txkB\/s rxcmp\/s txcmp\/s rxmcst\/s %ifutil\r\n12:16:50 AM eth0 19763.00 5101.00 21999.10 482.56 0.00 0.00 0.00 0.00\r\n12:16:50 AM lo 20.00 20.00 3.25 3.25 0.00 0.00 0.00 0.00\r\n12:16:50 AM docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00\r\n^C\r\n<\/pre>\n

\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u88ab\u7528\u6765\u68c0\u67e5\u7f51\u7edc\u63a5\u53e3\u7684\u541e\u5410\u91cf\uff1arxkB\/s \u548c txkB\/s\uff0c\u4ee5\u53ca\u662f\u5426\u8fbe\u5230\u9650\u989d\uff0c\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0ceth0 \u63a5\u6536\u7684\u6d41\u91cf\u8fbe\u5230 22Mbytes\/s\uff0c\u4e5f\u5373 176Mbits\/sec\uff08\u9650\u989d\u662f 1Gbit\/sec\uff09\uff0c\u6211\u4eec\u6240\u7528\u7684\u547d\u4ee4\u7248\u672c\u4e2d\u8fd8\u63d0\u4f9b\u4e86 %ifutil \u4f5c\u4e3a\u8bbe\u5907\u4f7f\u7528\u7387\uff08\u63a5\u6536\u548c\u53d1\u9001\u7684\u6700\u5927\u503c\uff09\u7684\u6307\u6807\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u7528 Brendan \u7684 nicstat \u5de5\u5177\u8ba1\u91cf\u8fd9\u4e2a\u503c\uff0c\u4e00\u5982 nicstat\uff0csar \u663e\u793a\u7684\u8fd9\u4e2a\u503c\u662f\u5f88\u96be\u7cbe\u786e\u53d6\u5f97\u7684\uff0c\u5728\u8fd9\u4e2a\u4f8b\u5b50\u91cc\u9762\uff0c\u5b83\u5c31\u6ca1\u5728\u6b63\u5e38\u7684\u5de5\u4f5c\uff08\u663e\u793a0.00\uff09\u3002<\/p>\n

9. sar -n TCP,ETCP 1<\/strong><\/div>\n
$ sar -n TCP,ETCP 1Linux 3.13.0-49-generic (titanclusters-xxxxx) 07\/14\/2015 _x86_64_ (32 CPU)\r\n\r\n12:17:19 AM active\/s passive\/s iseg\/s oseg\/s\r\n12:17:20 AM 1.00 0.00 10233.00 18846.00\r\n\r\n12:17:19 AM atmptf\/s estres\/s retrans\/s isegerr\/s orsts\/s\r\n12:17:20 AM 0.00 0.00 0.00 0.00 0.00\r\n\r\n12:17:20 AM active\/s passive\/s iseg\/s oseg\/s\r\n12:17:21 AM 1.00 0.00 8359.00 6039.00\r\n\r\n12:17:20 AM atmptf\/s estres\/s retrans\/s isegerr\/s orsts\/s\r\n12:17:21 AM 0.00 0.00 0.00 0.00 0.00\r\n^C\r\n<\/pre>\n

\u8fd9\u662f\u4e00\u4e9b\u5173\u952e\u7684 TCP \u6307\u6807\u7684\u6c47\u603b\u89c6\u56fe\uff0c\u8fd9\u4e9b\u5305\u62ec\uff1a<\/p>\n

active\/s\uff1a<\/strong>\u6bcf\u79d2\u672c\u5730\u53d1\u8d77 TCP \u8fde\u63a5\u6570\uff08\u4f8b\u5982\uff0c\u901a\u8fc7 connect()\uff09\u3002\r\npassive\/s\uff1a<\/strong>\u6bcf\u79d2\u8fdc\u7a0b\u53d1\u8d77\u7684 TCP \u8fde\u63a5\u6570\uff08\u4f8b\u5982\uff0c\u901a\u8fc7 accept()\uff09\u3002\r\nretrans\/s\uff1a<\/strong>\u6bcf\u79d2\u91cd\u4f20 TCP \u6b21\u6570\u3002\r\n<\/pre>\n

active \u548c passive \u7684\u8fde\u63a5\u6570\u5f80\u5f80\u5bf9\u4e8e\u63cf\u8ff0\u4e00\u4e2a\u7c97\u7565\u8861\u91cf\u670d\u52a1\u5668\u8d1f\u8f7d\u662f\u975e\u5e38\u6709\u7528\u7684\uff1a\u65b0\u63a5\u53d7\u7684\u8fde\u63a5\u6570\uff08passive\uff09\uff0c\u4e0b\u884c\u8fde\u63a5\u6570\uff08active\uff09\uff0c\u4e5f\u53ef\u4ee5\u7406\u89e3\u4e3a active \u8fde\u63a5\u662f\u5bf9\u5916\u7684\uff0c\u800c passive \u8fde\u63a5\u662f\u5bf9\u5185\u7684\uff0c\u867d\u7136\u4e25\u683c\u6765\u8bf4\u5e76\u4e0d\u5b8c\u5168\u6b63\u786e\uff08\u4f8b\u5982\uff0c\u4e00\u4e2a localhost \u5230 localhost \u7684\u8fde\u63a5\uff09\uff0c\u91cd\u4f20\u662f\u51fa\u73b0\u4e00\u4e2a\u7f51\u7edc\u548c\u670d\u52a1\u5668\u95ee\u9898\u7684\u4e00\u4e2a\u5f81\u5146\uff0c\u5176\u53ef\u80fd\u662f\u7531\u4e8e\u4e00\u4e2a\u4e0d\u53ef\u9760\u7684\u7f51\u7edc\uff08\u4f8b\u5982\uff0c\u516c\u7f51\uff09\u9020\u6210\u7684\uff0c\u6216\u8bb8\u4e5f\u6709\u53ef\u80fd\u662f\u7531\u4e8e\u670d\u52a1\u5668\u8fc7\u8f7d\u5e76\u4e22\u5305\u3002\u4e0a\u9762\u7684\u4f8b\u5b50\u663e\u793a\u4e86\u6bcf\u79d2\u53ea\u6709\u4e00\u4e2a\u65b0\u7684 TCP \u8fde\u63a5\u3002<\/p>\n

10. top<\/strong><\/div>\n
$ toptop - 00:15:40 up 21:56, 1 user, load average: 31.09, 29.87, 29.92\r\nTasks: 871 total, 1 running, 868 sleeping, 0 stopped, 2 zombie\r\n%Cpu(s): 96.8 us, 0.4 sy, 0.0 ni, 2.7 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st\r\nKiB Mem: 25190241+total, 24921688 used, 22698073+free, 60448 buffers\r\nKiB Swap: 0 total, 0 used, 0 free. 554208 cached Mem\r\n\r\nPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\r\n20248 root 20 0 0.227t 0.012t 18748 S 3090 5.2 29812:58 java\r\n4213 root 20 0 2722544 64640 44232 S 23.5 0.0 233:35.37 mesos-slave\r\n66128 titancl+ 20 0 24344 2332 1172 R 1.0 0.0 0:00.07 top\r\n5235 root 20 0 38.227g 547004 49996 S 0.7 0.2 2:02.74 java\r\n4299 root 20 0 20.015g 2.682g 16836 S 0.3 1.1 33:14.42 java\r\n1 root 20 0 33620 2920 1496 S 0.0 0.0 0:03.82 init\r\n2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd\r\n3 root 20 0 0 0 0 S 0.0 0.0 0:05.35 ksoftirqd\/0\r\n5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker\/0:0H\r\n6 root 20 0 0 0 0 S 0.0 0.0 0:06.94 kworker\/u256:0\r\n8 root 20 0 0 0 0 S 0.0 0.0 2:38.05 rcu_sched\r\n<\/pre>\n

top \u547d\u4ee4\u5305\u542b\u4e86\u5f88\u591a\u6211\u4eec\u4e4b\u524d\u5df2\u7ecf\u68c0\u67e5\u8fc7\u7684\u6307\u6807\uff0c\u6211\u4eec\u53ef\u4ee5\u89c2\u5bdf\u5230\u547d\u4ee4\u8f93\u51fa\u7684\u7ed3\u679c\u6bcf\u65f6\u6bcf\u523b\u90fd\u6709\u5f88\u5927\u4e0d\u540c\uff0c\u8fd9\u8868\u660e\u8d1f\u8f7d\u662f\u53ef\u53d8\u7684\uff0ctop \u7684\u4e00\u4e2a\u7f3a\u70b9\u662f\uff0c\u5f88\u96be\u770b\u5230\u6570\u636e\u968f\u65f6\u95f4\u53d8\u52a8\u7684\u8d8b\u52bf\uff0c\u800cvmstat \u548c pidstat\u5219\u80fd\u63d0\u4f9b\u6eda\u52a8\u8f93\u51fa\uff0c\u8fd9\u6837\u663e\u5f97\u66f4\u6e05\u695a\u4e00\u4e9b\uff0c\u540c\u6837\u7684\uff0c\u5982\u679c\u4f60\u4e0d\u4ee5\u8db3\u591f\u5feb\u7684\u901f\u5ea6\u6682\u505c\u8f93\u51fa\u4ee5\u4e0a\u4fe1\u606f\uff08Ctrl-S \u6682\u505c\uff0cCtrl-Q \u7ee7\u7eed\uff09\uff0c\u4e00\u4e9b\u95f4\u6b47\u6027\u95ee\u9898\u7684\u7ebf\u7d22\u5c31\u53ef\u80fd\u7531\u4e8e\u88ab\u6e05\u5c4f\u800c\u4e22\u5931\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.oschina.net\/translate\/linux-performance-analysis-in-60s<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/rapid-diagnostic-linux-performance.html<\/a>\u7f16\u8f91\uff1a\u9b4f\u4e3d\u733f\uff0c\u5ba1\u6838\u5458\uff1a\u5218\u9044<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u5f53\u4f60\u4e3a\u4e86\u89e3\u51b3\u4e00\u4e2a\u6027\u80fd\u95ee\u9898\u767b\u5f55\u5230\u4e00\u53f0 Linux \u670d\u52a1\u5668\uff1a\u5728\u7b2c\u4e00\u5206\u949f\u4f60\u5e94\u8be5\u68c0\u67e5\u4e9b\u4ec0\u4e48\uff1f \u901a\u8fc7\u8fd0\u884c\u4e0b\u9762\u5341\u4e2a\u547d […]<\/p>\n","protected":false},"author":317,"featured_media":5895,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-5893","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\/5893","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\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=5893"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/5893\/revisions"}],"predecessor-version":[{"id":245084,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/5893\/revisions\/245084"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/5895"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=5893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=5893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=5893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}