Various system activity reports can be generated by the
command atopsar similar to the traditional UNIX sar command.
The command atopsar is a symlink to the command atop and
will be added automatically during the installation phase of atop.
Colors and (on request) markers are used by atopsar to highlight that the
utilization of a resource is critical (red) or almost critical (cyan).
With the flag -c in the following example a report is generated about current CPU utilization of the system during 5 minutes (five times with an interval of sixty seconds):
$ atopsar -c 60 5 14:22:11 cpu %usr %nice %sys %irq %softirq %steal %wait %idle _cpu_ 14:23:11 all 2 0 8 1 1 0 88 0 14:24:11 all 32 0 38 1 1 0 28 014:25:11 all 43 0 45 2 1 0 0 914:26:11 all 2 0 2 1 1 0 15 79 14:27:11 all 2 0 1 0 0 0 11 86
With the flag -A in the following example all available reports are generated, starting from 13:00 (optional flag -b) till 13:35 (optional flag -e) reading today's raw file as written by the atop command (default):
$ atopsar -A -b 13:00 -e 13:35 13:00:01 cpu %usr %nice %sys %irq %softirq %steal %wait %idle _cpu_ 13:10:01 all 6 0 8 4 4 0 54 24 13:20:01 all 10 0 12 4 4 0 56 15 13:30:01 all 31 0 9 3 3 0 35 19 13:00:01 pswch/s devintr/s clones/s loadavg1 loadavg5 loadavg15 _load_ 13:10:01 8042 6256 0.33 1.12 0.99 0.51 13:20:01 8575 5806 0.34 1.31 1.28 0.89 13:30:01 6594 4397 0.39 1.29 1.54 1.22 13:00:01 clones/s pexit/s curproc curzomb thrrun thrslpi thrslpu _procthr_ 13:10:01 0.33 0.33 150 0 1 167 0 13:20:01 0.28 0.26 151 0 1 163 0 13:30:01 0.71 0.72 143 0 2 173 0 13:00:01 memtotal memfree buffers cached slabmem swptotal swpfree _mem_ 13:10:01 995M 12M 48M 718M 56M 1983M 1895M 13:20:01 995M 13M 60M 705M 57M 1983M 1895M 13:30:01 995M 13M 62M 702M 57M 1983M 1895M 00:00:01 pagescan/s swapin/s swapout/s oomkill commitspc commitlim _swap_ 13:10:01 806.83 0.06 0.00 0 506M 2481M 13:20:01 736.96 0.00 0.00 0 505M 2481M 13:30:01 645.96 0.04 0.06 0 510M 2481M 13:00:01 disk busy read/s KB/read write/s KB/writ avque avserv _disk_ 13:10:01 hdc 0% 0.00 0.0 0.00 0.0 0.00 0.00 ms sda 61% 192.52 18.0 3.67 24.3 2.86 3.09 ms 13:20:01 sda 60% 253.84 12.1 3.72 31.6 2.64 2.35 ms 13:30:01 sda 57% 235.82 11.3 4.00 24.4 3.36 2.37 ms 13:00:01 interf busy ipack/s opack/s iKbyte/s oKbyte/s imbps ombps maxmbps_if_ 13:10:01 lo ? 0.0 0.0 0 0 0 0 0 eth0 0% 0.0 0.0 0 0 0 0 10 h eth1 12% 2653.3 3809.0 899 1558 7 12 100 f 13:20:01 eth1 11% 2055.5 3936.6 190 1408 1 11 100 f 13:30:01 eth1 8% 1481.3 2929.2 88 1057 0 8 100 f 13:00:01 interf ierr/s oerr/s coll/s idrop/s odrop/s iframe/s ocarrier/s _if_ 13:10:01 lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 eth1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:20:01 eth1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:30:01 eth1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:00:01 inrecv/s outreq/s indeliver/s forward/s reasmok/s fragcreat/s _ipv4_ 13:10:01 2652.6 3809.0 2652.6 0.0 0.0 0.0 13:20:01 2054.7 3936.6 2054.7 0.0 0.0 0.0 13:30:01 1480.6 2929.2 1480.6 0.0 0.0 0.0 13:00:01 in: dsc/s hder/s ader/s unkp/s ratim/s rfail/s out: dsc/s nrt/s_ipv4_ 13:10:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:20:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:30:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:00:01 intot/s outtot/s inecho/s inerep/s otecho/s oterep/s _icmpv4_ 13:10:01 0.0 0.0 0.00 0.00 0.00 0.00 13:20:01 0.0 0.0 0.00 0.00 0.00 0.00 13:30:01 0.0 0.0 0.00 0.00 0.00 0.00 13:00:01 ierr/s isq/s ird/s idu/s ite/s oerr/s osq/s ord/s odu/s ote/s_icmpv4_ 13:10:01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:20:01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:30:01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:00:01 indgram/s outdgram/s inerr/s noport/s _udpv4_ 13:10:01 0.0 0.0 0.00 0.00 13:20:01 0.0 0.0 0.00 0.00 13:30:01 0.0 0.0 0.00 0.00 13:00:01 inrecv/s outreq/s inmc/s outmc/s indeliv/s reasmok/s fragcre/s _ipv6_ 13:10:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:20:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:30:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:00:01 in: dsc/s hder/s ader/s unkp/s ratim/s rfail/s out: dsc/s nrt/s_ipv6_ 13:10:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:20:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:30:01 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13:00:01 intot/s outtot/s inerr/s innsol/s innadv/s otnsol/s otnadv/s _icmp6_ 13:10:01 0.0 0.0 0.00 0.00 0.00 0.00 0.00 13:20:01 0.0 0.0 0.00 0.00 0.00 0.00 0.00 13:30:01 0.0 0.0 0.00 0.00 0.00 0.00 0.00 13:00:01 iecho/s ierep/s oerep/s idu/s odu/s ird/s ord/s ite/s ote/s _icmpv6_ 13:10:01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:20:01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:30:01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13:00:01 indgram/s outdgram/s inerr/s noport/s _udpv6_ 13:10:01 0.0 0.0 0.00 0.00 13:20:01 0.0 0.0 0.00 0.00 13:30:01 0.0 0.0 0.00 0.00 13:00:01 insegs/s outsegs/s actopen/s pasopen/s nowopen _tcp_ 13:10:01 2652.6 3809.0 0.0 0.0 2 13:20:01 2054.7 3936.6 0.0 0.0 1 13:30:01 1480.5 2929.2 0.0 0.0 2 13:00:01 inerr/s retrans/s attfail/s estabreset/s outreset/s _tcp_ 13:10:01 0.0 0.0 0.0 0.0 0.0 13:20:01 0.0 0.0 0.0 0.0 0.0 13:30:01 0.0 0.0 0.0 0.0 0.0
All abbreviations used in these reports are explained in the manual page of the atopsar command.