What processes are running on which CPU?

Erel Segal-Halevi

Running "top" shows you how much CPU power is used by each process.

Suppose you have several CPUs. Is there a utility that shows you the same information as top, but for each individual CPU?

For example, if this utility is called "topp" then "topp 1" would show all the processes that run on CPU number 1, and how much power of that CPU that take. Is there such a program?

muru

The command you're looking for is ... top. From man top:

12. P  --  Last used CPU (SMP)
    A  number representing the last used processor.  In a true SMP
    environment this  will  likely  change  frequently  since  the
    kernel  intentionally  uses weak affinity.  Also, the very act
    of running top may break this weak  affinity  and  cause  more
    processes  to  change  CPUs  more  often (because of the extra
    demand for cpu time).

When running top, you can apply filters to the processes shown. Press ? to see the help:

enter image description here

As mentioned, to filter, press o(after exiting the help), then type P=N, where N is the desired CPU number:

enter image description here

Press Enter. The processes should now be only those that last ran on CPU 0.

Note that the defaault list of columns does not include the CPU number. Press f to change the fields:

enter image description here

Move to P and press Spacebar to select it. When you exit the help, the column should be there:

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

On what CPU cores are my Python processes running?

From Dev

Running multiple processes on a single CPU

From Dev

Which user is running the most processes?

From Dev

Determine which CPU a process is running on

From Dev

Which way is the best for running background processes?

From Dev

How can I see what processes are running?

From Dev

What are all these rcuos processes running on my server?

From Dev

How to get all processes running on each CPU core in Ubuntu?

From Dev

setting (system-wide) CPU affinities for running processes on a Linux platform

From Dev

How do I know which processes are running and who own the process?

From Dev

How do I know which processes are running and who own the process?

From Dev

At what point will two CPU processes interfere with each other?

From Dev

what does CPU% means in `ps auxf` for processes with parent/child relationship?

From Dev

Windows - is there a way to see what apps spawn/use which processes?

From Dev

How can I see which user accounts are running which processes in Windows 8.1?

From Dev

How to find on which CPU&Core my thread is running

From Dev

What if I override an instance of Task which is running?

From Java

Android studio using > 100% CPU at all times - no background processes appear to be running

From Dev

Task Manager shows higher total CPU usage than the sum of all running processes. Hidden process?

From Dev

Tesseract: High CPU Usage and slow speed, only when running multiple processes in parallel

From Dev

What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

From Dev

python multiprocessing - select-like on running processes to see which have one have finished

From Dev

What does grep do when it's not running the CPU?

From Dev

Which processes with daemon are unnecessary?

From Dev

Which processes with daemon are unnecessary?

From Dev

Which processes are not needed for boot?

From Dev

Get list of running processes

From Dev

Running two python processes

From Dev

2 processes running on Sphinx

Related Related

  1. 1

    On what CPU cores are my Python processes running?

  2. 2

    Running multiple processes on a single CPU

  3. 3

    Which user is running the most processes?

  4. 4

    Determine which CPU a process is running on

  5. 5

    Which way is the best for running background processes?

  6. 6

    How can I see what processes are running?

  7. 7

    What are all these rcuos processes running on my server?

  8. 8

    How to get all processes running on each CPU core in Ubuntu?

  9. 9

    setting (system-wide) CPU affinities for running processes on a Linux platform

  10. 10

    How do I know which processes are running and who own the process?

  11. 11

    How do I know which processes are running and who own the process?

  12. 12

    At what point will two CPU processes interfere with each other?

  13. 13

    what does CPU% means in `ps auxf` for processes with parent/child relationship?

  14. 14

    Windows - is there a way to see what apps spawn/use which processes?

  15. 15

    How can I see which user accounts are running which processes in Windows 8.1?

  16. 16

    How to find on which CPU&Core my thread is running

  17. 17

    What if I override an instance of Task which is running?

  18. 18

    Android studio using > 100% CPU at all times - no background processes appear to be running

  19. 19

    Task Manager shows higher total CPU usage than the sum of all running processes. Hidden process?

  20. 20

    Tesseract: High CPU Usage and slow speed, only when running multiple processes in parallel

  21. 21

    What linux server settings allow my long running processes to keep running after the terminal is closed/terminated?

  22. 22

    python multiprocessing - select-like on running processes to see which have one have finished

  23. 23

    What does grep do when it's not running the CPU?

  24. 24

    Which processes with daemon are unnecessary?

  25. 25

    Which processes with daemon are unnecessary?

  26. 26

    Which processes are not needed for boot?

  27. 27

    Get list of running processes

  28. 28

    Running two python processes

  29. 29

    2 processes running on Sphinx

HotTag

Archive