Bug 45815 - EC2 image: large startup delays
EC2 image: large startup delays
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: General
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Philipp Hahn
UCS maintainers
:
Depends on:
Blocks: 38920
  Show dependency treegraph
 
Reported: 2017-12-04 14:28 CET by Philipp Hahn
Modified: 2019-11-01 13:15 CET (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
systemd-analyze plot (115.69 KB, image/svg+xml)
2017-12-04 14:28 CET, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2017-12-04 14:28:12 CET
Created attachment 9297 [details]
systemd-analyze plot

Starting an EC2 image is slow:
- ucr set grub/rootdelay=0
- ucr set grub/timeout=0
- ucr set grub/append='initcall_blacklist=xenfb_init'
  journalctl -b0: # <https://github.com/coreos/bugs/issues/208>
>Dez 04 07:11:55 master203 kernel: xenbus_probe_frontend: Waiting for devices to initialise: 25s...20s...15s...10s...5s...0s...
>Dez 04 07:11:55 master203 kernel: 
>Dez 04 07:11:55 master203 kernel: xenbus_probe_frontend: Timeout connecting to device: device/vfb/0 (local state 3, remote state 1)
>Dez 04 07:11:55 master203 kernel: xenbus_probe_frontend: Device with no driver: device/vbd/51712
>Dez 04 07:11:55 master203 kernel: xenbus_probe_frontend: Device with no driver: device/vbd/51728
>Dez 04 07:11:55 master203 kernel: xenbus_probe_frontend: Device with no driver: device/vif/0
- ucr set system/setup/boot/start=false # afterwards fix ucs-ec2-test to not wait for running firefox!

- systemctl stop univention-system-setup-boot.service ; systemd-analyze plot >/var/www/vm.svg
  After:
    Startup finished in 40.385s (kernel) + 43.640s (userspace) = 1min 24.026s
  Before:
    Startup finished in 2.117s (kernel) + 16.899s (userspace) = 19.016s
Comment 1 Philipp Hahn univentionstaff 2019-11-01 13:15:44 CET
(In reply to Philipp Hahn from comment #0)
> Starting an EC2 image is slow:
> - ucr set grub/rootdelay=0
> - ucr set grub/timeout=0

We already set them for a long time.

> - ucr set grub/append='initcall_blacklist=xenfb_init'

This is no longer an issue as EC2 provides a VGA controller now:
 $ lspci
 00:02.0 VGA compatible controller: Cirrus Logic GD 5446

But "univention-system-setup-boot.service" is still flagged as failed: Bug #50441

Otherwise WORKS-FOR-ME