sysstat and sar

After looking at how useful vmstat and iostat data is, you might be wondering how you can capture it all the time. The standard Unix system package for this purpose is named sysstat, and it's not installed or activated on many systems by default. On some systems, you have to install this package just to get iostat. The easiest way to test out if you have sysstat installed and working is to run its user interface, the sar program, and see if anything comes back. If not, you will either have to install sysstat (if sar isn't even there) or enable it (if it's there but has no data).

Once it's running and collecting data, sysstat collects up data quite regularly, and gives you a broad perspective of average server performance during ...

Get PostgreSQL 10 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.