Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 873 Bytes

01-sys-stat.md

File metadata and controls

22 lines (15 loc) · 873 Bytes
title expires_at tags
Sysstat
never
garden-runc-release

Sysstat

In the sysstat folder you can find multiple files containing system statistics (CPU, Memory, I/O, ...) over time.

In order to make use of this information, you need to do the following:

export LC_ALL=C
for file in $(ls sysstat/sa[0-9]*) ; do sar -A -f "$file"  >> sa.data.txt; done

and then use ksar to turn the result into pdf graphs.

There are 2 types of files in sysstat: sa* and sar*. The sas are binaries updated every 10 mins or so. The sars are text files generated once per day. Therefore you probably want to parse the sa files as they will be more current.

Note: ksar seems to dislike some lines in that file and will complain. What you can do is keep removing the zero lines until it is happy.