https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&feed=atom&action=history
Sysstat tool suite - Revision history
2024-03-28T19:47:22Z
Revision history for this page on the wiki
MediaWiki 1.31.16
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=88667&oldid=prev
Jean Christophe Trotin at 09:53, 24 October 2022
2022-10-24T09:53:36Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 09:53, 24 October 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l427" >Line 427:</td>
<td colspan="2" class="diff-lineno">Line 427:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><noinclude></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{ ArticleBasedOnModel | Trace and debug tools article model }}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{ ArticleBasedOnModel | Trace and debug tools article model }}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{ PublicationRequestId | 9774 | 28Nov'18 }}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{ PublicationRequestId | 9774 | 28Nov'18 }}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Linux monitoring tools]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Linux monitoring tools]]</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></noinclude></ins></div></td></tr>
</table>
Jean Christophe Trotin
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=84629&oldid=prev
Jean-philippe Romain at 10:12, 4 April 2022
2022-04-04T10:12:58Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 10:12, 4 April 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><noinclude>{{ApplicableFor</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|MPUs list=STM32MP13x, STM32MP15x</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|MPUs checklist=STM32MP13x,STM32MP15x</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">}}</noinclude></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Article purpose ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Article purpose ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This article provides the basic information needed to start using the '''sysstat'''<ref name=sysstatpage/> tool suite providing a collection of Linux tools:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This article provides the basic information needed to start using the '''sysstat'''<ref name=sysstatpage/> tool suite providing a collection of Linux tools:</div></td></tr>
</table>
Jean-philippe Romain
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=65268&oldid=prev
Jean-philippe Romain at 14:19, 9 December 2019
2019-12-09T14:19:00Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 14:19, 9 December 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l294" >Line 294:</td>
<td colspan="2" class="diff-lineno">Line 294:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| align=center | -n || Statistics for network activities</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| align=center | -n || Statistics for network activities</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">|-</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">| align=center | -B || Report paging statistics</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<!-- diff cache key sfr_64a7c8501f1d:diff::1.12:old-59789:rev-65268 -->
</table>
Jean-philippe Romain
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=59789&oldid=prev
Jean-philippe Romain at 08:04, 4 September 2019
2019-09-04T08:04:18Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 08:04, 4 September 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l26" >Line 26:</td>
<td colspan="2" class="diff-lineno">Line 26:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The '''Sysstat tools''' are installed by default (/usr/bin/) and ready to be used with all STM32MPU OpenSTLinux Packages.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The '''Sysstat tools''' are installed by default (/usr/bin/) and ready to be used with all STM32MPU OpenSTLinux Packages.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>It is integrated in weston image distribution through meta-st package: ''meta-st/meta-st-openstlinux/recipes-st/packagegroups/packagegroup-framework-tools.bb''.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>It is integrated in weston image distribution through meta-st package: <ins class="diffchange diffchange-inline"><code></ins>''meta-st/meta-st-openstlinux/recipes-st/packagegroups/packagegroup-framework-tools.bb''<ins class="diffchange diffchange-inline"></code></ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  RDEPENDS_packagegroup-framework-tools-core = "\</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  RDEPENDS_packagegroup-framework-tools-core = "\</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     grep            \</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     grep            \</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l42" >Line 42:</td>
<td colspan="2" class="diff-lineno">Line 42:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The '''iostat''' command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The '''iostat''' command generates reports that can be used to change system configuration to better balance the input/output load between physical disks (''Source: official website<ref name=iostatpage>http://sebastien.godard.pagesperso-orange.fr/man_iostat.html</ref>'').</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>The '''iostat''' command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The '''iostat''' command generates reports that can be used to change system configuration to better balance the input/output load between physical disks (''Source: official website<ref name=iostatpage>http://sebastien.godard.pagesperso-orange.fr/man_iostat.html</ref>'').</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>''/proc filesystem must be mounted for iostat to work. This is the case on STM32MPU Embedded Software.''</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>''<ins class="diffchange diffchange-inline"><code></ins>/proc<ins class="diffchange diffchange-inline"></code> </ins>filesystem must be mounted for iostat to work. This is the case on STM32MPU Embedded Software.''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Command line options. Please refer to manual page<ref name=iostatpage/> for details.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Command line options. Please refer to manual page<ref name=iostatpage/> for details.</div></td></tr>
</table>
Jean-philippe Romain
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=58008&oldid=prev
Jean-philippe Romain: /* To go further */
2019-08-01T08:52:07Z
<p><span dir="auto"><span class="autocomment">To go further</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 08:52, 1 August 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l358" >Line 358:</td>
<td colspan="2" class="diff-lineno">Line 358:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  {{PC$}} echo 'IMAGE_INSTALL_append += "cronie"' >> meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bbappend</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  {{PC$}} echo 'IMAGE_INSTALL_append += "cronie"' >> meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bbappend</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:Then [[STM32MP1_Distribution_Package#Building_the_OpenSTLinux_distribution|rebuild the st-image-weston image]].</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:Then [[STM32MP1_Distribution_Package#Building_the_OpenSTLinux_distribution|rebuild the st-image-weston image]].</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">* With the Distribution Package of the STM32MPU Embedded Software distribution for Android&trade;:</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{UnderConstruction}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Format datas to be imported in MS-Excel ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Format datas to be imported in MS-Excel ===</div></td></tr>
</table>
Jean-philippe Romain
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=58006&oldid=prev
Jean-philippe Romain at 08:51, 1 August 2019
2019-08-01T08:51:14Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 08:51, 1 August 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><noinclude></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{ArticleBasedOnModel | [[Trace and debug tools article model]]}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{ArticleMainWriter | Jean-PhilippeR}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{ ArticleApprovedVersion | Jean-PhilippeR | Jean-ChristopheT | No previous approved version  | BrunoB - 28Nov'18 - 9774 | 28Nov'18 }}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">[[Category:Linux monitoring tools]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></noinclude></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Article purpose ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Article purpose ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This article provides the basic information needed to start using the '''sysstat'''<ref name=sysstatpage/> tool suite providing a collection of Linux tools:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This article provides the basic information needed to start using the '''sysstat'''<ref name=sysstatpage/> tool suite providing a collection of Linux tools:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l26" >Line 26:</td>
<td colspan="2" class="diff-lineno">Line 17:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_sadf|sadf]]''': displays data collected by sar in multiple formats (CSV, XML, JSON, etc.). This command can also be used to exchange data with other programs or to draw graphs illustrating the various activities collected by sar using SVG (Scalable Vector Graphics) format.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_sadf|sadf]]''': displays data collected by sar in multiple formats (CSV, XML, JSON, etc.). This command can also be used to exchange data with other programs or to draw graphs illustrating the various activities collected by sar using SVG (Scalable Vector Graphics) format.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| {{Y}} || {{Y}} || {{Y}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| {{Y}} || {{Y}} || {{Y}}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| <del class="diffchange diffchange-inline">colspan="3" </del>| {{<del class="diffchange diffchange-inline">UnderConstruction</del>}}</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| <ins class="diffchange diffchange-inline">{{N}} || {{N}} |</ins>| {{<ins class="diffchange diffchange-inline">N</ins>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></onlyinclude></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></onlyinclude></div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l45" >Line 45:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     ...</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     ...</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     "</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>     "</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">=== Using the STM32MPU Embedded Software distribution for Android&trade; ===</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{UnderConstruction}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Getting started ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Getting started ==</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l77" >Line 77:</td>
<td colspan="2" class="diff-lineno">Line 65:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  mmcblk1boot1      0.00        0.01        0.00        104          0</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  mmcblk1boot1      0.00        0.01        0.00        104          0</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  mmcblk1boot0      0.00        0.01        0.00        104          0</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  mmcblk1boot0      0.00        0.01        0.00        104          0</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Note: by adding {{<del class="diffchange diffchange-inline">orange</del>|''<interval>''}} and {{<del class="diffchange diffchange-inline">orange</del>|''<count>''}} parameters, you can have a regular refresh during a given time interval:</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Note: by adding {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''<interval>''}} and {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''<count>''}} parameters, you can have a regular refresh during a given time interval:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>  {{Board$}} iostat {{<del class="diffchange diffchange-inline">orange</del>|''<interval>''}} {{<del class="diffchange diffchange-inline">orange</del>|''<count>''}}</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>  {{Board$}} iostat {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''<interval>''}} {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''<count>''}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Complex command to display statistics for block devices and all their partitions that are used by the system:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Complex command to display statistics for block devices and all their partitions that are used by the system:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l313" >Line 313:</td>
<td colspan="2" class="diff-lineno">Line 301:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*<u>Non-interactive mode</u> (''detailed in [[#To go further|To go further]] chapter''): '''sar''' is launched by a script (''/usr/lib/sa/sa1'', which is part of sysstat tools suite) that can be managed by a scheduler daemon like cron<ref name=cronwikipedia>https://en.wikipedia.org/wiki/Cron</ref></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*<u>Non-interactive mode</u> (''detailed in [[#To go further|To go further]] chapter''): '''sar''' is launched by a script (''/usr/lib/sa/sa1'', which is part of sysstat tools suite) that can be managed by a scheduler daemon like cron<ref name=cronwikipedia>https://en.wikipedia.org/wiki/Cron</ref></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Interactive mode is used as soon as {{<del class="diffchange diffchange-inline">orange</del>|''[ <interval> [ <count> ] ]''}} parameters are present, otherwise non-interactive mode is used. In interactive mode, the command is executed immediately by taking into account the values.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Interactive mode is used as soon as {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''[ <interval> [ <count> ] ]''}} parameters are present, otherwise non-interactive mode is used. In interactive mode, the command is executed immediately by taking into account the values.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>As example, for getting CPU utilization of ALL CPUs, 5 times every 3s:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>As example, for getting CPU utilization of ALL CPUs, 5 times every 3s:</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l327" >Line 327:</td>
<td colspan="2" class="diff-lineno">Line 315:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  Average:        all      0.23      0.00      1.36      0.00      0.00    98.41</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  Average:        all      0.23      0.00      1.36      0.00      0.00    98.41</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>{{<del class="diffchange diffchange-inline">orange</del>|''-o <filename>''}} can be used to store information into a file in binary format, which cat be later read with [[#Using sadf|sadf]].</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>{{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''-o <filename>''}} can be used to store information into a file in binary format, which cat be later read with [[#Using sadf|sadf]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Using sadf ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Using sadf ===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The '''sadf''' command is used for displaying the contents of data files created by the sar command (''Source: official website<ref name=sadfpage>http://sebastien.godard.pagesperso-orange.fr/man_sadf.html</ref>''): sar in interactive mode by using {{<del class="diffchange diffchange-inline">orange</del>|''-o''}} option, or file created in non-interactive mode in ''/var/log/sa/'' directory.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The '''sadf''' command is used for displaying the contents of data files created by the sar command (''Source: official website<ref name=sadfpage>http://sebastien.godard.pagesperso-orange.fr/man_sadf.html</ref>''): sar in interactive mode by using {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''-o''}} option, or file created in non-interactive mode in ''/var/log/sa/'' directory.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Command line options. Please refer to manual page<ref name=sadfpage/> for details.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>*Command line options. Please refer to manual page<ref name=sadfpage/> for details.</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l350" >Line 350:</td>
<td colspan="2" class="diff-lineno">Line 338:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| align=center | -g || '''From v11.3.1'''<br/> Print the contents of the data file in SVG (Scalable Vector Graphics) format.<br/> Use the follwing syntax:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| align=center | -g || '''From v11.3.1'''<br/> Print the contents of the data file in SVG (Scalable Vector Graphics) format.<br/> Use the follwing syntax:</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>  {{Board$}} sadf -g {{<del class="diffchange diffchange-inline">orange</del>|''sar_datafile''}} [ -- <sar_options> ] > output.svg<br/></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>  {{Board$}} sadf -g {{<ins class="diffchange diffchange-inline">HighlightParam</ins>|''sar_datafile''}} [ -- <sar_options> ] > output.svg<br/></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  {{highlight|Take care about giving the right sar_options, i.e. when checking for memory utilization, "-- -r" have to be given in the command.}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  {{highlight|Take care about giving the right sar_options, i.e. when checking for memory utilization, "-- -r" have to be given in the command.}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l433" >Line 433:</td>
<td colspan="2" class="diff-lineno">Line 421:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| Sysstat github</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>| Sysstat github</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{ ArticleBasedOnModel | Trace and debug tools article model }}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{ PublicationRequestId | 9774 | 28Nov'18 }}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Linux monitoring tools]]</ins></div></td></tr>
</table>
Jean-philippe Romain
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=52270&oldid=prev
Jean-philippe Romain at 16:15, 12 February 2019
2019-02-12T16:15:48Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 16:15, 12 February 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l16" >Line 16:</td>
<td colspan="2" class="diff-lineno">Line 16:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{:Trace_and_debug_tools_assignment_table_template}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{:Trace_and_debug_tools_assignment_table_template}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><onlyinclude></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><onlyinclude></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>| [[Sysstat tool suite|sysstat]]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| [[Sysstat tool suite|sysstat]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>| [[:Category:Monitoring tools|Monitoring tools]]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| [[:Category:Monitoring tools|Monitoring tools]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>| style="text-align:left;" | The '''sysstat''' <ref name=sysstatpage>http://sebastien.godard.pagesperso-orange.fr/</ref> tool suite contains utilities to monitor the system performance and usage activity.<br></div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| style="text-align:left;" | The '''sysstat''' <ref name=sysstatpage>http://sebastien.godard.pagesperso-orange.fr/</ref> tool suite contains utilities to monitor the system performance and usage activity.<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>It contains various utilities, common to many commercial Unix distributions, as well as tools that can be scheduled (via a scheduler such as cron) to collect and historize performance and activity data:</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>It contains various utilities, common to many commercial Unix distributions, as well as tools that can be scheduled (via a scheduler such as cron) to collect and historize performance and activity data:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_iostat|iostat]]''': reports CPU statistics and input/output statistics for block devices and partitions.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_iostat|iostat]]''': reports CPU statistics and input/output statistics for block devices and partitions.</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l25" >Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_sar|sar]]''': collects, reports and saves system activity information (CPU, memory, disks, interrupts, network interfaces, TTY, kernel tables,etc.)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_sar|sar]]''': collects, reports and saves system activity information (CPU, memory, disks, interrupts, network interfaces, TTY, kernel tables,etc.)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_sadf|sadf]]''': displays data collected by sar in multiple formats (CSV, XML, JSON, etc.). This command can also be used to exchange data with other programs or to draw graphs illustrating the various activities collected by sar using SVG (Scalable Vector Graphics) format.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>* '''[[Sysstat_tool_suite#Using_sadf|sadf]]''': displays data collected by sar in multiple formats (CSV, XML, JSON, etc.). This command can also be used to exchange data with other programs or to draw graphs illustrating the various activities collected by sar using SVG (Scalable Vector Graphics) format.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>| {{Y}} || {{Y}} || {{Y}}</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| {{Y}} || {{Y}} || {{Y}}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>| colspan="3" | {{UnderConstruction}}</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| colspan="3" | {{UnderConstruction}}</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>|-</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>|-</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></onlyinclude></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></onlyinclude></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline"> </del>|}</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Installing the trace and debug tool on the target board ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Installing the trace and debug tool on the target board ==</div></td></tr>
</table>
Jean-philippe Romain
https://wiki.st.com/stm32mpu/index.php?title=Sysstat_tool_suite&diff=47310&oldid=prev
Frq07399: /* Using sar non-interactive mode */
2019-01-10T09:58:43Z
<p><span dir="auto"><span class="autocomment">Using sar non-interactive mode</span></span></p>
<p><b>New page</b></p><div><noinclude><br />
{{ArticleBasedOnModel | [[Trace and debug tools article model]]}}<br />
{{ArticleMainWriter | Jean-PhilippeR}}<br />
<br />
{{ ArticleApprovedVersion | Jean-PhilippeR | Jean-ChristopheT | No previous approved version | BrunoB - 28Nov'18 - 9774 | 28Nov'18 }}<br />
<br />
[[Category:Linux monitoring tools]]<br />
</noinclude><br />
<br />
== Article purpose ==<br />
This article provides the basic information needed to start using the '''sysstat'''<ref name=sysstatpage/> tool suite providing a collection of Linux tools:<br />
* main tools: '''iostat''', '''mpstat''' and '''pidstat'''<br />
* others tools: '''sar''', '''sadf'''<br />
<br />
== Introduction ==<br />
{{:Trace_and_debug_tools_assignment_table_template}}<br />
<onlyinclude><br />
| [[Sysstat tool suite|sysstat]]<br />
| [[:Category:Monitoring tools|Monitoring tools]]<br />
| style="text-align:left;" | The '''sysstat''' <ref name=sysstatpage>http://sebastien.godard.pagesperso-orange.fr/</ref> tool suite contains utilities to monitor the system performance and usage activity.<br><br />
It contains various utilities, common to many commercial Unix distributions, as well as tools that can be scheduled (via a scheduler such as cron) to collect and historize performance and activity data:<br />
* '''[[Sysstat_tool_suite#Using_iostat|iostat]]''': reports CPU statistics and input/output statistics for block devices and partitions.<br />
* '''[[Sysstat_tool_suite#Using_mpstat|mpstat]]''': reports individual or combined processor related statistics.<br />
* '''[[Sysstat_tool_suite#Using_pidstat|pidstat]]''': reports statistics for Linux tasks (processes): I/O, CPU, memory, etc. <br />
* '''[[Sysstat_tool_suite#Using_sar|sar]]''': collects, reports and saves system activity information (CPU, memory, disks, interrupts, network interfaces, TTY, kernel tables,etc.)<br />
* '''[[Sysstat_tool_suite#Using_sadf|sadf]]''': displays data collected by sar in multiple formats (CSV, XML, JSON, etc.). This command can also be used to exchange data with other programs or to draw graphs illustrating the various activities collected by sar using SVG (Scalable Vector Graphics) format.<br />
| {{Y}} || {{Y}} || {{Y}}<br />
| colspan="3" | {{UnderConstruction}}<br />
|-<br />
</onlyinclude><br />
|}<br />
<br />
== Installing the trace and debug tool on the target board ==<br />
=== Using the STM32MPU Embedded Software distribution ===<br />
The '''Sysstat tools''' are installed by default (/usr/bin/) and ready to be used with all STM32MPU OpenSTLinux Packages.<br />
<br />
It is integrated in weston image distribution through meta-st package: ''meta-st/meta-st-openstlinux/recipes-st/packagegroups/packagegroup-framework-tools.bb''.<br />
RDEPENDS_packagegroup-framework-tools-core = "\<br />
grep \<br />
...<br />
e2fsprogs \<br />
e2fsprogs-resize2fs \<br />
{{green|'''sysstat'''}} \<br />
minicom \<br />
...<br />
"<br />
<br />
=== Using the STM32MPU Embedded Software distribution for Android&trade; ===<br />
{{UnderConstruction}}<br />
<br />
== Getting started ==<br />
<br />
=== Using iostat ===<br />
The '''iostat''' command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The '''iostat''' command generates reports that can be used to change system configuration to better balance the input/output load between physical disks (''Source: official website<ref name=iostatpage>http://sebastien.godard.pagesperso-orange.fr/man_iostat.html</ref>'').<br />
<br />
''/proc filesystem must be mounted for iostat to work. This is the case on STM32MPU Embedded Software.''<br />
<br />
*Command line options. Please refer to manual page<ref name=iostatpage/> for details.<br />
{{Board$}} iostat --help<br />
Usage: iostat [ options ] [ <interval> [ <count> ] ]<br />
Options are:<br />
[ -c ] [ -d ] [ -h ] [ -k | -m ] [ -N ] [ -s ] [ -t ] [ -V ] [ -x ] [ -y ] [ -z ]<br />
[ -j { ID | LABEL | PATH | UUID | ... } ] [ --human ] [ -o JSON ]<br />
[ [ -H ] -g <group_name> ] [ -p [ <device> [,...] | ALL ] ]<br />
[ <device> [...] | ALL ]<br />
<br />
*Basic command to display a single history since boot report for all CPU and devices:<br />
{{Board$}} iostat<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
avg-cpu: %user %nice %system %iowait %steal %idle<br />
0.11 0.00 0.60 0.05 0.00 99.25<br />
<br />
Device tps kB_read/s kB_wrtn/s kB_read kB_wrtn<br />
mmcblk0 0.59 5.44 0.85 58539 9128<br />
mmcblk1 0.03 0.31 0.00 3320 0<br />
mmcblk1boot1 0.00 0.01 0.00 104 0<br />
mmcblk1boot0 0.00 0.01 0.00 104 0<br />
Note: by adding {{orange|''<interval>''}} and {{orange|''<count>''}} parameters, you can have a regular refresh during a given time interval:<br />
{{Board$}} iostat {{orange|''<interval>''}} {{orange|''<count>''}}<br />
<br />
*Complex command to display statistics for block devices and all their partitions that are used by the system:<br />
{{Board$}} iostat -N -p ALL<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
avg-cpu: %user %nice %system %iowait %steal %idle<br />
0.11 0.00 0.61 0.05 0.00 99.23<br />
<br />
Device tps kB_read/s kB_wrtn/s kB_read kB_wrtn<br />
ram0 0.00 0.00 0.00 0 0<br />
ram1 0.00 0.00 0.00 0 0<br />
ram2 0.00 0.00 0.00 0 0<br />
ram3 0.00 0.00 0.00 0 0<br />
ram4 0.00 0.00 0.00 0 0<br />
ram5 0.00 0.00 0.00 0 0<br />
ram6 0.00 0.00 0.00 0 0<br />
ram7 0.00 0.00 0.00 0 0<br />
ram8 0.00 0.00 0.00 0 0<br />
ram9 0.00 0.00 0.00 0 0<br />
ram10 0.00 0.00 0.00 0 0<br />
ram11 0.00 0.00 0.00 0 0<br />
ram12 0.00 0.00 0.00 0 0<br />
ram13 0.00 0.00 0.00 0 0<br />
ram14 0.00 0.00 0.00 0 0<br />
ram15 0.00 0.00 0.00 0 0<br />
loop0 0.00 0.00 0.00 0 0<br />
loop1 0.00 0.00 0.00 0 0<br />
loop2 0.00 0.00 0.00 0 0<br />
loop3 0.00 0.00 0.00 0 0<br />
loop4 0.00 0.00 0.00 0 0<br />
loop5 0.00 0.00 0.00 0 0<br />
loop6 0.00 0.00 0.00 0 0<br />
loop7 0.00 0.00 0.00 0 0<br />
mtdblock0 0.00 0.00 0.00 0 0<br />
mtdblock1 0.00 0.00 0.00 0 0<br />
mtdblock2 0.00 0.00 0.00 0 0<br />
mtdblock3 0.00 0.00 0.00 0 0<br />
mtdblock4 0.00 0.00 0.00 0 0<br />
mtdblock5 0.00 0.00 0.00 0 0<br />
mtdblock6 0.00 0.00 0.00 0 0<br />
mtdblock7 0.00 0.00 0.00 0 0<br />
mmcblk0 0.66 6.02 0.94 58539 9128<br />
mmcblk0p1 0.00 0.04 0.00 344 0<br />
mmcblk0p2 0.00 0.02 0.00 220 0<br />
mmcblk0p3 0.00 0.01 0.00 72 0<br />
mmcblk0p4 0.03 0.21 0.00 2065 1<br />
mmcblk0p5 0.60 5.46 0.94 53175 9126<br />
mmcblk0p6 0.02 0.21 0.00 2087 1<br />
mmcblk1 0.04 0.34 0.00 3320 0<br />
mmcblk1p1 0.00 0.01 0.00 64 0<br />
mmcblk1p2 0.00 0.00 0.00 44 0<br />
mmcblk1p3 0.00 0.00 0.00 44 0<br />
mmcblk1p4 0.01 0.11 0.00 1032 0<br />
mmcblk1p5 0.01 0.11 0.00 1032 0<br />
mmcblk1boot1 0.00 0.01 0.00 104 0<br />
mmcblk1boot0 0.00 0.01 0.00 104 0<br />
<br />
=== Using mpstat ===<br />
The '''mpstat''' command writes to standard output activities for each available processor, processor 0 being the first one (''Source: official website<ref name=mpstatpage>http://sebastien.godard.pagesperso-orange.fr/man_mpstat.html</ref>'').<br />
<br />
*Command line options. Please refer to manual page<ref name=mpstatpage/> for details.<br />
{{Board$}} mpstat --help<br />
Usage: mpstat [ options ] [ <interval> [ <count> ] ]<br />
Options are:<br />
[ -A ] [ -n ] [ -u ] [ -V ] [ -I { SUM | CPU | SCPU | ALL } ]<br />
[ -N { <node_list> | ALL } ] [ -o JSON ] [ -P { <cpu_list> | ON | ALL } ]<br />
<br />
*Basic command to display three reports of global statistics for all processors at one second intervals:<br />
{{Board$}} mpstat 1 3<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
15:45:26 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br />
15:45:27 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
15:45:28 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
15:45:29 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
Average: all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
<br />
*Other command to display three reports of statistics for all processors at one second intervals:<br />
{{Board$}} mpstat -P ALL 1 3<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
15:48:32 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br />
15:48:33 all 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
15:48:33 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
15:48:33 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
<br />
15:48:33 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br />
15:48:34 all 0.00 0.00 0.50 0.00 0.00 0.00 0.00 0.00 0.00 99.50<br />
15:48:34 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
15:48:34 1 0.00 0.00 0.99 0.00 0.00 0.00 0.00 0.00 0.00 99.01<br />
<br />
15:48:34 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br />
15:48:35 all 0.00 0.00 0.50 0.00 0.00 0.00 0.00 0.00 0.00 99.50<br />
15:48:35 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
15:48:35 1 0.00 0.00 0.99 0.00 0.00 0.00 0.00 0.00 0.00 99.01<br />
<br />
Average: CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle<br />
Average: all 0.00 0.00 0.33 0.00 0.00 0.00 0.00 0.00 0.00 99.67<br />
Average: 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00<br />
Average: 1 0.00 0.00 0.66 0.00 0.00 0.00 0.00 0.00 0.00 99.34<br />
<br />
=== Using pidstat ===<br />
The '''pidstat''' command is used for monitoring individual tasks currently being managed by the Linux kernel (''Source: official website<ref name=pidstatpage>http://sebastien.godard.pagesperso-orange.fr/man_pidstat.html</ref>'').<br />
<br />
*Command line options. Please refer to manual page<ref name=pidstatpage/> for details.<br />
{{Board$}} pidstat --help<br />
Usage: pidstat [ options ] [ <interval> [ <count> ] ]<br />
Options are:<br />
[ -d ] [ -h ] [ -I ] [ -l ] [ -R ] [ -r ] [ -s ] [ -t ] [ -U [ <username> ] ]<br />
[ -u ] [ -V ] [ -v ] [ -w ] [ -C <command> ] [ -G <process_name> ] [ --human ]<br />
[ -p { <pid> [,...] | SELF | ALL } ] [ -T { TASK | CHILD | ALL } ]<br />
<br />
*Basic command to display CPU statistic for all tasks:<br />
{{Board$}} pidstat<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
15:58:48 UID PID %usr %system %guest %wait %CPU CPU Command<br />
15:58:48 0 1 0.03 0.12 0.00 0.05 0.14 0 systemd<br />
15:58:48 0 2 0.00 0.00 0.00 0.00 0.00 1 kthreadd<br />
15:58:48 0 7 0.00 0.01 0.00 0.01 0.01 0 ksoftirqd/0<br />
15:58:48 0 8 0.04 0.00 0.00 0.02 0.04 1 rcu_preempt<br />
15:58:48 0 15 0.00 0.01 0.00 0.00 0.01 1 ksoftirqd/1<br />
15:58:48 0 18 0.00 0.00 0.00 0.00 0.00 1 kdevtmpfs<br />
15:58:48 0 19 0.00 0.00 0.00 0.00 0.00 0 kworker/0:1<br />
15:58:48 0 72 0.00 0.00 0.00 0.00 0.00 0 irq/82-mfx<br />
15:58:48 0 77 0.00 0.06 0.00 0.01 0.06 1 mmcqd/0<br />
15:58:48 0 83 0.00 0.00 0.00 0.00 0.00 0 mmcqd/1<br />
15:58:48 0 85 0.00 0.00 0.00 0.00 0.00 0 mmcqd/1boot0<br />
15:58:48 0 86 0.00 0.00 0.00 0.00 0.00 0 mmcqd/1boot1<br />
15:58:48 0 91 0.00 0.63 0.00 0.00 0.63 0 kmemleak<br />
15:58:48 0 93 0.00 0.00 0.00 0.00 0.00 0 kworker/0:3<br />
15:58:48 0 95 0.00 0.01 0.00 0.00 0.01 1 irq/73-5a001000<br />
15:58:48 0 98 0.00 0.00 0.00 0.00 0.00 0 kworker/0:1H<br />
15:58:48 0 99 0.00 0.00 0.00 0.00 0.00 1 kworker/1:1H<br />
15:58:48 0 100 0.00 0.00 0.00 0.00 0.00 0 jbd2/mmcblk0p5-<br />
15:58:48 0 150 0.01 0.02 0.00 0.02 0.02 0 systemd-journal<br />
15:58:48 0 189 0.01 0.01 0.00 0.03 0.01 1 systemd-udevd<br />
15:58:48 0 201 0.00 0.00 0.00 0.00 0.00 0 kworker/u4:2<br />
15:58:48 993 203 0.01 0.09 0.00 0.00 0.11 1 systemd-timesyn<br />
15:58:48 998 273 0.09 0.04 0.00 0.02 0.14 0 avahi-daemon<br />
15:58:48 0 276 0.00 0.00 0.00 0.00 0.00 1 systemd-logind<br />
15:58:48 0 277 0.00 0.00 0.00 0.00 0.00 1 klogd<br />
15:58:48 996 279 0.00 0.00 0.00 0.00 0.00 0 dbus-daemon<br />
15:58:48 0 301 0.00 0.00 0.00 0.00 0.00 1 syslogd<br />
15:58:48 992 312 0.00 0.00 0.00 0.00 0.00 1 systemd-network<br />
15:58:48 0 314 0.00 0.00 0.00 0.00 0.00 0 weston-launch<br />
15:58:48 0 319 0.01 0.01 0.00 0.00 0.01 1 weston<br />
15:58:48 991 324 0.00 0.00 0.00 0.00 0.00 0 systemd-resolve<br />
15:58:48 0 327 0.03 0.03 0.00 0.00 0.05 0 tcf-agent<br />
15:58:48 0 332 0.00 0.00 0.00 0.00 0.00 1 login<br />
15:58:48 0 333 0.00 0.00 0.00 0.00 0.00 0 agetty<br />
15:58:48 997 334 0.00 0.00 0.00 0.00 0.00 1 named<br />
15:58:48 0 340 0.00 0.00 0.00 0.00 0.00 0 weston-keyboard<br />
15:58:48 0 342 0.01 0.00 0.00 0.00 0.01 0 weston-desktop-<br />
15:58:48 0 345 0.00 0.01 0.00 0.00 0.01 1 systemd<br />
15:58:48 0 350 0.00 0.00 0.00 0.00 0.00 0 sh<br />
15:58:48 0 374 0.02 0.00 0.00 0.00 0.02 1 kworker/1:1<br />
15:58:48 0 420 0.00 0.00 0.00 0.00 0.00 1 kworker/1:0<br />
15:58:48 0 423 0.00 0.00 0.00 0.00 0.00 1 kworker/1:2<br />
15:58:48 0 424 0.00 0.00 0.00 0.00 0.00 1 pidstat<br />
<br />
*Basic command to display 3 reports of CPU statistics for every active task in the system at one second intervals.:<br />
{{Board$}} pidstat 1 3<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
15:59:56 UID PID %usr %system %guest %wait %CPU CPU Command<br />
15:59:57 0 426 3.67 4.59 0.00 0.00 8.26 1 pidstat<br />
<br />
15:59:57 UID PID %usr %system %guest %wait %CPU CPU Command<br />
15:59:58 0 426 0.99 6.93 0.00 0.00 7.92 1 pidstat<br />
<br />
15:59:58 UID PID %usr %system %guest %wait %CPU CPU Command<br />
15:59:59 0 15 0.00 0.99 0.00 0.00 0.99 1 ksoftirqd/1<br />
15:59:59 0 426 1.98 5.94 0.00 0.99 7.92 1 pidstat<br />
<br />
Average: UID PID %usr %system %guest %wait %CPU CPU Command<br />
Average: 0 15 0.00 0.32 0.00 0.00 0.32 - ksoftirqd/1<br />
Average: 0 426 2.25 5.79 0.00 0.32 8.04 - pidstat<br />
<br />
*Basic command to report statistics for a specific process with all associated threads:<br />
{{Board$}} pidstat -t -p `pidof weston-launch`<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
16:00:59 UID TGID TID %usr %system %guest %wait %CPU CPU Command<br />
16:00:59 0 314 - 0.00 0.00 0.00 0.00 0.00 0 weston-launch<br />
16:00:59 0 - 314 0.00 0.00 0.00 0.00 0.00 0 |__weston-launch<br />
<br />
=== Using sar ===<br />
The '''sar''' command collects, reports, or saves system activity information (''Source: official website<ref name=sarpage>http://sebastien.godard.pagesperso-orange.fr/man_sar.html</ref>'').<br />
<br />
*Command line options. Please refer to manual page<ref name=sarpage/> for details.<br />
{{Board$}} sar --help<br />
Usage: sar [ options ] [ <interval> [ <count> ] ]<br />
Options are:<br />
[ -A ] [ -B ] [ -b ] [ -C ] [ -D ] [ -d ] [ -F [ MOUNT ] ] [ -H ] [ -h ]<br />
[ -p ] [ -q ] [ -r [ ALL ] ] [ -S ] [ -t ] [ -u [ ALL ] ] [ -V ]<br />
[ -v ] [ -W ] [ -w ] [ -y ] [ --human ] [ --sadc ]<br />
[ -I { <int_list> | SUM | ALL } ] [ -P { <cpu_list> | ALL } ]<br />
[ -m { <keyword> [,...] | ALL } ] [ -n { <keyword> [,...] | ALL } ]<br />
[ -j { ID | LABEL | PATH | UUID | ... } ]<br />
[ -f [ <filename> ] | -o [ <filename> ] | -[0-9]+ ]<br />
[ -i <interval> ] [ -s [ <hh:mm[:ss]> ] ] [ -e [ <hh:mm[:ss]> ] ]<br />
<br />
Main used options for activity report:<br />
{|<br />
!sar option<br />
!Description<br />
|-<br />
| align=center | -u || CPU utilization of ALL CPUs<br />
|-<br />
| align=center | -P || CPU utilization of individual CPU or core<br />
|-<br />
| align=center | -r || Statistics for memory utilization<br />
|-<br />
| align=center | -S || Statistics for swap space utilization<br />
|-<br />
| align=center | -b || Statistics for I/O and transfer rate<br />
|-<br />
| align=center | -F || Statistics for currently mounted filesystems<br />
|-<br />
| align=center | -d || Activities for individual Block Device I/O<br />
|-<br />
| align=center | -w || Activities for task creation and system switching<br />
|-<br />
| align=center | -q || Information about task run queue and load average<br />
|-<br />
| align=center | -n || Statistics for network activities<br />
|}<br />
<br />
==== Interactive mode ====<br />
Two modes for using '''sar''':<br />
*<u>Interactive mode</u> (''detailed here''): '''sar''' is launched by the user using a command line on the console<br />
*<u>Non-interactive mode</u> (''detailed in [[#To go further|To go further]] chapter''): '''sar''' is launched by a script (''/usr/lib/sa/sa1'', which is part of sysstat tools suite) that can be managed by a scheduler daemon like cron<ref name=cronwikipedia>https://en.wikipedia.org/wiki/Cron</ref><br />
<br />
Interactive mode is used as soon as {{orange|''[ <interval> [ <count> ] ]''}} parameters are present, otherwise non-interactive mode is used. In interactive mode, the command is executed immediately by taking into account the values.<br />
<br />
As example, for getting CPU utilization of ALL CPUs, 5 times every 3s:<br />
{{Board$}} sar -u 3 5<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
12:30:20 CPU %user %nice %system %iowait %steal %idle<br />
12:30:23 all 0.00 0.00 0.50 0.00 0.00 99.50<br />
12:30:26 all 0.00 0.00 0.50 0.00 0.00 99.50<br />
12:30:29 all 0.17 0.00 0.17 0.00 0.00 99.67<br />
12:30:32 all 0.66 0.00 2.49 0.00 0.00 96.84<br />
12:30:35 all 0.33 0.00 3.16 0.00 0.00 96.51<br />
Average: all 0.23 0.00 1.36 0.00 0.00 98.41<br />
<br />
{{orange|''-o <filename>''}} can be used to store information into a file in binary format, which cat be later read with [[#Using sadf|sadf]].<br />
<br />
=== Using sadf ===<br />
The '''sadf''' command is used for displaying the contents of data files created by the sar command (''Source: official website<ref name=sadfpage>http://sebastien.godard.pagesperso-orange.fr/man_sadf.html</ref>''): sar in interactive mode by using {{orange|''-o''}} option, or file created in non-interactive mode in ''/var/log/sa/'' directory.<br />
<br />
*Command line options. Please refer to manual page<ref name=sadfpage/> for details.<br />
{{Board$}} sadf --help<br />
Usage: sadf [ options ] [ <interval> [ <count> ] ] [ <datafile> | -[0-9]+ ]<br />
Options are:<br />
[ -C ] [ -c | -d | -g | -j | -p | -r | -x ] [ -H ] [ -h ] [ -T | -t | -U ] [ -V ]<br />
[ -O <opts> [,...] ] [ -P { <cpu> [,...] | ALL } ]<br />
[ -s [ <hh:mm[:ss]> ] ] [ -e [ <hh:mm[:ss]> ] ]<br />
[ -- <sar_options> ]<br />
<br />
Main used format for activity report:<br />
<br />
{|<br />
!sadf option<br />
!Description<br />
|-<br />
| align=center | -d || Print the contents of the data file in a format that can be easily ingested by a relational database system. The output consists of fields separated by a semicolon (i.e. MSExcel)<br />
|-<br />
| align=center | -g || '''From v11.3.1'''<br/> Print the contents of the data file in SVG (Scalable Vector Graphics) format.<br/> Use the follwing syntax:<br />
{{Board$}} sadf -g {{orange|''sar_datafile''}} [ -- <sar_options> ] > output.svg<br/><br />
{{highlight|Take care about giving the right sar_options, i.e. when checking for memory utilization, "-- -r" have to be given in the command.}}<br />
|-<br />
| align=center | -j || Print the contents of the data file in JSON (JavaScript Object Notation) format<br />
|-<br />
| align=center | -t || Display timestamp in the original local time of the data file creator instead of UTC (Coordinated Universal Time)<br />
|-<br />
| align=center | -x || Print the contents of the data file in XML format<br />
|}<br />
<br />
== To go further ==<br />
==== Using sar non-interactive mode ====<br />
In non-interactive mode a scheduler daemon is used to plan activity record.<br />
<br />
Recommended environment is using cron<ref name=cronwikipedia/> daemon and sysstat script ''/usr/lib/sa/sa1'' present when the tool suite is installed. Please refer to '''sa1''' web page<ref>http://sebastien.godard.pagesperso-orange.fr/man_sa1.html</ref> for detail.<br />
<br />
{{highlight|cron is not installed by default}}, and is part of cronie yocto package to be integrated:<br />
* With the Distribution Package of the STM32MPU Embedded Software distribution (''st-image-weston''):<br />
{{PC$}} echo 'IMAGE_INSTALL_append += "cronie"' >> meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bbappend<br />
:Then [[STM32MP1_Distribution_Package#Building_the_OpenSTLinux_distribution|rebuild the st-image-weston image]].<br />
* With the Distribution Package of the STM32MPU Embedded Software distribution for Android&trade;:<br />
{{UnderConstruction}}<br />
<br />
=== Format datas to be imported in MS-Excel ===<br />
Example using sar command to get ALL CPUs usage, format datas into semicolumn text, then make a graph using MS-Excel:<br />
*Record CPUs usage data (10 iterations every 3-second interval)<br />
{{Board$}} sar -u 3 10 -o test<br />
Linux 4.14.48 (stm32mp1) 06/18/18 _armv7l_ (2 CPU)<br />
<br />
13:03:26 CPU %user %nice %system %iowait %steal %idle<br />
13:03:29 all 4.82 0.00 3.16 0.66 0.00 91.36<br />
13:03:32 all 3.82 0.00 3.49 0.00 0.00 92.69<br />
13:03:35 all 18.77 0.00 7.81 5.81 0.00 67.61<br />
13:03:38 all 11.96 0.00 4.98 0.00 0.00 83.06<br />
13:03:41 all 36.21 0.00 8.97 0.00 0.00 54.82<br />
13:03:44 all 1.50 0.00 1.66 0.83 0.00 96.01<br />
13:03:47 all 1.00 0.00 1.83 1.33 0.00 95.85<br />
13:03:50 all 9.63 0.00 4.82 0.00 0.00 85.55<br />
13:03:53 all 3.49 0.00 5.32 0.00 0.00 91.20<br />
13:03:56 all 4.15 0.00 4.98 4.65 0.00 86.21<br />
Average: all 9.53 0.00 4.70 1.33 0.00 84.44<br />
<br />
File ''test'' is also created (binary format).<br />
<br />
*Create readable report format from ''test'' file, i.e. in semicolumn format, which can be imported in MSExcel graph:<br />
{{Board$}} sadf -d test > test.cvs<br />
{{Board$}} cat test.cvs<br />
# hostname;interval;timestamp;CPU;%user;%nice;%system;%iowait;%steal;%idle<br />
stm32mp1;3;2018-06-18 13:03:29 UTC;-1;4.82;0.00;3.16;0.66;0.00;91.36<br />
stm32mp1;3;2018-06-18 13:03:32 UTC;-1;3.82;0.00;3.49;0.00;0.00;92.69<br />
stm32mp1;3;2018-06-18 13:03:35 UTC;-1;18.77;0.00;7.81;5.81;0.00;67.61<br />
stm32mp1;3;2018-06-18 13:03:38 UTC;-1;11.96;0.00;4.98;0.00;0.00;83.06<br />
stm32mp1;3;2018-06-18 13:03:41 UTC;-1;36.21;0.00;8.97;0.00;0.00;54.82<br />
stm32mp1;3;2018-06-18 13:03:44 UTC;-1;1.50;0.00;1.66;0.83;0.00;96.01<br />
stm32mp1;3;2018-06-18 13:03:47 UTC;-1;1.00;0.00;1.83;1.33;0.00;95.85<br />
stm32mp1;3;2018-06-18 13:03:50 UTC;-1;9.63;0.00;4.82;0.00;0.00;85.55<br />
stm32mp1;3;2018-06-18 13:03:53 UTC;-1;3.49;0.00;5.32;0.00;0.00;91.20<br />
stm32mp1;3;2018-06-18 13:03:56 UTC;-1;4.15;0.00;4.98;4.65;0.00;86.21<br />
<br />
[[File:Sadf_cpugraph_example.png|600px|link=]]<br />
<br />
== References ==<br />
<references /><br />
<br />
{|<br />
|+ "External links"<br />
|-<br />
! scope=col | Document link<br />
! scope=col | Document Type<br />
! scope=col | Description<br />
|-<br />
| [http://sebastien.godard.pagesperso-orange.fr/documentation.html sysstat documentation]<br />
| Standard<br />
| Official webpage by Sebastien GODARD<br />
|-<br />
| [http://sebastien.godard.pagesperso-orange.fr/tutorial.html sysstat tutorial]<br />
| User Guide<br />
| Official webpage by Sebastien GODARD<br />
|-<br />
| [https://github.com/sysstat/sysstat sysstat git]<br />
| Sources<br />
| Sysstat github<br />
|}</div>
Frq07399