I'm trying to monitor for any process (individual PID) using more than a threshold amount of CPU. TOPAS is showing me;
but, at the same time " ps aux | grep 18546774" shows this
sciadmin 18546774 12.4 1.0 246724 51520 - A Mar 26 149658:00 /apps/ibm/cogn
so topas shows the PID is using 54% of CPU while ps shows 12.4% of CPU. I understand these are instantaneous values, but they are consistent, over time in showing great difference.
Is there a way that I can get topas info without all the graphical stuff, or is there a command that will show the actual CPU utilization (by % of currently allocated CPU or by physical cores used by that PID). as text that I can use in my monitoring script?