为什么Linux进程太忙(ptrace左右)?

时间:2022-08-16 20:46:11

On multi-core RHEL6, there is a FIFO realtime process in a deadloop, so it occupies all the CPU resources on the core (process is bound to the core). However, the other cores are pretty fine.

在多核RHEL6上,死循环中存在FIFO实时进程,因此它占用核心上的所有CPU资源(进程绑定到核心)。但是,其他内核非常好。

At this time, pstack for the process in deadloop failed to print anything. At the same time, pstack for any other processes works well.

此时,deadloop进程的pstack无法打印任何内容。同时,任何其他进程的pstack运行良好。

Could anyone please help to let me know why?

有谁可以帮忙告诉我为什么?

Thanks!

1 个解决方案

#1


1  

try in this way, put the debuger command in a free core with taskset -c corenumber /path/command and after this try change the scheduling class in fifo of your debug process using chrt command

尝试这样,将debuger命令放在一个带有taskset -c corenumber / path / command的免费核心中,然后尝试使用chrt命令在fifo的调试进程中更改调度类

I think you found this problem, because the fifo process cannot be stoped by normal process

我认为你发现了这个问题,因为正常进程无法停止fifo进程

#1


1  

try in this way, put the debuger command in a free core with taskset -c corenumber /path/command and after this try change the scheduling class in fifo of your debug process using chrt command

尝试这样,将debuger命令放在一个带有taskset -c corenumber / path / command的免费核心中,然后尝试使用chrt命令在fifo的调试进程中更改调度类

I think you found this problem, because the fifo process cannot be stoped by normal process

我认为你发现了这个问题,因为正常进程无法停止fifo进程