2010-02-24

Slitaz -- bootchart


20100306 http://doc.slitaz.org/en:guides:boottime
/etc/rcS.conf :
FAST_BOOT_X="yes"

Env:
SliTaz GNU/Linux cooking-firefox-20100221 (29 Mb) - slitaz-cooking-firefox.iso

root@alanyih:~# uname -a
Linux alanyih 2.6.30.6-slitaz #1 SMP Sun Jan 3 20:16:03 CET 2010 i686 unknown
root@alanyih:~# ls -l /var/log | head -2
-rw-r--r-- 1 root root 80894 Feb 24 17:03 bootchart.png
-rw-r--r-- 1 root root 9770 Feb 24 17:03 bootchart.tgz
root@alanyih:~# tar tzvf /var/log/bootchart.tgz
-rw-r--r-- 0/0 354 2010-02-24 17:03:17 header
-rw-r--r-- 0/0 13022 2010-02-24 17:03:15 proc_diskstats.log
-rw-r--r-- 0/0 257499 2010-02-24 17:03:15 proc_ps.log
-rw-r--r-- 0/0 12143 2010-02-24 17:03:15 proc_stat.log

root@alanyih:~# tazpkg info pybootchartgui

Tazpkg information
================================================================================
Package : pybootchartgui
Version : r124
Category : misc
Short desc : bootchart GUI in python
Maintainer : jozee@slitaz.org
Depends : python pygtk bootchart
Web site : http://pybootchartgui.googlecode.com/
================================================================================

root@alanyih:~# tazpkg info bootchart

Tazpkg information
================================================================================
Package : bootchart
Version : 0.9
Category : misc
Short desc : boot process performance analyzer (add init=/sbin/bootchartd to boot options)
Maintainer : jozee@slitaz.org
Suggested : pybootchartgui
Web site : http://www.bootchart.org/
================================================================================

root@alanyih:~# head -24 /sbin/bootchartd
#!/bin/sh
#
# Bootchart logger script
# Ziga Mahkovec
#
# This script is used for data collection for the bootchart
# boot performance visualization tool (http://www.bootchart.org).
#
# To profile the boot process, bootchartd should be called instead of
# /sbin/init. Modify the kernel command line to include:
# init=/sbin/bootchartd
#
# bootchartd will then start itself in background and exec /sbin/init
# (or an alternative init process if specified using bootchart_init=)
#
# To profile a running system, run:
# $ /sbin/bootchartd start; sleep 30; /sbin/bootchartd stop
#

PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"
VERSION="0.8"

# Read configuration.
CONF="/etc/bootchartd.conf"
root@alanyih:~# pybootchartgui /var/log
warning: no parent for pid '2' with ppid '0'
Merged 30 logger processes
Pruned 39 processes
Pruned 0 exploders
Pruned 101 threads
Pruned 1 runs