[Bug 1823327] Re: booting cloud images on a Multipass Windows hosted enviroment is slow in the initramfs stage due to font setup / framebuffer issues
Launchpad Bug Tracker
1823327 at bugs.launchpad.net
Tue Apr 23 16:08:30 UTC 2019
This bug was fixed in the package console-setup - 1.191ubuntu3
---------------
console-setup (1.191ubuntu3) eoan; urgency=medium
* No change rebuild to include all previous changes
console-setup (1.191ubuntu2) eoan; urgency=medium
* Call setupcon --force only when debian-installer is active
and always redirect output to /dev/null to not block. (LP: #520546)
console-setup (1.191ubuntu1) eoan; urgency=low
* Merge from Debian unstable. Remaining changes:
- debian/clean: Delete Keyboard/tree-keymaps/ on clean
- Add an apport hook.
- If the locale is C during configuration, only set CHARMAP to ISO-8859-15
on kFreeBSD; otherwise restore the previous behaviour from before the
kFreeBSD port of using UTF-8 in that case.
- Change the default font from Fixed to VGA for Lat15; while it's not
entirely complete, it looks better and is largely good enough.
- Set keymap and font in the initramfs if possible and sensible.
- debian/vtrgb, debian/vtrgb.vga,
debian/console-setup-linux.setvtrgb.service, debian/rules,
debian/console-setup-linux.postinst: use Ubuntu's virtual terminal color
scheme by default, with a VGA color scheme available as an alternative.
- Handle unattended upgrades without breaking plymouth when updating
console fonts.
- Tolerate absence of setupcon in postinst scripts. Should be fixed by
refactoring to not have a keyboard-configuration package that needs to
call setupcon without depending on it.
- Don't copy keyboard-configuration questions to /target in OEM mode.
oem-config will ask them later, and copying these confuses it.
- Added templates for keyboard detection.
- debian/control: drop freebsd-specific packages.
- debian/control: we also need xkb-data-i18n as a Build-Depends-Indep to
build a complete set of translated keyboard layout/variant names.
- If the detect-keyboard debconf plugin is available
(cdebconf-newt-detect-keys in the installer), then offer to use it to
detect the keyboard layout.
- keyboard-configuration.config: While sourcing config files to re-seed
debconf, treat missing XKBOPTIONS as empty.
- Fix default keyboard selection for language/country combinations
lacking a proper combined locale.
- debian/keyboard-configuration.config: lower the priority for the layout
question.
- Map ppc64el/* to XKBMODEL=pc105.
- Set default layout for Kurdish to tr(ku).
- Set default for Dutch to us(intl), not just us.
- Set default layout for Vietnam to 'us'.
- debian/keyboard-configuration.config: Drop the xkb-keymap bits once
again as we're not ready for those yet, as it's currently causing an
invalid default layout in the installer.
- keyboard-configuration.{config,templates}: There is no good default
for layout toggling, stop pretending there is. Console users can set
one with dpkg-reconfigure or editing /etc/defaults/keyboard
- keyboard_present.sh: Quiet config/postinst when we have no USB devices.
- debian/preprocessor: revert the removal of keyboard names (for size) of
console-setup-udeb: we do need those, since we don't use the simplified
xkb-keymap template from Debian just yet: this way we can still show
country/language names when selecting a keyboard, layout or variant.
- debian/rules: revert hard-coding of a list of "debconf-selectable"
layouts for the udebs, since we don't use this debconf question in Ubuntu
and all layouts are selectable.
- Make COPYRIGHT a symlink to debian/copyright.
- Don't cat over the keymaps; they're already moved to the right place.
- Add Keyboard/Makefile rule to build pc105.tree.
- Include pc105.tree for ubiquity; make sure it gets built.
- Fix command injection in ckbcomp.
- Generate a locale locally for translating keyboard names in
kbdnames-maker.
- kbdnames-maker: Call `{bind,}textdomain` after switching locale.
- Keyboard/Makefile: make sure KeyboardNames.pl is built with accurate data
from xkb-data.
- xmlreader, KeyboardNames.pl: Added model entry to skip model selection.
- Make sure we give a meaningful name to ch layouts: "Switzerland" instead
of "German (Switzerland), since it includes French too.
- setupcon:
- use only /run for tempfiles with /tmp as a non-root fallback.
- handle compressed console maps and font files.
- Map XKBMODEL=SKIP to '' for compatibility with existing
configs.
- the variables are taken from a config file which, if changed,
invalidates the cache.
- there is only ever one keyboard map per system.
- the system should not have to resolve filenames to find the keymap
cache on boot.
- Explicitly exit 0, so that postinsts don't fail in the event that
loadkeys can't find a console.
* Dropped changes:
- drop handling of obsolete upstart jobs, not needed post-18.04.
- drop breaks/replaces on ancient keyboard-configuration package.
- keyboard-configuration.config: drop layout migration code, which
definitely predates bionic.
* debian/console-setup.initramfs-top: only ever initialize /dev/tty1. We
do not ever use more than 1 VT in the initramfs, and we reinitialize
anyway from the rootfs so this saves us no time (and in fact wastes a
lot of time in some configurations). LP: #1823327.
console-setup (1.191) unstable; urgency=medium
* Team upload
[ Updated translations ]
* Punjabi (Gurmukhi) (pa.po) by Aman ALam
* Ukrainian (uk.po) by Anton Gladky
console-setup (1.190) unstable; urgency=medium
* Team upload
* console-setup(5) manpage: correct section of setfont manpage and remove
reference to no-longer existing consolechars manpage. Closes: #920312
[ Updated translations ]
* Punjabi (Gurmukhi) (pa.po) by Aman ALam
* Vietnamese (vi.po) by Trần Ngọc Quân
console-setup (1.189) unstable; urgency=medium
* Team upload
[ Holger Wansing ]
* Correct release date/time of version 1.188 in changelog file.
* Remove trailing whitespaces from control and rules files, to fix
lintian tag.
[ Antonio Larrosa ]
* Keyboard: Translate ISO_Left_Tab to Meta_Tab. Closes: #920287
[ Updated translations ]
* Danish (da.po) by Joe Hansen
* Finnish (fi.po) by Juhani Numminen
* Hebrew (he.po) by Yaron Shahrabani
* Traditional Chinese (zh_TW.po) by Louies
console-setup (1.188) unstable; urgency=medium
* Team upload
[ Holger Wansing]
* Remove trailing whitespaces from changelog file, to fix lintian tag.
* Remove Multi-Arch declaration for all udebs, there is no point of this
ATM; fixes 'unknown-field-in-control' lintian tag.
[ Updated translations ]
* Tibetan (bo.po) by Tennom
* Catalan (ca.po) by Jordi Mallach
* Greek (el.po) by Vangelis Skarmoutsos
* Spanish (es.po) by Javier Fernández-Sanguino
* Finnish (fi.po) by Juhani Numminen
* Gujarati (gu.po) by Kartik Mistry
* Polish (pl.po) by Michał Kułach
* Romanian (ro.po) by Andrei Popescu
console-setup (1.187) unstable; urgency=medium
* Team upload
[ Updated translations ]
* Arabic (ar.po) by ButterflyOfFire
* Asturian (ast.po) by Xuacu Saturio
* Finnish (fi.po) - minor fixes
* French (fr.po) - minor fixes
* German (de.po) by Holger Wansing
* Hindi (hi.po) by Himanshu Awasthi
* Japanese (ja.po) by Kenshi Muto
* Korean (ko.po) by Changwoo Ryu
* Latvian (lv.po) by Tranzistors
* Marathi (mr.po) by Nayan Nakhare
* Portuguese (pt.po) by Miguel Figueiredo
* Russian (ru.po) by Yuri Kozlov
* Turkish (tr.po) by Mert Dirik
console-setup (1.186) unstable; urgency=medium
* Team upload
[ Holger Wansing]
* Change deprecated Priority: extra into optional.
* Fix spelling of 'argumengs' in changelog.
[ Updated translations ]
* Bulgarian (bg.po) by Damyan Ivanov
* Galician (gl.po) by mantinan
* Croatian (hr.po) by Valentin Vidic
console-setup (1.185) unstable; urgency=medium
* Team upload
[ Cyril Brulebois ]
* setupcon(findfile): Do not use `ls` in order to find a file because
`ls` sorts its arguments. Thanks to Alexey Shilin (patch provided),
closes: #898303.
* Update Vcs-{Browser,Git} to point to salsa (alioth's replacement).
[ Updated translations ]
* Belarusian (be.po) by Viktar Siarheichyk
* Esperanto (eo.po) by Felipe Castro
* Finnish (fi.po) by Arto Keiski
* Hebrew (he.po) by Yaron Shahrabani
* Icelandic (is.po) by Sveinn í Felli
* Indonesian (id.po) by Andika Triwidada
* Kannada (kn.po) by Yogesh
* Korean (ko.po) by Changwoo Ryu
* Norwegian Bokmål (nb.po) by Allan Nordhøy
* Dutch (nl.po) by Frans Spiesschaert
* Serbian (sr.po) by Filipovic Dragan
* Swedish (sv.po) by Anders Jonsson
* Telugu (te.po) by Praveen Illa
* Simplified Chinese (zh_CN.po) by Boyuan Yang
* Traditional Chinese (zh_TW.po) by Anthony Wong
console-setup (1.184) unstable; urgency=medium
[ Updated translations ]
* Slovak (sk.po) by Ivan Masár
console-setup (1.183) unstable; urgency=medium
[ Anton Zinoviev ]
* Support for U+202F NARROW NO-BREAK SPACE. Thanks to Alexey Shilin,
closes: #895047.
console-setup (1.182) unstable; urgency=medium
[ Updated translations ]
* Czech (cs.po) by Miroslav Kure
* German (de.po) by Holger Wansing
console-setup (1.181) unstable; urgency=medium
[ Updated translations ]
* Welsh (cy.po) by Huw Waters
* Hungarian (hu.po) by Dr. Nagy Elemér Károly
* Lithuanian (lt.po) by Moo
* Portuguese (Brazil) (pt_BR.po) by Adriano Rafael Gomes
* Portuguese (pt.po) by Miguel Figueiredo
console-setup (1.180) unstable; urgency=medium
* debian/console-setup.config: Fix getting codeset from codesets
(Closes: Bug#892900)
console-setup (1.179) unstable; urgency=medium
[ Samuel Thibault ]
* debian/font-switch: Complete language coverage.
* debian/rules: Include more fonts for more complete speakup & brltty
support.
* debian/console-setup.config: Fix typo for Ethiopian font codeset.
* Add FullCyrAsia, FullCyrSlav and FullGreek variants which are 512-glyph
fonts without the character equivalence, which is needed for screen
readers to properly get the text.
-- Balint Reczey <rbalint at ubuntu.com> Tue, 23 Apr 2019 13:38:57 +0200
** Changed in: console-setup (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to console-setup in Ubuntu.
https://bugs.launchpad.net/bugs/1823327
Title:
booting cloud images on a Multipass Windows hosted enviroment is slow
in the initramfs stage due to font setup / framebuffer issues
Status in cloud-images:
New
Status in console-setup package in Ubuntu:
Fix Released
Bug description:
Booting an azure kernel Cosmic cloud image with multipass on Windows
10 pro takes a long time. Using systemd-analyze 25 seconds in kernel
boot time is reported. Digging into this, the kernel boot time is
actually ~5 seconds, the other 20 seconds before systemd init is
exec'd is actually in the initramfs. I've instrumented the kernel to
record the exec and exit times of each process in the kernel and the
top offending processes in initramfs during boot are:
Duration PID process
14.86832 262 /scripts/init-top/console_setup
2.48749 263 /bin/setfont
2.45357 268 /bin/setfont
2.44657 291 /bin/setfont
2.44392 286 /bin/setfont
2.43545 279 /bin/setfont
2.43161 274 /bin/setfont
1.19233 255 /scripts/init-top/framebuffer
console_setup is calling setfont 7 times and each time setfint is
taking more than 2.4 seconds to complete. Also the framebuffer program
is taking over a second to run.
For Disco with azure kernel:
Duration PID process
14.19028 275 console_setup
2.39020 276 setfont
2.34020 281 setfont
2.32915 293 setfont
2.32389 289 setfont
2.32319 285 setfont
2.32178 297 setfont
1.11417 268 framebuffer
For Xenial with generic kernel:
Duration PID process
15.01832 232 console_setup
2.52273 233 setfont
2.50960 238 setfont
2.48476 250 setfont
2.46333 256 setfont
2.46289 262 setfont
2.44667 268 setfont
1.07674 225 framebuffer
For Xenial with azure kernel:
15.00529 260 console_setup
2.49699 261 setfont
2.47591 292 setfont
2.47443 266 setfont
2.47131 286 setfont
2.46812 280 setfont
2.45780 274 setfont
1.07095 253 framebuffer
so it seems to occur across releases with generic and azure kernels.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1823327/+subscriptions
More information about the foundations-bugs
mailing list