You are not logged in.
edit: added "+x" to bootchart-render
bootchart:
pkgname=bootchart
pkgver=0.8
pkgrel=1
pkgdesc="Boot Process Performance Visualization"
url="http://www.klika.si/ziga/bootchart/"
license=""
makedepends=('apache-ant')
depends=('j2re' 'acct')
install=bootchart.install
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 bootchart-render)
md5sums=('ea999eecbd252b60dbe8e1e6a530cac0' 'f02888cda23a5b1c9b931140f6fdbb71')
build()
{
cd $startdir/src/$pkgname-$pkgver
ant
sed -i "s#ROOT=/#ROOT=$startdir/pkg#" install.sh
mkdir -p $startdir/pkg/sbin
mkdir -p $startdir/pkg/etc
./install.sh
mkdir -p $startdir/pkg/usr/share/bootchart
cp bootchart.jar $startdir/pkg/usr/share/bootchart
mkdir -p $startdir/pkg/usr/bin
cp $startdir/src/bootchart-render $startdir/pkg/usr/bin
chmod +x $startdir/pkg/usr/bin/bootchart-render
}
bootchart.install:
post_install() {
echo " Bootchart usage : "
echo " make sure to append init=/sbin/bootchartd to your"
echo " kernel parameters (it is recommended that you "
echo " create another entry specifically for bootchart"
echo " logging)."
echo " Run bootchart-render to render your bootchart"
/bin/true
}
post_upgrade() {
/bin/true
}
pre_remove() {
/bin/true
}
post_remove() {
/bin/true
}
and use bootchart-render to convert the log information to a png
# !/bin/sh
java -jar /usr/share/bootchart/bootchart.jar
acct:
pkgname=acct
pkgver=6.3.2
pkgrel=1
pkgdesc="This is a set of utilities which reports and summarizes data about user connect times and process execution statistics under GNU/Linux."
url="http://www.gnu.org/software/acct/"
source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('da0055b254f7da8b8920db83ef1ebba1')
build()
{
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
# ack - last exists in sysvinit... but we'll get rid of this new version...
rm $startdir/pkg/usr/bin/last
rm $startdir/pkg/usr/man/man1/last.1
}
and, my bootchart:
http://griffin.freelinuxhost.com/bootchart.png
Offline
ah - finally, pkgs! - i was NEVER going to build this myself! Weird deps ahoy!
Offline
ah - finally, pkgs! - i was NEVER going to build this myself! Weird deps ahoy!
naw they changed it alot.... it used to require initscripts hooks and all this crap... technically you don't even need java as there's a way to use wget to render the png over the internet
Offline
The web renderer generated really crappy output when I tried it. Definitely the java app is better...
Offline
acct -> [extra] (as i have it in my local repo and see that need is here)
the other one i have to check more deeply ...
... man, this quickreply is great!
The impossible missions are the only ones which succeed.
Offline
i'm too tired for running another run to check the bootchart pkg again to include it to extra ... maybe tomorrow, if i remember ....
btw: here my bootchart with vanilla kernel and vanilla initscripts comming with arch:
http://daperi.freelinuxhost.com/archlin … tchart.png
horrible! anyone knows how to improve this time?
The impossible missions are the only ones which succeed.
Offline
acct -> [extra] (as i have it in my local repo and see that need is here)
the other one i have to check more deeply ...... man, this quickreply is great!
yeah, I wasn't sure how to deal with "last" though as it's part of the sysvinit package....
Offline
bootchart:
you miss to mark bootchart-render executable but else the pkg is ok
The impossible missions are the only ones which succeed.
Offline
bootchart:
you miss to mark bootchart-render executable but else the pkg is ok
aha, I'll fix that
Offline
Ummm - this doesn't work for me - when i run the bootchart-render what is supposed to happen?
Offline
check the web page docs - you need to add a special boot line in grub/lilo with:
init=/path/to/bootchart
appended so that it can do its logging...
it logs all it's stuff to a bootchart.tgz file, and bootchart-render converts that to a PNG
Offline
ah - ok - there was something in the install script about that? I thought i had that covered - guess not
Offline
here's my bootchart.
http://aslan.no-ip.com/~iphitus/images/bootchart.png
not all too bad. really....
just need to do something about reiserfsck if i can, maybe work out readahead and load up X in advance....
I'm using my own initscripts with my own fastboot mods and a modified version of brice's bootsplash additions.
iphitus
Offline