Thursday, May 27, 2010

How do you find out which cpu a process is running on?

The output of the ps command can be changed to a user defined format by using the -o option.

The following command can be used to display the CPU and the processes assigned.

# ps -eo pid,args,psr

Options:

pid - The process ID of the process.

args - Command with all its arguments as a string.

psr - processor currently assigned to the process.

Go to the man pages for more information on the ps command.

2 comments:

  1. I don't this Windows knows what to do with this command. Neither does my ipad!

    ReplyDelete
  2. Just the info I was looking for. Thank you!

    ...Pete

    ReplyDelete