<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sysstat</id>
	<title>Sysstat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Sysstat"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Sysstat&amp;action=history"/>
	<updated>2026-05-15T09:10:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Sysstat&amp;diff=179&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;Add SAR notes here.&lt;/br&gt; https://www.thegeekdiary.com/how-to-view-past-performance-with-sar-in-linux/   By default, sar stats are collected every 10 minutes. The data is collected using a simple cron job configured within /etc/cron.d/sysstat. This job can be amended to collect the data as frequently as you require. Example /etc/cron.d/sysstat file is provided below.  # cat /etc/cron.d/sysstat  # Run system activity accounting tool every 10 minutes  */10 * * * * root /usr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Sysstat&amp;diff=179&amp;oldid=prev"/>
		<updated>2024-09-11T14:28:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Add SAR notes here.&amp;lt;/br&amp;gt; https://www.thegeekdiary.com/how-to-view-past-performance-with-sar-in-linux/   By default, sar stats are collected every 10 minutes. The data is collected using a simple cron job configured within /etc/cron.d/sysstat. This job can be amended to collect the data as frequently as you require. Example /etc/cron.d/sysstat file is provided below.  # cat /etc/cron.d/sysstat  # Run system activity accounting tool every 10 minutes  */10 * * * * root /usr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Add SAR notes here.&amp;lt;/br&amp;gt;&lt;br /&gt;
https://www.thegeekdiary.com/how-to-view-past-performance-with-sar-in-linux/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, sar stats are collected every 10 minutes. The data is collected using a simple cron job configured within /etc/cron.d/sysstat. This job can be amended to collect the data as frequently as you require. Example /etc/cron.d/sysstat file is provided below.&lt;br /&gt;
 # cat /etc/cron.d/sysstat&lt;br /&gt;
 # Run system activity accounting tool every 10 minutes&lt;br /&gt;
 */10 * * * * root /usr/lib64/sa/sa1 1 1&lt;br /&gt;
 # 0 * * * * root /usr/lib64/sa/sa1 600 6 &amp;amp;&lt;br /&gt;
 # Generate a daily summary of process accounting at 23:53&lt;br /&gt;
 53 23 * * * root /usr/lib64/sa/sa2 -A&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Install Sar====&lt;br /&gt;
----&lt;br /&gt;
 &lt;br /&gt;
 $ apt-get install sysstat       ### Debian-based distributions      &lt;br /&gt;
 $ yum install sysstat           ### RedHat Based distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Sar log files====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
The historic data for various linux distribution is stored in below directories:&amp;lt;/br&amp;gt;&lt;br /&gt;
1. Red Hat, Fedora, CentOS, and Scientific Linux should use the &amp;lt;b&amp;gt;/var/log/sa&amp;lt;/b&amp;gt; directory&lt;br /&gt;
2. Debian, Mint, and Ubuntu users should use the &amp;lt;b&amp;gt;/var/log/sysstat&amp;lt;/b&amp;gt; directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====How to view or read sar files====&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;-f&amp;lt;/b&amp;gt;: To read a sar log file:&lt;br /&gt;
 sar -f /var/log/sa/sa20&lt;br /&gt;
 00:00:00        CPU     %user     %nice   %system   %iowait    %steal     %idle&lt;br /&gt;
 23:25:00        all      2.16      0.00      0.77      0.00      0.05     97.02&lt;br /&gt;
 23:35:00        all      2.52      0.00      0.71      0.00      0.05     96.71&lt;br /&gt;
 23:45:00        all      6.33      0.00      0.12      0.00      0.01     93.53&lt;br /&gt;
 &lt;br /&gt;
 sar -f /var/log/sa/sa16 -b &lt;br /&gt;
 00:00:00          tps      rtps      wtps   bread/s   bwrtn/s&lt;br /&gt;
 23:25:00        92.24      0.00     92.24      0.00    966.27&lt;br /&gt;
 23:35:00        87.08      0.00     87.08      0.00   1236.60&lt;br /&gt;
 23:45:00        22.55      0.00     22.55      0.00   3812.81&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;-b&amp;lt;/b&amp;gt;: Report I/O and transfer rate statistics.  The  following  values are displayed:&lt;br /&gt;
 tps&lt;br /&gt;
                     Total  number of transfers per second that were issued to&lt;br /&gt;
                     physical devices.  A transfer is  an  I/O  request  to  a&lt;br /&gt;
                     physical  device.  Multiple  logical requests can be com‐&lt;br /&gt;
                     bined into a single I/O request to the device.  A  trans‐&lt;br /&gt;
                     fer is of indeterminate size.&lt;br /&gt;
 rtps&lt;br /&gt;
                     Total number of read requests per second issued to physi‐&lt;br /&gt;
                     cal devices.&lt;br /&gt;
 wtps&lt;br /&gt;
                     Total number of write requests per second issued to phys‐&lt;br /&gt;
                     ical devices.&lt;br /&gt;
 bread/s&lt;br /&gt;
                     Total  amount of data read from the devices in blocks per&lt;br /&gt;
                     second.  Blocks are equivalent to sectors  and  therefore&lt;br /&gt;
                     have a size of 512 bytes.&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>