Is there a built-in way of checking free mem history or any other performance stat on redhat 6.5--e.g., the past hour, days, weeks etc..

On other systems, I have previously used orca which creates logs of performance stats.

If there is no built-in, is there a recommended way of doing it.

  • Such performance history recording isn't considered a requirement for base OS, therefore just a few or maybe no OS has that kind of system built-in. Also, product recommendations are off-topic here. – Tero Kilkanen Oct 26 '16 at 19:11
  • Thanks Tero. I was not asking for a product recommendation. I asked if there was a recommended way of doing it for redhat. – user55570 Oct 26 '16 at 19:39
  • 1
    The recommended way is to use a monitoring software for it. – Tero Kilkanen Oct 26 '16 at 19:47

There isn't one that is always there. Such packages are in the default repos for engineers to set up, such as , but are not installed in a default installation.

| improve this answer | |
yum install sysstat

This will add sar,sadf,sa1,sa2 utilities and default cron.

[root@node-2 cron.d]# pwd
[root@node-2 cron.d]# cat sysstat
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

By default sa1 will run every 10 minutes and will collect system performance data.

Once you have sar - you can analyze historical system performance like this.

Example 1. RAM stats for day 27 of the current month

sadf -d /var/log/sa/sa27 -t -- -r

Example 2. CPU stats for day 27 of the current month

sadf -d /var/log/sa/sa27 -t -- -u

Example 3. IO stats

sadf -d /var/log/sa/sa27 -t -- -b
| improve this answer | |
  • needless to say - you won't be able to go and analyze performance data prior to date sysstat package was installed. Once it's installed - it starts to collect perf data. – Dmitry Zayats Oct 29 '16 at 21:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.