[4.8 regression] boot has become very slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Incomplete
|
High
|
Joseph Salisbury | ||
Yakkety |
Won't Fix
|
High
|
Joseph Salisbury |
Bug Description
With yakkety's recent update from linux 4.4 to 4.8 booting has become a lot slower. It's not one service in particular, but without "quiet" and "splash" you can now easily read every single line instead of that whole wall of text zipping by. It now takes over 20s instead of ~10 seconds to boot.
This is even more dramatic when factoring out the recent boot hang of NetworkManager (bug 1622893) and disabling lightdm:
sudo systemctl mask NetworkManager NetworkManager-
then booting with 4.4 takes 1.5s and with 4.8 19.5s (!).
Some excerps from systemd-analyze blame:
4.4:
474ms postfix@-.service
395ms lxd-containers.
305ms networking.service
4.8:
4.578s postfix@-.service
7.300s lxd-containers.
6.285s networking.service
I attach the full outputs of critical-chain and analyze for 4.4 and 4.8 for reference.
This is much less noticeable in the running system. There is no immediate feeling of sluggishness (although my system is by and large idle).
I compared the time of sbuilding colord under similar circumstances (-j4, building on tmpfs, thus no hard disk delays; running with fully pre-loaded apt-cacher-ng thus no random network delays), and with 4.4 it takes 6.5 minutes and with 4.8 it takes 7.5. So that got a bit slower, but much less dramatically than during boot, so this is either happening when a lot of processes run in parallel, or is perhaps related to setting up cgroups.
One thing I noticed that during sbuild in 4.8 "top" shows ridiculous loads (~ 250) under 4.8, while it's around 4 or 5 under 4.4. But that doesn't reflect in actual sluggishness, so this might be just an unrelated bug.
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.8.0-11-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/pcmC0D0c: martin 3049 F...m pulseaudio
/dev/snd/pcmC0D0p: martin 3049 F...m pulseaudio
/dev/snd/
Date: Thu Sep 22 09:42:56 2016
EcryptfsInUse: Yes
MachineType: LENOVO 2324CTO
ProcEnviron:
TERM=linux
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.161
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/09/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: G2ET95WW (2.55 )
dmi.board.
dmi.board.name: 2324CTO
dmi.board.vendor: LENOVO
dmi.board.version: 0B98401 Pro
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 2324CTO
dmi.product.
dmi.sys.vendor: LENOVO
tags: | added: kernel-4.8 |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: kernel-da-key |
description: | updated |
Changed in linux (Ubuntu): | |
importance: | Medium → High |
Changed in linux (Ubuntu Yakkety): | |
importance: | Medium → High |
Changed in linux (Ubuntu): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Yakkety): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Yakkety): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Yakkety): | |
status: | In Progress → Incomplete |
Changed in linux (Ubuntu): | |
status: | In Progress → Incomplete |
Confirmed with 4.8.0-14.15-generic from yakkety-proposed.
Immediately after boot the system load is also reported as ~ 250, and then slowly goes down towards zero.