How to measure desktop login time with bootchart
I've got an issue whereby after each reboot the first time I log into my session it takes ages. That is, it can take up to five minutes from the moment I enter my password until I can use the desktop.
I was trying to use bootchart to debug the issue, but while bootchart itself worked, the graphics output are cropped at 105 seconds, so I cannot even see when compiz starts.
Looking at /etc/init/bootchart.conf
, it seems the graphic is cropped indeed after compiz start, but it doesn't seem to be my case
bootchart --format=$format \
--crop-after=compiz,metacity,mutter,kwin,xfwm4 \
--annotate=ureadahead,mountall,hostname,hwclock \
--annotate=Xorg \
--annotate=gdm-session-worker \
--output="/var/log/bootchart" "$TARBALL"
Here is some example output.
Is there any way I can see a longer time axis on the graph, at least until the desktop is loaded?
Solution 1:
Please use pybootchartgui
(available in Software Centre). It'd create a graphical log after each boot.
Checking dmesg
output would be equally good, but less 'visual'.
Please disable from Startup Application whatever you don't need, and make sure that the HDD is the 1st boot device in the BIOS.
Solution 2:
The bootchart displays how much time a service takes while the system boots up
Zoom in the existing image That's what I do
Images are stored in /var/log/bootchart folder