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
howto - use bootchart to profile your system or an app
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...
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...
Re: howto - use bootchart to profile your system or an app
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
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
Re: howto - use bootchart to profile your system or an app
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)
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.
- Rolling Stone
- Posts: 366
- Joined: 2009-02-15 18:55
- Location: Turku, Finland
Re: howto - use bootchart to profile your system or an app
I have done this. I just never could quite figure out what to do with the pretty graph.
Re: howto - use bootchart to profile your system or an app
brag about how fast your system is AND actually have something to prove it
- Rolling Stone
- Posts: 366
- Joined: 2009-02-15 18:55
- Location: Turku, Finland
Re: howto - use bootchart to profile your system or an app
shhh....dont give away the secret to my 12 second boot time
Re: howto - use bootchart to profile your system or an app
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
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
- coldReactive
- Posts: 102
- Joined: 2010-03-27 21:08
Re: howto - use bootchart to profile your system or an app
I'm on debian testing (Squeeze or whatever), and trying to install bootchart...
bootchart-view package doesn't exist.
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
- Rolling Stone
- Posts: 366
- Joined: 2009-02-15 18:55
- Location: Turku, Finland
Re: howto - use bootchart to profile your system or an app
Both packages (of course) do exist.
You might want to take a look at your sources file. (/etc/apt/sources.list)
You might want to take a look at your sources file. (/etc/apt/sources.list)
- coldReactive
- Posts: 102
- Joined: 2010-03-27 21:08
Re: howto - use bootchart to profile your system or an app
Here's what that says:Rolling Stone wrote:Both packages (of course) do exist.
You might want to take a look at your sources file. (/etc/apt/sources.list)
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
Re: howto - use bootchart to profile your system or an app
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
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.
- Rolling Stone
- Posts: 366
- Joined: 2009-02-15 18:55
- Location: Turku, Finland
Re: howto - use bootchart to profile your system or an app
Sorry! For misleading you. You guys are right and I'm so wrong.
Maybe I should get some more sleep...
Maybe I should get some more sleep...
- coldReactive
- Posts: 102
- Joined: 2010-03-27 21:08
Re: howto - use bootchart to profile your system or an app
Indeed. That isn't worth the trouble.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