You are not logged in.

#1 2005-03-01 05:10:43

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

[new] bootchart (and GNU acct)

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
bootchart.png

Offline

#2 2005-03-01 09:28:36

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] bootchart (and GNU acct)

ah - finally, pkgs! - i was NEVER going to build this myself!  Weird deps ahoy!

Offline

#3 2005-03-01 15:08:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [new] bootchart (and GNU acct)

dibblethewrecker wrote:

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

#4 2005-03-03 00:12:34

kpiche
Forum Fellow
From: Ottawa, ON, Canada
Registered: 2004-03-30
Posts: 246
Website

Re: [new] bootchart (and GNU acct)

The web renderer generated really crappy output when I tried it.  Definitely the java app is better...

Offline

#5 2005-03-03 01:33:03

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [new] bootchart (and GNU acct)

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

#6 2005-03-03 02:15:00

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [new] bootchart (and GNU acct)

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

#7 2005-03-03 02:39:43

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [new] bootchart (and GNU acct)

dp wrote:

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

#8 2005-03-04 01:40:44

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: [new] bootchart (and GNU acct)

bootchart:
you miss to mark bootchart-render executable but else the pkg is ok


The impossible missions are the only ones which succeed.

Offline

#9 2005-03-04 05:26:43

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [new] bootchart (and GNU acct)

dp wrote:

bootchart:
you miss to mark bootchart-render executable but else the pkg is ok

aha, I'll fix that

Offline

#10 2005-03-04 05:46:59

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] bootchart (and GNU acct)

Ummm - this doesn't work for me - when i run the bootchart-render what is supposed to happen?

Offline

#11 2005-03-04 16:14:55

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [new] bootchart (and GNU acct)

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

#12 2005-03-05 08:41:01

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [new] bootchart (and GNU acct)

ah - ok - there was something in the install script about that?  I thought i had that covered - guess not

Offline

#13 2005-03-12 01:34:07

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] bootchart (and GNU acct)

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

Board footer

Powered by FluxBB