[prev in list] [next in list] [prev in thread] [next in thread] 

List:       centos
Subject:    Re: [CentOS] process accounting on 5.7
From:       Alan McKay <alan.mckay () gmail ! com>
Date:       2012-03-29 17:37:34
Message-ID: CAH8ZPGm5B8W-m0U21vSfBM3OikWT_hof5zUKOUSgJfegh-QnPQ () mail ! gmail ! com
[Download RAW message or body]

On Mon, Mar 26, 2012 at 8:57 AM, John Doe <jdmls@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"
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic