Linux command for finding PID assigned to a CPU

If core number is 7

ps -e -o pid,nice,class,rtprio,psr,pcpu,comm --sort psr | awk '$5 == "7" {print; }'Code language: Bash (bash)

Leave a Reply

Your email address will not be published. Required fields are marked *