運行top命令時按住小鍵盤1 想看看有多少個CPU , 獲得提示 terminal is not big enoughpost
運行mpstat -P ALL 就能夠看見 有多少個CPUcode
top - 13:39:15 up 27 days, 18:59, 1 user, load average: 1.81, 1.36, 1.41 Tasks: 1972 total, 1 running, 1971 sleeping, 0 stopped, 0 zombie Cpu(s): 0.1%us, 0.1%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 264414960k total, 250606104k used, 13808856k free, 165304k buffers Swap: 67108860k total, 335232k used, 66773628k free, 233032116k cached sorry ,terminal is not big enough PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9375 postgres 20 0 62.3g 61g 61g S 0.0 24.3 249:53.66 postgres