I need to track amount of processes that a single user invoked and how much CPU-time (or % ) these processes consumed for a given period of time.
The trick is that each of these processes normally runs for a split second and consume almost no CPU, but they are invoked lots of time per second. Therefore "ps -eo user,pid,pcpu,time,args" are not reliable.
In the end I wanted a report saying something like: "user foobar consumed xxx CPU-TIME/CPU% during the last xx seconds"
Does anyone has a light of how can I achieve it? The OS is a AIX7.1, but the question applies for Linux RHEL7 as well.
Thanks in advance.