Under Linux, the top tool can display the average CPU utilization (USER,NICE,SYSTEM,IDLE,IOWAIT,IRQ,SOFTIRQ,ETC.), which shows the utilization of each CPU. However, this situation may occur when the CPU utilization of each thread cannot be displayed, and the total CPU utilization is high, but the user or system of the process does not correspond when the CPU usage of the process is sorted.
You can use the following command to find a thread with high CPU usage:
$ ps H-eo user,pid,ppid,tid,time,%cpu,cmd--sort=%cpu
This command first specifies the parameter ' H ', which displays the thread-related information, which is included in the format output: User,pid,ppid,tid,time,%cpu,cmd and then sorted using the%cpu field. This will find the processor-hogging thread.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/