2

I want to get statistic hourly by used averages resources per user such as cpu and memory. How I can get it?

Devoll
  • 39
  • 1
  • 3

1 Answers1

0

http://linux.die.net/man/1/sar

SAR to the rescue

You can get activity reports with this linux command. I especially like this article showing different usages:

http://www.thegeekstuff.com/2011/03/sar-examples/

Or, per user, you can use sa:

http://www.gnu.org/software/acct/manual/html_chapter/accounting_6.html#SEC20

$ sa --user-summary
                                       23       0.13re       0.01cp         0avio      3163k
root                                    9       0.13re       0.01cp         0avio      3588k
ssperandeo                              3       0.00re       0.00cp         0avio      1467k
rabbitmq                               10       0.00re       0.00cp         0avio      1020k
postgres                                1       0.00re       0.00cp         0avio     25856k
Homer6
  • 221
  • 2
  • 7