Analyzing Build Performance

Collecting System Statistics

During build, KaarPux is running sysstat (see SYSSTAT and KaarPux Package: sysstat) in the background. This creates the files

  • boostrap/log/bootstrap.sar
  • linux/log/*.sar

Analyzing System Statistics

The files created by sysstat can be analyzed with:command:kaarpux/tools/kx_sar.pl.

kaarpux/tools/kx_sar.pl can be called with the following parameters:

-s
Show summary information.
-p
Show percentiles for important figures.
-d
Show information on disk usage.
-g
Create graphs with system statistics.

The statistics summary for all phases can be combined:

T=$(mktemp -d)
(cd bootstrap/log; ../../master/tools/kx_sar.sh -s bootstrap.sar > $T/bootstrap)
SLIST="linux_base linux_xorg linux_gnome_pre linux_gnome linux_gnome_post \\
opt_desktop opt_libreoffice opt_programming opt_coins opt_closed_source"
(cd linux/log; for S in $SLIST; do ../../master/tools/kx_sar.sh -s $S.sar | cut -f3 > $T/$S; done)
(cd $T; paste bootstrap $SLIST)