[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#763695: console-setup is slowest part of boot, not fast as setupcon manpage tells us

On Wed, Oct 01, 2014 at 11:31:18PM +0200, Julian Andres Klode wrote:
> console-setup requires 800ms during a boot. The complete boot finishes
> in 4.1 seconds. This really should not be a shell script in the long
> term, but short term at least removing "fast" from the manual page
> would be a good idea...
> Here's a boot graph:
> https://people.debian.org/~jak/boot.svg

One possible explanation is what Samuel Thibault proposed (for some 
reason setupcon doesn't use cached keymap).  The following is (may be) 
another explanation.

I don't know how exactly recent Debian systems boot so the following is 
only a guess.  Considering that keyboard-setup.service uses only 190 ms 
compared to 823 ms for console-setup.service, I suppose that these 823 ms
are caused by forked printf commands (by setupcon) waiting for the 
virtual consoles to become active.  So during most of these 823ms the 
scripts were waiting and didn't consume cpu resources.

If my hypothesis is true, the proper fix is to improve the description 
console-setup.service in order to run it only after the virtual consoles 
become active.  This, however, is not something I can do (with my 
current knowledge).

Anton Zinoviev

Reply to: