0

I am using Linux system which is having 8 core. I am seeing from top command that core 0 is 100% used .

Please suggest how can I see real time usage of core 0 and all process running on core 0

  • Does this answer to your question? https://stackoverflow.com/questions/5732192/ps-utility-in-linux-procps-how-to-check-which-cpu-is-used – BenYoo Sep 15 '22 at 07:47
  • It is showing processes but not what I want . I want all process running on core 0 – shekhar singh Sep 15 '22 at 09:25

1 Answers1

0

ps can show a list of processes. Pass --sort=-pcpu, to sort by cpu percent. psr shows processor that process is currently assigned to. watch allows to see how the list changes over time:

watch -- ps -axo psr,pcpu,uid,user,pid,tid,args --sort=-pcpu

cafce25
  • 15,907
  • 4
  • 25
  • 31
jfs
  • 399,953
  • 195
  • 994
  • 1,670