[CentOS] process accounting on 5.7

Thu Mar 29 17:37:34 UTC 2012
Alan McKay <alan.mckay at gmail.com>

On Mon, Mar 26, 2012 at 8:57 AM, John Doe <jdmls at yahoo.com> wrote:

>
> Indeed, I looked too fast and missed the IDs...
> So, why not just something like this:
> dump-acct /var/account/pacct | awk -F\| '
>     { total_cpu += $4; cpu[$5] += $4;
>       total_ram += $7; ram[$5] += $7 }
>     END { for (x in cpu) {
>               print x" "int((cpu[x]*100)/total_cpu)"%
> "int((ram[x]*100)/total_ram)"%"; } } '
> Or just 'sa -m'?



Thanks, yeah I can definitely do that - just wanted to see if there was
something already out there which had a few bells and whistles.

But that raw data above should be good enough for my use


-- 
“Don't eat anything you've ever seen advertised on TV”
         - Michael Pollan, author of "In Defense of Food"