Vmstat: Difference between revisions
From Yocto Project
Jump to navigationJump to search
No edit summary |
|||
Line 27: | Line 27: | ||
* Once <tt>bitbake</tt> finisshes, <tt>Ctrl+D</tt> the <tt>vmstat</tt> command | * Once <tt>bitbake</tt> finisshes, <tt>Ctrl+D</tt> the <tt>vmstat</tt> command | ||
=== Procs === | |||
[[File:Vmstat-procs-minimal.png|thumb|center|500px]] | [[File:Vmstat-procs-minimal.png|thumb|center|500px]] | ||
=== Memory === | === Memory === |
Revision as of 00:47, 7 March 2017
System Monitoring with vmstat
The following results were obtained based on data collected using vmstat, a tool that reports a system's virtual memory statistics.
Monitoring the system
In order to reproduce the shown output, one should:
- Build core-image-minimal
$ git clone git://git.yoctoproject.org/poky $ cd poky/ $ source oe-init-build-env $ bitbake core-image-minimal
- Move the download directory to a different location than build
$ pwd /home/user/poky/build/ $ mv downloads/ ../
- Remove build/ and re-build core-image-minimal from scratch, but this time, monitoring the system with vmstat
$ cd ../ $ pwd /home/user/poky/ $ rm -rf build/ $ source oe-init-build-env $ echo -e "DL_DIR = "/home/user/poky/downloads" \nBB_NO_NETWORK = "1"" > conf/auto.conf $ bitbake core-image-minimal # In another terminal right at the same time bitbake starts running run the following: $ vmstat 2 > vmstat-output.raw
- Once bitbake finisshes, Ctrl+D the vmstat command
Procs
Memory
IO
System
CPU