Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

howto - use bootchart to profile your system or an app

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
gnudude
Posts: 1684
Joined: 2009-04-05 17:30
Location: gone....

howto - use bootchart to profile your system or an app

#1 Post by gnudude »

Install bootchart and bootchart-view

To use bootchart to profile your system at boot time :
1 - edit /boot/grub/menu.lst file and add init=/sbin/bootchartd to the kernel line so it looks something like:
kernel /boot/vmlinuz-2.6.26-1-686 root=/dev/sda2 ro init=/sbin/bootchartd
2 - reboot and it will generate a file /var/log/bootchart.tgz file
3 - convert that file to a png
bootchart -f png
4 - copy that file to your home directory
cp /var/log/bootchart.png ~/
5 - look in your home directory for the bootchart.png file


To use bootchart to profile a running system :
1 - make a folder
mkdir ~/tmp
2 - copy the configuration file to that folder
cp /etc/bootchartd.conf ~/tmp
3 - edit the configuration file and change the BOOTLOG_DEST to that folder
BOOTLOG_DEST=~/tmp/bootchart.tgz
4 - change to that directory
cd tmp/
5 - profile the system - for 5 seconds in this example
/sbin/bootchartd start; sleep 5; /sbin/bootchartd stop
6 - create your bootchart
bootchart bootchart.tgz -f png
7 - look in the tmp folder in your home directory for the boochart.png image

To use bootchart to profile a application :
1 - make a folder
mkdir ~/tmp
2 - copy the configuration file to that folder
cp /etc/bootchartd.conf ~/tmp
3 - edit the configuration file and change the BOOTLOG_DEST to that folder
BOOTLOG_DEST=~/tmp/bootchart.tgz
4 - change to that directory
cd tmp/
5 - profile the application - konqueror in this example
/sbin/bootchartd start konqueror
6 - create your bootchart
bootchart bootchart.tgz -f png
7 - look in the tmp folder in your home directory for the boochart.png image

Thats all folks...

User avatar
eec
Posts: 78
Joined: 2008-06-10 11:43

Re: howto - use bootchart to profile your system or an app

#2 Post by eec »

To use bootchart in grub2 which file should be editted, grub.cfg or 10_linux template?
In an wiki page its suggested to edit cfg file, however in the cfg file and in other places it is always said not to edit it.

eec

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: howto - use bootchart to profile your system or an app

#3 Post by nadir »

this how-to:
https://wiki.ubuntu.com/Grub2
says it is /etc/default/grub.
i edited /etc/grub/grub.cfg and saved with : x! from vi (to force it), but any update of that file will delete this setting (i only wanted to run it once, so it didnt matter)
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

User avatar
Rolling Stone
Posts: 366
Joined: 2009-02-15 18:55
Location: Turku, Finland

Re: howto - use bootchart to profile your system or an app

#4 Post by Rolling Stone »

I have done this. I just never could quite figure out what to do with the pretty graph. :)

refracta
Posts: 1234
Joined: 2008-10-26 01:46

Re: howto - use bootchart to profile your system or an app

#5 Post by refracta »

brag about how fast your system is AND actually have something to prove it :wink:

User avatar
Rolling Stone
Posts: 366
Joined: 2009-02-15 18:55
Location: Turku, Finland

Re: howto - use bootchart to profile your system or an app

#6 Post by Rolling Stone »

Anybody got a GIMP tutorial at hand? :D

refracta
Posts: 1234
Joined: 2008-10-26 01:46

Re: howto - use bootchart to profile your system or an app

#7 Post by refracta »

shhh....dont give away the secret to my 12 second boot time :shock:

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: howto - use bootchart to profile your system or an app

#8 Post by milomak »

i should test this out
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
coldReactive
Posts: 102
Joined: 2010-03-27 21:08

Re: howto - use bootchart to profile your system or an app

#9 Post by coldReactive »

I'm on debian testing (Squeeze or whatever), and trying to install bootchart...

Code: Select all

Package bootchart is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package bootchart has no installation candidate
bootchart-view package doesn't exist. :|

User avatar
Rolling Stone
Posts: 366
Joined: 2009-02-15 18:55
Location: Turku, Finland

Re: howto - use bootchart to profile your system or an app

#10 Post by Rolling Stone »

Both packages (of course) do exist.

You might want to take a look at your sources file. (/etc/apt/sources.list)

User avatar
coldReactive
Posts: 102
Joined: 2010-03-27 21:08

Re: howto - use bootchart to profile your system or an app

#11 Post by coldReactive »

Rolling Stone wrote:Both packages (of course) do exist.

You might want to take a look at your sources file. (/etc/apt/sources.list)
Here's what that says:

Code: Select all

# deb http://ftp.us.debian.org/debian/ squeeze main

deb http://ftp.us.debian.org/debian/ squeeze main contrib
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib

deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib

deb http://volatile.debian.org/debian-volatile squeeze/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main contrib

deb http://www.debian-multimedia.org squeeze main non-free contrib

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: howto - use bootchart to profile your system or an app

#12 Post by nadir »

i can't find a squeeze version on the linked site neither. you might install it from sid. i wouldn't say its worth the trouble.
http://forums.debian.net/viewtopic.php? ... ilit=mixed
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

User avatar
Rolling Stone
Posts: 366
Joined: 2009-02-15 18:55
Location: Turku, Finland

Re: howto - use bootchart to profile your system or an app

#13 Post by Rolling Stone »

Sorry! For misleading you. You guys are right and I'm so wrong. :oops:

Maybe I should get some more sleep...

User avatar
coldReactive
Posts: 102
Joined: 2010-03-27 21:08

Re: howto - use bootchart to profile your system or an app

#14 Post by coldReactive »

nadir wrote:i can't find a squeeze version on the linked site neither. you might install it from sid. i wouldn't say its worth the trouble.
http://forums.debian.net/viewtopic.php? ... ilit=mixed
Indeed. :| That isn't worth the trouble.

Post Reply