snapd eats 100% CPU for about 5 minutes on first boot causing a load of >2.0
Bug #1638537 reported by
Oliver Grawert
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned | ||
snapd (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
during first boot it takes very long for the "please press eneter" message to come up on screen.
booting a pi image with systemd.debug-shell added to /boot/cmdline.txt one can watch top and syslog during that time. obviously snapd is doing the initial snap setup at this point and eats 100% CPU and causes extreme I/O for about 5 minutes where the board nearly does not react at all.
http://
grep -E '(snapd|mount)' /var/log/syslog
affects: | snappy → snapd |
Changed in snapd (Ubuntu): | |
status: | New → Triaged |
Changed in snapd: | |
status: | New → Triaged |
To post a comment you must log in.
seems the last lines are most interesting here:
Nov 2 11:52:26 localhost /usr/lib/ snapd/snapd[ 1128]: taskrunner.go:353: DEBUG: Running task 21 on Do: Run configure hook of "pi3" snap if present snapd/snapd[ 1128]: taskrunner.go:353: DEBUG: Running task 24 on Do: Request device serial
Nov 2 11:56:19 localhost /usr/lib/
there are 4minutes between these two steps ...
also:
trying to watch snap changes takes very long to return anything at that point, eventually it shows "initialize system" ... then on a second run "initialize device", both take minutes to return.