Hello Dave, On 09/30/2014 11:21 PM, Dave Anderson wrote:
Regardless whether the cpu is online or not, the cpu's swapper task exists and is always runnable, so the output is showing its legitimate state. And since no other task is queued on the cpu's run queue, then it's essentially the "active" task on that cpu, waiting for it to come back online. I'm not sure why this is so bothersome to you?
It bothers me because ps shows swapper task on offline cpu and other active tasks are in the same style. What I want is to show it is different. I wish to distinguish the swapper task on offline cpu directly without having to check which cpu is offline firstly. I would like omitting ">" of idle task on offline cpu and adding "[OFFLINE]" at the end of the line when "offline" set to "hide". And maybe you would like adding "[OFFLINE]" at the end of those sleeping tasks of offline cpu as well.
I don't like the idea of "OF" in the state column, because that field shows the contents of the task's "task_struct.state" member. The command should show what's in the kernel data structure, not some "made-up" state.
-- Regards Qiao Nuohan -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility