Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] process and affinity

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] process and affinity


Chronological Thread 
  • From: Azher Mughal <>
  • To: Tom Throckmorton <>
  • Cc: "" <>
  • Subject: Re: [perfsonar-user] process and affinity
  • Date: Tue, 03 Feb 2015 09:46:40 -0800

Ah ... "f" option for top is useful. Next option is 'j' which adds a P column for the SMP core.

Thanks
-Azher

On 2/3/2015 9:42 AM, Tom Throckmorton wrote:
On Tue, Feb 3, 2015 at 11:14 AM, Azher Mughal <> wrote:
Hi All,

I thought you might have some better hints.

As you know that running processes can be mapped to different CPU cores
(irqbalance or manual). By default process affinity is f or ff etc.
based on the number of available cores.

Is there a way (other than taskset or poking /proc) to see which process
is using which core , I mean through some some Linux tool ? I tried
htop, top, atop, mpstat ... but they tell a summary of total core usage,
but not about that specific process which just consumed 40% of that core.

Couple of ways:

1) ps -F wlll show the PSR,  which is the processor that process is currently assigned to

2) recent top version can be taught to show it (in top, f to select fields mgmt, then select P)

I believe htop can as well, but don't have that installed at the moment, and can't recall the invocation.

cheers,

-tt

 

An alternate way could be to get a process list and force taskset the
interested ones.

Thanks
-Azher


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Archive powered by MHonArc 2.6.16.

Top of Page