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


1 Answer 1



SAR to the rescue

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


Or, per user, you can use sa:


$ 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
  • Thnx, but I don't see how I can show it per user
    – Devoll
    Nov 20, 2012 at 17:45
  • Updated to address user-specific queries.
    – Homer6
    Nov 20, 2012 at 17:53
  • This command output result for all time (since last reboot)?
    – Devoll
    Nov 20, 2012 at 17:58
  • All time. It saves it to a file.
    – Homer6
    Nov 20, 2012 at 18:02
  • A lot of thanx!
    – Devoll
    Nov 20, 2012 at 18:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .