{"id":40,"date":"2013-01-25T11:15:34","date_gmt":"2013-01-25T03:15:34","guid":{"rendered":"http:\/\/www.yeetrack.com\/post\/2013-01-25\/%E6%80%A7%E8%83%BD%E6%B5%8B%E8%AF%95---Linux%20Top%20%E5%91%BD%E4%BB%A4%E8%A7%A3%E6%9E%90"},"modified":"2013-04-20T17:17:17","modified_gmt":"2013-04-20T09:17:17","slug":"%e6%80%a7%e8%83%bd%e6%b5%8b%e8%af%95-linuxtop%e5%91%bd%e4%bb%a4%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.yeetrack.com\/?p=40","title":{"rendered":"\u6027\u80fd\u6d4b\u8bd5&#8212;Linux Top \u547d\u4ee4\u89e3\u6790"},"content":{"rendered":"<p> &nbsp;&nbsp;&nbsp;TOP\u662f\u4e00\u4e2a\u52a8\u6001\u663e\u793a\u8fc7\u7a0b,\u5373\u53ef\u4ee5\u901a\u8fc7\u7528\u6237\u6309\u952e\u6765\u4e0d\u65ad\u5237\u65b0\u5f53\u524d\u72b6\u6001.\u5982\u679c\u5728\u524d\u53f0\u6267\u884c\u8be5\u547d\u4ee4,\u5b83\u5c06\u72ec\u5360\u524d\u53f0,\u76f4\u5230\u7528\u6237\u7ec8\u6b62\u8be5\u7a0b\u5e8f\u4e3a\u6b62.\u6bd4\u8f83\u51c6\u786e\u7684\u8bf4,top\u547d\u4ee4\u63d0\u4f9b\u4e86\u5b9e\u65f6\u7684\u5bf9\u7cfb\u7edf\u5904\u7406\u5668\u7684\u72b6\u6001\u76d1\u89c6.\u5b83\u5c06\u663e\u793a\u7cfb\u7edf\u4e2dCPU\u6700\u201c\u654f\u611f\u201d\u7684\u4efb\u52a1\u5217\u8868.\u8be5\u547d\u4ee4\u53ef\u4ee5\u6309CPU\u4f7f\u7528.\u5185\u5b58\u4f7f\u7528\u548c\u6267\u884c\u65f6\u95f4\u5bf9\u4efb\u52a1\u8fdb\u884c\u6392\u5e8f\uff1b\u800c\u4e14\u8be5\u547d\u4ee4\u7684\u5f88\u591a\u7279\u6027\u90fd\u53ef\u4ee5\u901a\u8fc7\u4ea4\u4e92\u5f0f\u547d\u4ee4\u6216\u8005\u5728\u4e2a\u4eba\u5b9a\u5236\u6587\u4ef6\u4e2d\u8fdb\u884c\u8bbe\u5b9a.<\/p>\n<p><!--more--><\/p>\n<p>top - 12:38:33 up 50 days, 23:15, &nbsp;7 users, &nbsp;load average: 60.58, 61.14, 61.22<\/p>\n<p>Tasks: 203 total, &nbsp;60 running, 139 sleeping, &nbsp;&nbsp;4 stopped, &nbsp;&nbsp;0 zombie<\/p>\n<p>Cpu(s) &nbsp;: 27.0%us, 73.0%sy, &nbsp;0.0%ni, &nbsp;0.0%id, &nbsp;0.0%wa, &nbsp;0.0%hi, &nbsp;0.0%si, &nbsp;0.0%st<\/p>\n<p>Mem: &nbsp;&nbsp;1939780k total, &nbsp;1375280k used, &nbsp;&nbsp;564500k free, &nbsp;&nbsp;109680k buffers<\/p>\n<p>Swap: &nbsp;4401800k total, &nbsp;&nbsp;497456k used, &nbsp;3904344k free, &nbsp;&nbsp;848712k cached<\/p>\n<p>PID USER &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PR &nbsp;NI &nbsp;VIRT &nbsp;RES &nbsp;SHR S %CPU %MEM &nbsp;&nbsp;&nbsp;TIME+ &nbsp;COMMAND &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n<p> 4338 oracle &nbsp;&nbsp;&nbsp;25 &nbsp;&nbsp;0 &nbsp;627m 209m 207m R &nbsp;&nbsp;&nbsp;0 11.0 297:14.76 oracle &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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sp;&nbsp;&nbsp;25 &nbsp;&nbsp;0 &nbsp;627m &nbsp;59m &nbsp;58m R &nbsp;&nbsp;&nbsp;8 &nbsp;3.1 &nbsp;86:09.64 oracle &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n<p> 4273 oracle &nbsp;&nbsp;&nbsp;25 &nbsp;&nbsp;0 &nbsp;627m &nbsp;57m &nbsp;56m R &nbsp;&nbsp;&nbsp;8 &nbsp;3.0 &nbsp;84:38.20 oracle &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n<p>22670 oracle &nbsp;&nbsp;&nbsp;25 &nbsp;&nbsp;0 &nbsp;626m &nbsp;50m &nbsp;49m R &nbsp;&nbsp;&nbsp;0 &nbsp;2.7 &nbsp;84:55.82 oracle &nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n<p>\u4e00. &nbsp;TOP\u524d\u4e94\u884c\u7edf\u8ba1\u4fe1\u606f<\/p>\n<p>\u7edf\u8ba1\u4fe1\u606f\u533a\u524d\u4e94\u884c\u662f\u7cfb\u7edf\u6574\u4f53\u7684\u7edf\u8ba1\u4fe1\u606f\u3002<\/p>\n<p>1. \u7b2c\u4e00\u884c\u662f\u4efb\u52a1\u961f\u5217\u4fe1\u606f<\/p>\n<p>\u540c uptime &nbsp;\u547d\u4ee4\u7684\u6267\u884c\u7ed3\u679c:<\/p>\n<p>[root@localhost ~]# uptime<\/p>\n<p> 13:22:30 up 8 min, &nbsp;4 users, &nbsp;load average: 0.14, 0.38, 0.25<\/p>\n<p>\u5176\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p class=\"edui-filter-align-left\">12:38:33<\/p>\n<p class=\"edui-filter-align-left\">\u5f53\u524d\u65f6\u95f4<\/p>\n<p class=\"edui-filter-align-left\">up 50days<\/p>\n<p class=\"edui-filter-align-left\">\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\uff0c\u683c\u5f0f\u4e3a\u65f6:\u5206<\/p>\n<p class=\"edui-filter-align-left\">1 user<\/p>\n<p class=\"edui-filter-align-left\">\u5f53\u524d\u767b\u5f55\u7528\u6237\u6570<\/p>\n<p class=\"edui-filter-align-left\">load average: 0.06, 0.60, 0.48<\/p>\n<p class=\"edui-filter-align-left\">\u7cfb\u7edf\u8d1f\u8f7d\uff0c\u5373\u4efb\u52a1\u961f\u5217\u7684\u5e73\u5747\u957f\u5ea6\u3002 \u4e09\u4e2a\u6570\u503c\u5206\u522b\u4e3a &nbsp;1\u5206\u949f\u30015\u5206\u949f\u300115\u5206\u949f\u524d\u5230\u73b0\u5728\u7684\u5e73\u5747\u503c\u3002<\/p>\n<p>2. \u7b2c\u4e8c\u3001\u4e09\u884c\u4e3a\u8fdb\u7a0b\u548cCPU\u7684\u4fe1\u606f<\/p>\n<p>\u5f53\u6709\u591a\u4e2aCPU\u65f6\uff0c\u8fd9\u4e9b\u5185\u5bb9\u53ef\u80fd\u4f1a\u8d85\u8fc7\u4e24\u884c\u3002\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p class=\"edui-filter-align-left\">Tasks: 29 total<\/p>\n<p class=\"edui-filter-align-left\">\u8fdb\u7a0b\u603b\u6570<\/p>\n<p class=\"edui-filter-align-left\">1 running<\/p>\n<p class=\"edui-filter-align-left\">\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u6570<\/p>\n<p class=\"edui-filter-align-left\">28 sleeping<\/p>\n<p class=\"edui-filter-align-left\">\u7761\u7720\u7684\u8fdb\u7a0b\u6570<\/p>\n<p class=\"edui-filter-align-left\">0 stopped<\/p>\n<p class=\"edui-filter-align-left\">\u505c\u6b62\u7684\u8fdb\u7a0b\u6570<\/p>\n<p class=\"edui-filter-align-left\">0 zombie<\/p>\n<p class=\"edui-filter-align-left\">\u50f5\u5c38\u8fdb\u7a0b\u6570<\/p>\n<p class=\"edui-filter-align-left\">Cpu(s): 0.3% us<\/p>\n<p class=\"edui-filter-align-left\">\u7528\u6237\u7a7a\u95f4\u5360\u7528CPU\u767e\u5206\u6bd4<\/p>\n<p class=\"edui-filter-align-left\">1.0% sy<\/p>\n<p class=\"edui-filter-align-left\">\u5185\u6838\u7a7a\u95f4\u5360\u7528CPU\u767e\u5206\u6bd4<\/p>\n<p class=\"edui-filter-align-left\">0.0% ni<\/p>\n<p class=\"edui-filter-align-left\">\u7528\u6237\u8fdb\u7a0b\u7a7a\u95f4\u5185\u6539\u53d8\u8fc7\u4f18\u5148\u7ea7\u7684\u8fdb\u7a0b\u5360\u7528CPU\u767e\u5206\u6bd4<\/p>\n<p class=\"edui-filter-align-left\">98.7% id<\/p>\n<p class=\"edui-filter-align-left\">\u7a7a\u95f2CPU\u767e\u5206\u6bd4<\/p>\n<p class=\"edui-filter-align-left\">0.0% wa<\/p>\n<p class=\"edui-filter-align-left\">\u7b49\u5f85\u8f93\u5165\u8f93\u51fa\u7684CPU\u65f6\u95f4\u767e\u5206\u6bd4<\/p>\n<p class=\"edui-filter-align-left\">0.0% hi<\/p>\n<p>\u200b<\/p>\n<p class=\"edui-filter-align-left\">0.0% si<\/p>\n<p>\u200b<\/p>\n<p>3. \u7b2c\u56db\u4e94\u884c\u4e3a\u5185\u5b58\u4fe1\u606f\u3002<\/p>\n<p>\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p class=\"edui-filter-align-left\">Mem: 191272k total<\/p>\n<p class=\"edui-filter-align-left\">\u7269\u7406\u5185\u5b58\u603b\u91cf<\/p>\n<p class=\"edui-filter-align-left\">173656k used<\/p>\n<p class=\"edui-filter-align-left\">\u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u603b\u91cf<\/p>\n<p class=\"edui-filter-align-left\">17616k free<\/p>\n<p class=\"edui-filter-align-left\">\u7a7a\u95f2\u5185\u5b58\u603b\u91cf<\/p>\n<p class=\"edui-filter-align-left\">22052k buffers<\/p>\n<p class=\"edui-filter-align-left\">\u7528\u4f5c\u5185\u6838\u7f13\u5b58\u7684\u5185\u5b58\u91cf<\/p>\n<p class=\"edui-filter-align-left\">Swap: 192772k total<\/p>\n<p class=\"edui-filter-align-left\">\u4ea4\u6362\u533a\u603b\u91cf<\/p>\n<p class=\"edui-filter-align-left\">0k used<\/p>\n<p class=\"edui-filter-align-left\">\u4f7f\u7528\u7684\u4ea4\u6362\u533a\u603b\u91cf<\/p>\n<p class=\"edui-filter-align-left\">192772k free<\/p>\n<p class=\"edui-filter-align-left\">\u7a7a\u95f2\u4ea4\u6362\u533a\u603b\u91cf<\/p>\n<p class=\"edui-filter-align-left\">123988k cached<\/p>\n<p class=\"edui-filter-align-left\">\u7f13\u51b2\u7684\u4ea4\u6362\u533a\u603b\u91cf\u3002 \u5185\u5b58\u4e2d\u7684\u5185\u5bb9\u88ab\u6362\u51fa\u5230\u4ea4\u6362\u533a\uff0c\u800c\u540e\u53c8\u88ab\u6362\u5165\u5230\u5185\u5b58\uff0c\u4f46\u4f7f\u7528\u8fc7\u7684\u4ea4\u6362\u533a\u5c1a\u672a\u88ab\u8986\u76d6\uff0c \u8be5\u6570\u503c\u5373\u4e3a\u8fd9\u4e9b<strong>\u5185\u5bb9\u5df2\u5b58\u5728\u4e8e\u5185\u5b58\u4e2d<\/strong>\u7684\u4ea4\u6362\u533a\u7684\u5927\u5c0f\u3002\u76f8\u5e94\u7684\u5185\u5b58\u518d\u6b21\u88ab\u6362\u51fa\u65f6\u53ef\u4e0d\u5fc5\u518d\u5bf9\u4ea4\u6362\u533a\u5199\u5165\u3002<\/p>\n<p>\u4e8c. &nbsp;\u8fdb\u7a0b\u4fe1\u606f<\/p>\n<p>\u5217\u540d<\/p>\n<p>\u542b\u4e49<\/p>\n<p>PID<\/p>\n<p>\u8fdb\u7a0bid<\/p>\n<p>PPID<\/p>\n<p>\u7236\u8fdb\u7a0bid<\/p>\n<p>RUSER<\/p>\n<p>Real user name<\/p>\n<p>UID<\/p>\n<p>\u8fdb\u7a0b\u6240\u6709\u8005\u7684\u7528\u6237id<\/p>\n<p>USER<\/p>\n<p>\u8fdb\u7a0b\u6240\u6709\u8005\u7684\u7528\u6237\u540d<\/p>\n<p>GROUP<\/p>\n<p>\u8fdb\u7a0b\u6240\u6709\u8005\u7684\u7ec4\u540d<\/p>\n<p>TTY<\/p>\n<p>\u542f\u52a8\u8fdb\u7a0b\u7684\u7ec8\u7aef\u540d\u3002\u4e0d\u662f\u4ece\u7ec8\u7aef\u542f\u52a8\u7684\u8fdb\u7a0b\u5219\u663e\u793a\u4e3a ?<\/p>\n<p>PR<\/p>\n<p>\u4f18\u5148\u7ea7<\/p>\n<p>NI<\/p>\n<p>nice\u503c\u3002\u8d1f\u503c\u8868\u793a\u9ad8\u4f18\u5148\u7ea7\uff0c\u6b63\u503c\u8868\u793a\u4f4e\u4f18\u5148\u7ea7<\/p>\n<p>P<\/p>\n<p>\u6700\u540e\u4f7f\u7528\u7684CPU\uff0c\u4ec5\u5728\u591aCPU\u73af\u5883\u4e0b\u6709\u610f\u4e49<\/p>\n<p>%CPU<\/p>\n<p>\u4e0a\u6b21\u66f4\u65b0\u5230\u73b0\u5728\u7684CPU\u65f6\u95f4\u5360\u7528\u767e\u5206\u6bd4<\/p>\n<p>TIME<\/p>\n<p>\u8fdb\u7a0b\u4f7f\u7528\u7684CPU\u65f6\u95f4\u603b\u8ba1\uff0c\u5355\u4f4d\u79d2<\/p>\n<p>TIME+<\/p>\n<p>\u8fdb\u7a0b\u4f7f\u7528\u7684CPU\u65f6\u95f4\u603b\u8ba1\uff0c\u5355\u4f4d1\/100\u79d2<\/p>\n<p>%MEM<\/p>\n<p>\u8fdb\u7a0b\u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u767e\u5206\u6bd4<\/p>\n<p>VIRT<\/p>\n<p>\u8fdb\u7a0b\u4f7f\u7528\u7684\u865a\u62df\u5185\u5b58\u603b\u91cf\uff0c\u5355\u4f4dkb\u3002VIRT=SWAP+RES<\/p>\n<p>SWAP<\/p>\n<p>\u8fdb\u7a0b\u4f7f\u7528\u7684\u865a\u62df\u5185\u5b58\u4e2d\uff0c\u88ab\u6362\u51fa\u7684\u5927\u5c0f\uff0c\u5355\u4f4dkb\u3002<\/p>\n<p>RES<\/p>\n<p>\u8fdb\u7a0b\u4f7f\u7528\u7684\u3001\u672a\u88ab\u6362\u51fa\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u4f4dkb\u3002RES=CODE+DATA<\/p>\n<p>CODE<\/p>\n<p>\u53ef\u6267\u884c\u4ee3\u7801\u5360\u7528\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u4f4dkb<\/p>\n<p>DATA<\/p>\n<p>\u53ef\u6267\u884c\u4ee3\u7801\u4ee5\u5916\u7684\u90e8\u5206(\u6570\u636e\u6bb5+\u6808)\u5360\u7528\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u4f4dkb<\/p>\n<p>SHR<\/p>\n<p>\u5171\u4eab\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u4f4dkb<\/p>\n<p>nFLT<\/p>\n<p>\u9875\u9762\u9519\u8bef\u6b21\u6570<\/p>\n<p>nDRT<\/p>\n<p>\u6700\u540e\u4e00\u6b21\u5199\u5165\u5230\u73b0\u5728\uff0c\u88ab\u4fee\u6539\u8fc7\u7684\u9875\u9762\u6570\u3002<\/p>\n<p>S<\/p>\n<p>\u8fdb\u7a0b\u72b6\u6001\u3002<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D=\u4e0d\u53ef\u4e2d\u65ad\u7684\u7761\u7720\u72b6\u6001<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;R=\u8fd0\u884c<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S=\u7761\u7720<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;T=\u8ddf\u8e2a\/\u505c\u6b62<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Z=\u50f5\u5c38\u8fdb\u7a0b<\/p>\n<p>COMMAND<\/p>\n<p>\u547d\u4ee4\u540d\/\u547d\u4ee4\u884c<\/p>\n<p>WCHAN<\/p>\n<p>\u82e5\u8be5\u8fdb\u7a0b\u5728\u7761\u7720\uff0c\u5219\u663e\u793a\u7761\u7720\u4e2d\u7684\u7cfb\u7edf\u51fd\u6570\u540d<\/p>\n<p>Flags<\/p>\n<p>\u4efb\u52a1\u6807\u5fd7\uff0c\u53c2\u8003 sched.h<\/p>\n<p>top \u7684man \u547d\u4ee4\u89e3\u91ca\u5982\u4e0b\uff1a<\/p>\n<p> &nbsp;&nbsp;&nbsp;Listed below are top's available fields. &nbsp;They are always associated with the &nbsp;letter &nbsp;shown, &nbsp;regardless &nbsp;of the position you may have established for them with the 'o' (Order fields) interactive command.Any field is selectable as the sort field, and you control whether they are &nbsp;sorted high-to-low &nbsp;or &nbsp;low-to-high. &nbsp;&nbsp;For &nbsp;additional &nbsp;information on sort provisions see &nbsp;topic 3c. TASK Area Commands.<\/p>\n<p>a: PID &nbsp;-- &nbsp;Process Id<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The task's unique process ID, which periodically wraps, though never &nbsp;restarting at zero.<\/p>\n<p>b: PPID &nbsp;-- &nbsp;Parent Process Pid<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The process ID of a task's parent.<\/p>\n<p>c: RUSER &nbsp;-- &nbsp;Real User Name<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The real user name of the task's owner.<\/p>\n<p>d: UID &nbsp;-- &nbsp;User Id<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The effective user ID of the task's owner.<\/p>\n<p>e: USER &nbsp;-- &nbsp;User Name<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The effective user name of the task's owner.<\/p>\n<p>f: GROUP &nbsp;-- &nbsp;Group Name<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The effective group name of the task's owner.<\/p>\n<p>g: TTY &nbsp;-- &nbsp;Controlling Tty<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The &nbsp;name of the controlling terminal. &nbsp;This is usually the device (serial port, pty, etc.) from which the process was started, and which it uses &nbsp;for &nbsp;input &nbsp;oroutput. &nbsp;&nbsp;However, &nbsp;a task need not be associated with a terminal, in which case you'll see '?' displayed.<\/p>\n<p>h: PR &nbsp;-- &nbsp;Priority<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The priority of the task.<\/p>\n<p>i: NI &nbsp;-- &nbsp;Nice value<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The nice value of the task. &nbsp;&nbsp;A &nbsp;negative &nbsp;nice &nbsp;value &nbsp;means &nbsp;higher &nbsp;priority, whereas &nbsp;a &nbsp;positive nice value means lower priority. &nbsp;Zero in this field simply means priority will not be adjusted in determining a task's dispatchability.<\/p>\n<p>j: P &nbsp;-- &nbsp;Last used CPU (SMP)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A number representing the last used processor. &nbsp;In a true SMP &nbsp;environment &nbsp;this will likely change frequently since the kernel intentionally uses weak affinity. Also, the very act of running top may break this weak affinity &nbsp;and &nbsp;cause &nbsp;more processes &nbsp;to change CPUs more often (because of the extra demand for cpu time).<\/p>\n<p>k: %CPU &nbsp;-- &nbsp;CPU usage<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The task's share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time. &nbsp;In a true SMP environment, if 'Irix mode' is Off, top will operate in 'Solaris mode' where a task's cpu usage will be divided by &nbsp;the &nbsp;total &nbsp;number &nbsp;of &nbsp;CPUs. &nbsp;&nbsp;You toggle 'Irix\/Solaris' modes with the 'I' interactive command.<\/p>\n<p>l: TIME &nbsp;-- &nbsp;CPU Time<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total CPU time the task has used since it started. &nbsp;When &nbsp;'Cumulative &nbsp;mode' &nbsp;is On, &nbsp;each &nbsp;process is listed with the cpu time that it and its dead children has used. &nbsp;You toggle 'Cumulative mode' with 'S', which is a command-line option and an interactive command. &nbsp;See the 'S' interactive command for additional information regarding this mode.<\/p>\n<p>m: TIME+ &nbsp;-- &nbsp;CPU Time, hundredths<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The same as 'TIME', but reflecting more granularity through hundredths of a sec &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ond.<\/p>\n<p>n: %MEM &nbsp;-- &nbsp;Memory usage (RES)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A task's currently used share of available physical memory.<\/p>\n<p>o: VIRT &nbsp;-- &nbsp;Virtual Image (kb)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The total amount of virtual memory used by the task. &nbsp;It includes all code, data and shared libraries plus pages that have &nbsp;been &nbsp;swapped &nbsp;out. &nbsp;(Note: &nbsp;you &nbsp;can define &nbsp;the STATSIZE=1 environment variable and the VIRT will be calculated from the \/proc\/#\/state VmSize field.)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;VIRT = SWAP + RES.<\/p>\n<p>p: SWAP &nbsp;-- &nbsp;Swapped size (kb)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The swapped out portion of a task's total virtual memory image.<\/p>\n<p>q: RES &nbsp;-- &nbsp;Resident size (kb)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The non-swapped physical memory a task has used.<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RES = CODE + DATA.<\/p>\n<p>r: CODE &nbsp;-- &nbsp;Code size (kb)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The amount of physical memory devoted to executable &nbsp;code, &nbsp;also &nbsp;known &nbsp;as &nbsp;the'text resident set' size or TRS.<\/p>\n<p>s: DATA &nbsp;-- &nbsp;Data+Stack size (kb)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The &nbsp;amount of physical memory devoted to other than executable code, also known the 'data resident set' size or DRS.<\/p>\n<p>t: SHR &nbsp;-- &nbsp;Shared Mem size (kb)<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The amount of shared memory used by a task. &nbsp;&nbsp;It &nbsp;simply &nbsp;reflects &nbsp;memory &nbsp;that could be potentially shared with other processes.<\/p>\n<p>u: nFLT &nbsp;-- &nbsp;Page Fault count<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The &nbsp;number &nbsp;of &nbsp;major &nbsp;page faults that have occurred for a task. &nbsp;A page fault occurs when a process attempts to read from or write to a virtual page &nbsp;that &nbsp;is not &nbsp;currently &nbsp;present &nbsp;in &nbsp;its address space. &nbsp;A major page fault is when disk access is involved in making that page available.<\/p>\n<p>v: nDRT &nbsp;-- &nbsp;Dirty Pages count<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The number of pages that have been modified since &nbsp;they &nbsp;were &nbsp;last &nbsp;written &nbsp;to disk. &nbsp;&nbsp;Dirty &nbsp;pages &nbsp;must &nbsp;be written to disk before the corresponding physical memory location can be used for some other virtual page.<\/p>\n<p>w: S &nbsp;-- &nbsp;Process Status<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The status of the task which can be one of:<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'D' = uninterruptible sleep<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'R' = running<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'S' = sleeping<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'T' = traced or stopped<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Z' = zombie<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tasks shown as running should be more properly thought of as 'ready to run' &nbsp;--their &nbsp;task_struct is simply represented on the Linux run-queue. &nbsp;Even without a true SMP machine, you may see numerous tasks in this state &nbsp;depending &nbsp;on &nbsp;top's delay interval and nice value.<\/p>\n<p>x: Command &nbsp;-- &nbsp;Command line or Program name<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display the command line used to start a task or the name of the associated program. &nbsp;You toggle between command line and name with 'c', which is both &nbsp;a &nbsp;command-line option and an interactive command. When &nbsp;you've &nbsp;chosen &nbsp;to display command lines, processes without a command line (like kernel threads) will be shown with only the program name &nbsp;in &nbsp;parentheses, as in this example: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;( mdrecoveryd ) Either &nbsp;form &nbsp;of &nbsp;display is subject to potential truncation if it's too long to fit in this field's &nbsp;current &nbsp;width. &nbsp;&nbsp;That &nbsp;width &nbsp;depends &nbsp;upon &nbsp;other &nbsp;fields &nbsp;selected, their order and the current screen width.<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Note: The 'Command' field\/column is unique, in that it is not fixed-width. &nbsp;When displayed, this column will be allocated all remaining screen width (up &nbsp;to &nbsp;the maximum &nbsp;512 &nbsp;characters) &nbsp;to &nbsp;provide for the potential growth of program names into command lines.<\/p>\n<p>y: WCHAN &nbsp;-- &nbsp;Sleeping in Function<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Depending on the availability of the kernel link map ('System.map'), this &nbsp;field will &nbsp;show &nbsp;the &nbsp;name or the address of the kernel function in which the task is currently sleeping. &nbsp;Running tasks will display a dash ('-') in this column.<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Note: By displaying this field, top's own working set will be increased by &nbsp;over 700Kb. &nbsp;&nbsp;Your &nbsp;only &nbsp;means of reducing that overhead will be to stop and restart &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top.<\/p>\n<p>z: Flags &nbsp;-- &nbsp;Task Flags<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This column represents the task's current scheduling flags which &nbsp;are &nbsp;expressed in &nbsp;hexadecimal &nbsp;notation and with zeros suppressed. &nbsp;These flags are officially documented in &lt;linux\/sched.h&gt;. &nbsp;Less formal documentation can also be &nbsp;found &nbsp;on the 'Fields select' and 'Order fields' screens.<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4ec5\u663e\u793a\u6bd4\u8f83\u91cd\u8981\u7684 &nbsp;PID\u3001USER\u3001PR\u3001NI\u3001VIRT\u3001RES\u3001SHR\u3001S\u3001%CPU\u3001%MEM\u3001TIME+\u3001COMMAND &nbsp;\u5217\u3002<\/p>\n<p>2.1 \u7528\u5feb\u6377\u952e\u66f4\u6539\u663e\u793a\u5185\u5bb9\u3002<br \/>\uff081\uff09\u66f4\u6539\u663e\u793a\u5185\u5bb9\u901a\u8fc7 f\u952e\u53ef\u4ee5\u9009\u62e9\u663e\u793a\u7684\u5185\u5bb9\u3002<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6309 f \u952e\u4e4b\u540e\u4f1a\u663e\u793a\u5217\u7684\u5217\u8868\uff0c\u6309 a-z &nbsp;\u5373\u53ef\u663e\u793a\u6216\u9690\u85cf\u5bf9\u5e94\u7684\u5217\uff0c\u6700\u540e\u6309\u56de\u8f66\u952e\u786e\u5b9a\u3002<\/p>\n<p>\uff082\uff09\u6309o\u952e\u53ef\u4ee5\u6539\u53d8\u5217\u7684\u663e\u793a\u987a\u5e8f\u3002<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6309\u5c0f\u5199\u7684 a-z \u53ef\u4ee5\u5c06\u76f8\u5e94\u7684\u5217\u5411\u53f3\u79fb\u52a8\uff0c\u800c\u5927\u5199\u7684 A-Z &nbsp;\u53ef\u4ee5\u5c06\u76f8\u5e94\u7684\u5217\u5411\u5de6\u79fb\u52a8\u3002\u6700\u540e\u6309\u56de\u8f66\u952e\u786e\u5b9a\u3002<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u6309\u5927\u5199\u7684 F \u6216 O \u952e\uff0c\u7136\u540e\u6309 a-z \u53ef\u4ee5\u5c06\u8fdb\u7a0b\u6309\u7167\u76f8\u5e94\u7684\u5217\u8fdb\u884c\u6392\u5e8f\u3002\u800c\u5927\u5199\u7684 &nbsp;R \u952e\u53ef\u4ee5\u5c06\u5f53\u524d\u7684\u6392\u5e8f\u5012\u8f6c\u3002<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8bbe\u7f6e\u5b8c\u6309\u56de\u8f66\u8fd4\u56de\u754c\u9762\u3002<\/p>\n<p>\u4e09. &nbsp;\u547d\u4ee4\u4f7f\u7528<\/p>\n<p>\u8be6\u7ec6\u5185\u5bb9\u53ef\u4ee5\u53c2\u8003MAN \u5e2e\u52a9\u6587\u6863\u3002\u8fd9\u91cc\u5217\u4e3e\u90e8\u5206\u5185\u5bb9\uff1a<\/p>\n<p>\u547d\u4ee4\u683c\u5f0f\uff1a<\/p>\n<p>top [-] [d] [p] [q] [c] [C] [S] &nbsp;&nbsp;&nbsp;[n]<\/p>\n<p>\u53c2\u6570\u8bf4\u660e\uff1a<\/p>\n<p>d\uff1a &nbsp;\u6307\u5b9a\u6bcf\u4e24\u6b21\u5c4f\u5e55\u4fe1\u606f\u5237\u65b0\u4e4b\u95f4\u7684\u65f6\u95f4\u95f4\u9694\u3002\u5f53\u7136\u7528\u6237\u53ef\u4ee5\u4f7f\u7528s\u4ea4\u4e92\u547d\u4ee4\u6765\u6539\u53d8\u4e4b\u3002<\/p>\n<p>p\uff1a &nbsp;\u901a\u8fc7\u6307\u5b9a\u76d1\u63a7\u8fdb\u7a0bID\u6765\u4ec5\u4ec5\u76d1\u63a7\u67d0\u4e2a\u8fdb\u7a0b\u7684\u72b6\u6001\u3002<\/p>\n<p>q\uff1a\u8be5\u9009\u9879\u5c06\u4f7ftop\u6ca1\u6709\u4efb\u4f55\u5ef6\u8fdf\u7684\u8fdb\u884c\u5237\u65b0\u3002\u5982\u679c\u8c03\u7528\u7a0b\u5e8f\u6709\u8d85\u7ea7\u7528\u6237\u6743\u9650\uff0c\u90a3\u4e48top\u5c06\u4ee5\u5c3d\u53ef\u80fd\u9ad8\u7684\u4f18\u5148\u7ea7\u8fd0\u884c\u3002<\/p>\n<p>S\uff1a \u6307\u5b9a\u7d2f\u8ba1\u6a21\u5f0f<\/p>\n<p>s \uff1a \u4f7ftop\u547d\u4ee4\u5728\u5b89\u5168\u6a21\u5f0f\u4e2d\u8fd0\u884c\u3002\u8fd9\u5c06\u53bb\u9664\u4ea4\u4e92\u547d\u4ee4\u6240\u5e26\u6765\u7684\u6f5c\u5728\u5371\u9669\u3002<\/p>\n<p>i\uff1a &nbsp;\u4f7ftop\u4e0d\u663e\u793a\u4efb\u4f55\u95f2\u7f6e\u6216\u8005\u50f5\u6b7b\u8fdb\u7a0b\u3002<\/p>\n<p>c\uff1a &nbsp;\u663e\u793a\u6574\u4e2a\u547d\u4ee4\u884c\u800c\u4e0d\u53ea\u662f\u663e\u793a\u547d\u4ee4\u540d<\/p>\n<p>\u5728top\u547d\u4ee4\u7684\u663e\u793a\u7a97\u53e3\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u5b57\u6bcd\uff0c\u8fdb\u884c\u4e00\u4e9b\u4ea4\u4e92\uff1a<\/p>\n<p>\u5e2e\u52a9\u6587\u6863\u5982\u4e0b\uff1a<\/p>\n<p>Help for Interactive Commands - procps version 3.2.7<\/p>\n<p>Window 1:Def: Cumulative mode Off. &nbsp;System: Delay 4.0 secs; Secure mode Off.<\/p>\n<p> &nbsp;Z,B &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Global: 'Z' change color mappings; 'B' disable\/enable bold<\/p>\n<p> &nbsp;l,t,m &nbsp;&nbsp;&nbsp;&nbsp;Toggle Summaries: 'l' load avg; 't' task\/cpu stats; 'm' mem info<\/p>\n<p> &nbsp;1,I &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Toggle SMP view: '1' single\/separate states; 'I' Irix\/Solaris mode<\/p>\n<p> &nbsp;f,o &nbsp;&nbsp;&nbsp;&nbsp;. Fields\/Columns: 'f' add or remove; 'o' change display order<\/p>\n<p> &nbsp;F or O &nbsp;. Select sort field<\/p>\n<p> &nbsp;&lt;,&gt; &nbsp;&nbsp;&nbsp;&nbsp;. Move sort field: '&lt;' next col left; '&gt;' next col right<\/p>\n<p> &nbsp;R,H &nbsp;&nbsp;&nbsp;&nbsp;. Toggle: 'R' normal\/reverse sort; 'H' show threads<\/p>\n<p> &nbsp;c,i,S &nbsp;&nbsp;. Toggle: 'c' cmd name\/line; 'i' idle tasks; 'S' cumulative time<\/p>\n<p> &nbsp;x,y &nbsp;&nbsp;&nbsp;&nbsp;. Toggle highlights: 'x' sort field; 'y' running tasks<\/p>\n<p> &nbsp;z,b &nbsp;&nbsp;&nbsp;&nbsp;. Toggle: 'z' color\/mono; 'b' bold\/reverse (only if 'x' or 'y')<\/p>\n<p> &nbsp;u &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;. Show specific user only<\/p>\n<p> &nbsp;n or # &nbsp;. Set maximum tasks displayed<\/p>\n<p> &nbsp;k,r &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Manipulate tasks: 'k' kill; 'r' renice<\/p>\n<p> &nbsp;d or s &nbsp;&nbsp;&nbsp;Set update interval<\/p>\n<p> &nbsp;W &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write configuration file<\/p>\n<p> &nbsp;q &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quit<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;( commands shown with '.' require a visible task display window )<\/p>\n<p>Press 'h' or '?' for help with Windows,<\/p>\n<p>h\u6216\u8005? &nbsp;: \u663e\u793a\u5e2e\u52a9\u753b\u9762\uff0c\u7ed9\u51fa\u4e00\u4e9b\u7b80\u77ed\u7684\u547d\u4ee4\u603b\u7ed3\u8bf4\u660e\u3002<\/p>\n<p>k &nbsp;\uff1a\u7ec8\u6b62\u4e00\u4e2a\u8fdb\u7a0b\u3002\u7cfb\u7edf\u5c06\u63d0\u793a\u7528\u6237\u8f93\u5165\u9700\u8981\u7ec8\u6b62\u7684\u8fdb\u7a0bPID\uff0c\u4ee5\u53ca\u9700\u8981\u53d1\u9001\u7ed9\u8be5\u8fdb\u7a0b\u4ec0\u4e48\u6837\u7684\u4fe1\u53f7\u3002\u4e00\u822c\u7684\u7ec8\u6b62\u8fdb\u7a0b\u53ef\u4ee5\u4f7f\u752815\u4fe1\u53f7\uff1b\u5982\u679c\u4e0d\u80fd\u6b63\u5e38\u7ed3\u675f\u90a3\u5c31\u4f7f\u7528\u4fe1\u53f79\u5f3a\u5236\u7ed3\u675f\u8be5\u8fdb\u7a0b\u3002\u9ed8\u8ba4\u503c\u662f\u4fe1\u53f715\u3002\u5728\u5b89\u5168\u6a21\u5f0f\u4e2d\u6b64\u547d\u4ee4\u88ab\u5c4f\u853d\u3002<\/p>\n<p>i\uff1a\u5ffd\u7565\u95f2\u7f6e\u548c\u50f5\u6b7b\u8fdb\u7a0b\u3002\u8fd9\u662f\u4e00\u4e2a\u5f00\u5173\u5f0f\u547d\u4ee4\u3002<\/p>\n<p>q\uff1a &nbsp;\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<p>r\uff1a &nbsp;\u91cd\u65b0\u5b89\u6392\u4e00\u4e2a\u8fdb\u7a0b\u7684\u4f18\u5148\u7ea7\u522b\u3002\u7cfb\u7edf\u63d0\u793a\u7528\u6237\u8f93\u5165\u9700\u8981\u6539\u53d8\u7684\u8fdb\u7a0bPID\u4ee5\u53ca\u9700\u8981\u8bbe\u7f6e\u7684\u8fdb\u7a0b\u4f18\u5148\u7ea7\u503c\u3002\u8f93\u5165\u4e00\u4e2a\u6b63\u503c\u5c06\u4f7f\u4f18\u5148\u7ea7\u964d\u4f4e\uff0c\u53cd\u4e4b\u5219\u53ef\u4ee5\u4f7f\u8be5\u8fdb\u7a0b\u62e5\u6709\u66f4\u9ad8\u7684\u4f18\u5148\u6743\u3002\u9ed8\u8ba4\u503c\u662f10\u3002<\/p>\n<p>S\uff1a\u5207\u6362\u5230\u7d2f\u8ba1\u6a21\u5f0f\u3002<\/p>\n<p>s : &nbsp;\u6539\u53d8\u4e24\u6b21\u5237\u65b0\u4e4b\u95f4\u7684\u5ef6\u8fdf\u65f6\u95f4\u3002\u7cfb\u7edf\u5c06\u63d0\u793a\u7528\u6237\u8f93\u5165\u65b0\u7684\u65f6\u95f4\uff0c\u5355\u4f4d\u4e3as\u3002\u5982\u679c\u6709\u5c0f\u6570\uff0c\u5c31\u6362\u7b97\u6210ms\u3002\u8f93\u51650\u503c\u5219\u7cfb\u7edf\u5c06\u4e0d\u65ad\u5237\u65b0\uff0c\u9ed8\u8ba4\u503c\u662f5 s\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\u5982\u679c\u8bbe\u7f6e\u592a\u5c0f\u7684\u65f6\u95f4\uff0c\u5f88\u53ef\u80fd\u4f1a\u5f15\u8d77\u4e0d\u65ad\u5237\u65b0\uff0c\u4ece\u800c\u6839\u672c\u6765\u4e0d\u53ca\u770b\u6e05\u663e\u793a\u7684\u60c5\u51b5\uff0c\u800c\u4e14\u7cfb\u7edf\u8d1f\u8f7d\u4e5f\u4f1a\u5927\u5927\u589e\u52a0\u3002<\/p>\n<p>f\u6216\u8005F :\u4ece\u5f53\u524d\u663e\u793a\u4e2d\u6dfb\u52a0\u6216\u8005\u5220\u9664\u9879\u76ee\u3002<\/p>\n<p>o\u6216\u8005O &nbsp;:\u6539\u53d8\u663e\u793a\u9879\u76ee\u7684\u987a\u5e8f\u3002<\/p>\n<p>l: \u5207\u6362\u663e\u793a\u5e73\u5747\u8d1f\u8f7d\u548c\u542f\u52a8\u65f6\u95f4\u4fe1\u606f\u3002\u5373\u663e\u793a\u5f71\u85cf\u7b2c\u4e00\u884c<\/p>\n<p>m\uff1a \u5207\u6362\u663e\u793a\u5185\u5b58\u4fe1\u606f\u3002\u5373\u663e\u793a\u5f71\u85cf\u5185\u5b58\u884c<\/p>\n<p>t \uff1a \u5207\u6362\u663e\u793a\u8fdb\u7a0b\u548cCPU\u72b6\u6001\u4fe1\u606f\u3002\u5373\u663e\u793a\u5f71\u85cfCPU\u884c<\/p>\n<p>c\uff1a &nbsp;\u5207\u6362\u663e\u793a\u547d\u4ee4\u540d\u79f0\u548c\u5b8c\u6574\u547d\u4ee4\u884c\u3002 \u663e\u793a\u5b8c\u6574\u7684\u547d\u4ee4\u3002 \u8fd9\u4e2a\u529f\u80fd\u5f88\u6709\u7528\u3002<\/p>\n<p>M \uff1a \u6839\u636e\u9a7b\u7559\u5185\u5b58\u5927\u5c0f\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p>P\uff1a\u6839\u636eCPU\u4f7f\u7528\u767e\u5206\u6bd4\u5927\u5c0f\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p>T\uff1a \u6839\u636e\u65f6\u95f4\/\u7d2f\u8ba1\u65f6\u95f4\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p>W\uff1a &nbsp;\u5c06\u5f53\u524d\u8bbe\u7f6e\u5199\u5165~\/.toprc\u6587\u4ef6\u4e2d\u3002\u8fd9\u662f\u5199top\u914d\u7f6e\u6587\u4ef6\u7684\u63a8\u8350\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;&nbsp;TOP\u662f\u4e00\u4e2a\u52a8\u6001\u663e\u793a\u8fc7\u7a0b,\u5373\u53ef\u4ee5\u901a\u8fc7\u7528\u6237\u6309\u952e\u6765\u4e0d\u65ad\u5237\u65b0\u5f53\u524d\u72b6\u6001.\u5982\u679c\u5728\u524d\u53f0\u6267\u884c\u8be5\u547d\u4ee4,\u5b83\u5c06\u72ec\u5360\u524d\u53f0,\u76f4\u5230\u7528\u6237\u7ec8\u6b62\u8be5\u7a0b\u5e8f\u4e3a\u6b62.\u6bd4\u8f83\u51c6\u786e\u7684\u8bf4,top\u547d\u4ee4\u63d0\u4f9b\u4e86\u5b9e\u65f6\u7684\u5bf9\u7cfb&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[34],"tags":[11,12,5],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-software","tag-linux","tag-ubuntu","tag-5"],"views":5074,"_links":{"self":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}