centos top命令详解
Last updated
2023-01-18 17:57:26
{"value":"top\u662flinux\u4e2d\u5e38\u7528\u7684\u547d\u4ee4\u4e4b\u4e00\uff0c\u53ef\u4ee5\u5206\u6790linux\u7684\u6027\u80fd\u3002\u4e0b\u9762\u8be6\u7ec6\u8bf4\u660e\u4e00\u4e0btop\u547d\u4ee4\u5404\u4e2a\u53c2\u6570\u7684\u542b\u4e49\u3002\n\n```\ntop - 04:45:36 up 3 days, 6:50, 3 users, load average: 0.02, 0.04, 0.05\nTasks: 113 total, 1 running, 112 sleeping, 0 stopped, 0 zombie\n%Cpu(s): 0.0 us, 0.2 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st\nKiB Mem : 1882040 total, 1396268 free, 182020 used, 303752 buff\/cache\nKiB Swap: 0 total, 0 free, 0 used. 1523460 avail Mem \n\n PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND \n 1 root 20 0 125484 3928 2616 S 0.0 0.2 0:03.23 systemd \n 2 root 20 0 0 0 0 S 0.0 0.0 0:00.06 kthreadd \n 3 root 20 0 0 0 0 S 0.0 0.0 0:00.29 ksoftirqd\/0 \n```\n\n### \u7b2c\u4e00\u884c\uff1a\u7cfb\u7edf\u4fe1\u606f\n\ntop - 04:45:36 up 3 days, 6:50, 3 users, load average: 0.02, 0.04, 0.05\n\n```\n04:45:36 #\u5f53\u524d\u65f6\u95f4\nup 3 days, 6:50 #\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\uff0c\u683c\u5f0f\u4e3a\u65f6\uff1a\u5206 \n3 users #\u5f53\u524d\u767b\u5f55\u7528\u6237\u6570\nload average: 0.02, 0.04, 0.05 #\u7cfb\u7edf\u8d1f\u8f7d\uff0c\u5373\u4efb\u52a1\u961f\u5217\u7684\u5e73\u5747\u957f\u5ea6\u3002 \u4e09\u4e2a\u6570\u503c\u5206\u522b\u4e3a 1\u5206\u949f\u30015\u5206\u949f\u300115\u5206\u949f\u524d\u5230\u73b0\u5728\u7684\u5e73\u5747\u503c\u3002 \n```\n\n### \u7b2c\u4e8c\u884c\uff1a\u8fdb\u7a0b\u4fe1\u606f\n\nTasks: 113 total, 1 running, 112 sleeping, 0 stopped, 0 zombie\n\n```\n113 total #\u8fdb\u7a0b\u603b\u6570\n1 running #\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u6570\n112 sleeping #\u7761\u7720\u7684\u8fdb\u7a0b\u6570\n0 stopped #\u505c\u6b62\u7684\u8fdb\u7a0b\u6570\n0 zombie #\u50f5\u5c38\u8fdb\u7a0b\u6570\n```\n\n### \u7b2c\u4e09\u884c\uff1aCPU\u4f7f\u7528\u4fe1\u606f\uff08\u767e\u5206\u6bd4\uff09\n\n%Cpu(s): 0.0 us, 0.2 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st\n\n```\n0.0 us #\u7528\u6237\u7a7a\u95f4\u5360\u7528CPU\u767e\u5206\u6bd4\n0.2 sy #\u5185\u6838\u7a7a\u95f4\u5360\u7528CPU\u767e\u5206\u6bd4\n0.0 ni #\u7528\u6237\u8fdb\u7a0b\u7a7a\u95f4\u5185\u6539\u53d8\u8fc7\u4f18\u5148\u7ea7\u7684\u8fdb\u7a0b\u5360\u7528CPU\u767e\u5206\u6bd4\n99.8 id #\u7a7a\u95f2CPU\u767e\u5206\u6bd4\n0.0 wa #\u7b49\u5f85\u8f93\u5165\u8f93\u51fa\u7684CPU\u65f6\u95f4\u767e\u5206\u6bd4\n0.0 hi #\u786c\u4e2d\u65ad\uff08Hardware IRQ\uff09\u5360\u7528CPU\u7684\u767e\u5206\u6bd4\n0.0 si #\u8f6f\u4e2d\u65ad\uff08Software Interrupts\uff09\u5360\u7528CPU\u7684\u767e\u5206\u6bd4\n0.0 st #\u865a\u62df\u673a\u5077\u53d6\u65f6\u95f4\n```\n\n### \u7b2c\u56db\u884c\uff1a\u5185\u5b58\u4f7f\u7528\u4fe1\u606f\uff08\u5355\u4f4d\u4e3akb\uff09\n\nKiB Mem : 1882040 total, 1396268 free, 182020 used, 303752 buff\/cache\n\n```\n1882040 total #\u7269\u7406\u5185\u5b58\u603b\u91cf\n1396268 free #\u7a7a\u95f2\u5185\u5b58\u603b\u91cf\n182020 used #\u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u603b\u91cf\n303752 buff\/cache #\u7528\u4f5c\u5185\u6838\u7f13\u5b58\u7684\u5185\u5b58\u91cf\n```\n\n### \u7b2c\u4e94\u884c\uff1a\u4ea4\u6362\u533a\u603b\u91cf\n\nKiB Swap: 0 total, 0 free, 0 used. 1523460 avail Mem \n\n```\n0 total #\u4ea4\u6362\u533a\u603b\u91cf\n0 free #\u7a7a\u95f2\u4ea4\u6362\u533a\u603b\u91cf\n0 used #\u4f7f\u7528\u7684\u4ea4\u6362\u533a\u603b\u91cf\n1523460 avail Mem #Mem \u7f13\u51b2\u7684\u4ea4\u6362\u533a\u603b\u91cf\n```\n\n\u5217\u540d\uff1a\n PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND \n\n```\n PID #\u8fdb\u7a0bid\n USER #\u8fdb\u7a0b\u6240\u6709\u8005\u7684\u7528\u6237\u540d\n PR #\u4f18\u5148\u7ea7\n NI #nice\u503c\u3002\u8d1f\u503c\u8868\u793a\u9ad8\u4f18\u5148\u7ea7\uff0c\u6b63\u503c\u8868\u793a\u4f4e\u4f18\u5148\u7ea7\n VIRT #\u8fdb\u7a0b\u4f7f\u7528\u7684\u865a\u62df\u5185\u5b58\u603b\u91cf\uff0c\u5355\u4f4dkb\u3002VIRT=SWAP+RES\n RES #\u8fdb\u7a0b\u4f7f\u7528\u7684\u3001\u672a\u88ab\u6362\u51fa\u7684\u7269\u7406\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u4f4dkb\u3002RES=CODE+DATA\n SHR #\u5171\u4eab\u5185\u5b58\u5927\u5c0f\uff0c\u5355\u4f4dkb\n S #\u8fdb\u7a0b\u72b6\u6001\n %CPU #\u4e0a\u6b21\u66f4\u65b0\u5230\u73b0\u5728\u7684CPU\u65f6\u95f4\u5360\u7528\u767e\u5206\u6bd4\n %MEM #\u8fdb\u7a0b\u4f7f\u7528\u7684\u7269\u7406\u5185\u5b58\u767e\u5206\u6bd4\n TIME+ #\u8fdb\u7a0b\u4f7f\u7528\u7684CPU\u65f6\u95f4\u603b\u8ba1\uff0c\u5355\u4f4d1\/100\u79d2\n COMMAND #\u547d\u4ee4\u540d\/\u547d\u4ee4\u884c\n```"}