Saturday, July 19, 2008

Sar command in RHEL

SYSSTAT tool kit provide sar, sadf, mpstat, iostat, pidstat and sa tools for Linux system. The official website of SYSSTAT is http://pagesperso-orange.fr/sebastien.godard/

SYSSTAT main features which list on the official website:
  • Includes four groups of monitoring tools (sar / sadc / sadf, iostat, mpstat, pidstat) for global system performance analysis.
  • Can monitor a huge number of different metrics:
    1. Input / Output and transfer rate statistics (global, per device, per partition, per network filesystem and per Linux task / PID)
    2. CPU statistics (global, per CPU and per Linux task / PID), including support for virtualization architectures
    3. Memory and swap space utilization statistics
    4. Virtual memory, paging and fault statistics
    5. Per-task (per-PID) memory and page fault statistics
    6. Global CPU and page fault statistics for tasks and all their children
    7. Process creation activity
    8. Interrupt statistics (global, per CPU and per interrupt, including potential APIC interrupt sources)
    9. Network statistics, for all network interfaces!
    10. NFS server and client activity
    11. Socket statistics
    12. Run queue and system load statistics
    13. Kernel internal tables utilization statistics
    14. System and per Linux task switching activity
    15. Swapping statistics
    16. TTY device activity
  • Average statistics values are calculated over the sampling period.
  • Works with every Linux kernel (from the old 2.0 to the newest 2.6 ones),
  • Most system statistics can be saved in a file for future inspection.
  • Allows to configure the length of data history to keep.
  • On the fly detection of new devices (disks, network interfaces, etc.) that are created or registered dynamically.
  • Support for UP and SMP machines, including machines with hyperthreaded or multi-core processors.
  • Support for hotplug CPUs (it detects automagically CPUs that are disabled or enabled on the fly).
  • Works on many different architectures, whether 32- or 64-bit.
  • Needs very little CPU time to run (written in C).
  • System statistics can be exported in various different formats (CSV, XML, etc.). DTD and XML Schema documents are included in sysstat package.
  • Internationalization support (sysstat has been translated into numerous different languages). Sysstat is now part of the Translation Project.
  • Many programs available on the internet to use sysstat's data to make graphs (one of them, isag, is included in sysstat).

No comments: