Author Topic: bootchart package is missing something  (Read 338 times)

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
bootchart package is missing something
« on: March 08, 2013, 01:04:20 AM »
Trying to package bootchart - a c package compared to the old java version

https://github.com/sofar/bootchart

Bootchart - a 'startup' graphing tool

--

Bootchart is a tool, usually run at system startup, that collects and graphs
the CPU and disk load of the system as it works. The output of bootchart is
an SVG graph. Normally, bootchart is invoked as `bootchartd` by the kernel
by passing "init=/sbin/bootchartd" to the kernel. Bootchart will then fork
init off to resume normal system startup, while monitoring and logging
startup information in the background.

After collecting a certain amount of data (usually 15-30 seconds) the logging
stops and a graph is generated from the logged information. This graph
contains vital clues to which resources are being used, in which order, and
where possible problems exist in the startup sequence of the system.

Of course, bootchart can also be used at any moment in time to collect and
graph some data for an amount of time. Bootchart does not even require root
privileges to do so, and will happily run as a normal user. Bootchart graphs
are by default written time-stamped in /var/log.

-------------------

I have made a tentative package but I am unable to get the configuration file installed. There is an example file called bootchatd.conf.example which I think should be placed as bootchartd.conf in /etc. But the commands I tried error out during build.
Code: [Select]
mkdir -p %{buildroot}%{sysconfdir}
install -m 0755 bootchartd.conf.example %{buildroot}%{_sysconfdir}/bootchartd.conf

I get an error indicating that a regular file "bootchartd.conf" not found. Without that the package builds successfully here hence in the current .spec those 2 lines have been commented out.

'ls' output for bootchart-1.20 directory:
Code: [Select]
aclocal.m4
bootchart.c
bootchartd.conf.example
bootchartfilelist.txt
bootchart.h
config.h.in
configure*
configure.ac
COPYING
depcomp*
install-sh*
log.c
Makefile.am
Makefile.in
missing*
README
svg.c
TODO

SPEC - http://dl.dropbox.com/u/37931428/bootchartc/slingshot-bootchart-01.spec
LOG - http://dl.dropbox.com/u/37931428/bootchartc/slingshot-bootchart-01.spec.log
RPM - http://dl.dropbox.com/u/37931428/bootchartc/bootchart-1.20-1slingshot2013.i586.rpm
SRPM - http://dl.dropbox.com/u/37931428/bootchartc/bootchart-1.20-1slingshot2013.src.rpm
« Last Edit: March 17, 2013, 10:32:30 AM by sling-shot »
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Re: How to package a configuration file? W.r.t. bootchart package
« Reply #1 on: March 08, 2013, 01:27:41 AM »
there is a typo in your spec

Quote
mkdir -p %{buildroot}%{sysconfdir}

have to be

Quote
mkdir -p %{buildroot}%{_sysconfdir}

than the install of the config file works
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Silly me. That fixed it. Thanks.
-----------------
Is this worth submitting to DropBox?
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Its now good to go but rename the spec to pclos conventions.
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
It does not seem to work. The output is not found in /var/log after booting.
I see a line in the startup log about not finding /proc/schedstat.

A Google search did not give me much information.

Unless this can be solved this package is useless.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10623
  • MLUs Forever!
It does not seem to work. The output is not found in /var/log after booting.
I see a line in the startup log about not finding /proc/schedstat.

A Google search did not give me much information.

Unless this can be solved this package is useless.

The root partition is mounted read-only during boot.
I guess it needs to store data in memory until it can save the log.?
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1153
Re: bootchart package is missing something
« Reply #6 on: March 17, 2013, 11:41:34 AM »
found this https://bugs.archlinux.org/task/28879

it needs to be enabled in the kernel so you should request to enable it in the new kernels.
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3791
Re: bootchart package is missing something
« Reply #7 on: March 17, 2013, 12:30:59 PM »
I was wondering how you got around having a patched kernel. I will created a new 3.4.x with bootchart enabled and send it in.

Galen

Offline sling-shot

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1730
  • Satyameva Jayate | Truth Alone Triumphs.
Re: bootchart package is missing something
« Reply #8 on: March 17, 2013, 08:17:12 PM »
Ah. I always thought it was a missing package. Never thought it would be a missing kernel option :(
Thanks. This shall go into cold storage until there is a newer enabled kernel.
Packaging well will cure headaches of many :) But learning to package will cause headaches in many :(

AMD AthlonX2 3600+/ASUS M2NPV-VM/ATi HD4670/Onboard sound/3.5GB DDR2-533 RAM/SEAGATE 160+320GB HDD/DELL S2240L FullHD/Creative SBS370 2.1/PCLinuxOS2013/KDE4
Samsung NP305U1-A06IN | Nokia E6