ps -eo pid,args,psr | grep exh #exh为进程名前缀

psr(process serial)为CPU编号,如上图所示,exhaust_cpu在1号CPU运行。
本文介绍了如何使用ps和grep命令监控带有exh前缀的进程,重点在于理解psr(CPU编号)的概念,例如exhaust_cpu在1号CPU上的运行情况,对于系统性能分析和优化具有重要意义。
ps -eo pid,args,psr | grep exh #exh为进程名前缀

psr(process serial)为CPU编号,如上图所示,exhaust_cpu在1号CPU运行。
1685
2748
2034
3538

被折叠的 条评论
为什么被折叠?