[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Process on which processor



nate writes:

> there was a SMP patch for procps a couple years ago,
> which also added SMP support to top.

That's very buggy and obsolete. Something like it
went into Red Hat; better code is in debian-unstable.

> I remember the 'ps' from it would show which
> processor a process was on. So look into that.
> perhaps a recompile of procps will give SMP
> support. I have a redhat 7.3 system here which
> has a SMP-aware top but ps doesn't seem to show
> anything CPU related.
>
> looks like the more recent versions of procps do
> not sport a SMP aware ps, I just recompiled the
> latest from sourceforge and do not see anything
> SMP except in top.

You could ask ps to display this mostly-useless info.
It shows up under columns named ENG, CPU, PSR, or P.
Some commands that will get this data:

ps -F
ps -P
PS_PERSONALITY=sgi ps -l
ps -o pid,sgi_p,psr,comm




Reply to: