How to list core usage by apps?

Discussion in 'macOS' started by ebt, Dec 31, 2011.

  1. ebt macrumors newbie

    Joined:
    Jan 19, 2011
    #1
    I've had a dabble with top & activity monitor, but cant quite see how to get a list of core usage by applications.

    Eg.

    Core 1, xx% used. yy% Safari, zz% itunes.
    Core 2, xx% used. yy% mail, zz% MS Word.

    Any bright ideas?
     
  2. orvn macrumors 6502

    Joined:
    Jan 11, 2011
    Location:
    Toronto, Canada
    #2
    I can point you in a direction:

    Use ps.
    man ps for more.
    Something to do with ps -P
     
  3. ebt thread starter macrumors newbie

    Joined:
    Jan 19, 2011
    #3
    Thanks for the reply. I'll admit I may have my stupid mode engaged, but I couldnt see any reference to which core the process is running on (yes, I've mashed my fingers into the keyboard for ages).

    The -p switch just seems to be a more verbose output for a specific PID, unless I missed something? (entirely possible).

    Im not sure if its relevant, but Im sitting on OSX10.6.8
     
  4. ebt thread starter macrumors newbie

    Joined:
    Jan 19, 2011
    #4
    looks like this one is hard to do then I guess :)
     
  5. mfram macrumors 65816

    Joined:
    Jan 23, 2010
    Location:
    San Diego, CA USA
    #5
    It's hard to do because it isn't really that useful. Mac OS is a symmetrical multi-processing system. The operating system task scheduler is free to put any task that needs the CPU on any CPU at any time. The only real penalty to moving a task to a different CPU is possible CPU cache inefficiency. But it is outweighed by the fact a CPU is available to service the waiting task.

    It's not like Safari only runs on CPU 1. As a matter of fact many of these programs are multi-threaded and it's possible Safari could have multiple threads running on multiple CPUs at once.
     

Share This Page