Bug #14964

Boot from slow medium in Tails 3.3 is extremely slow

Added by anonym 2017-11-14 21:47:13 . Updated 2018-01-09 20:52:07 .

Status:
Resolved
Priority:
High
Assignee:
Category:
Hardware support
Target version:
Start date:
2017-11-14
Due date:
% Done:

100%

Feature Branch:
bugfix/14964-slow-boot
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

It’s a 100–300 increase compared to 3.2 for me and spriver. Note that it only affects (in an obvious way at least) bare-metal DVD boot, not virtualized DVD boot.

Attached you’ll find the journal of such a slow DVD boot.


Files


Subtasks


Related issues

Blocks Tails - Feature #13244: Core work 2017Q4: Foundations Team Resolved 2017-06-29

History

#1 Updated by anonym 2017-11-14 22:51:48

  • Status changed from Confirmed to In Progress

Applied in changeset commit:6e259c16295dec124b82d1aea75799d81ff0cda1.

#2 Updated by intrigeri 2017-12-07 13:07:37

#3 Updated by intrigeri 2017-12-07 13:07:56

  • Priority changed from Normal to Elevated

#4 Updated by intrigeri 2017-12-07 13:08:31

  • Priority changed from Elevated to Normal

#5 Updated by intrigeri 2017-12-07 13:08:53

  • Assignee changed from anonym to intrigeri

I’ll ask Help Desk if users noticed.

#6 Updated by intrigeri 2017-12-08 09:14:10

  • Category set to Hardware support
  • Status changed from In Progress to Confirmed
  • Assignee changed from intrigeri to emmapeel
  • QA Check set to Info Needed

Dear help desk, did anyone report this to you?

#7 Updated by intrigeri 2017-12-14 10:49:51

  • Assignee changed from emmapeel to intrigeri
  • QA Check deleted (Info Needed)

Alan sees the same problem on bare metal booting from a USB stick. At first glance, the service that waits for /dev/loop0 times out after 180 seconds, and the live-config service takes ages to start as well. The latter matches what I see in the Journal anonym shared, in which the blocking (“foreground”) part of the readahead process takes not less than 4 minutes and reads about 1.2 GiB. I’ll check what makes this set of files so big.

#8 Updated by intrigeri 2017-12-14 10:50:45

  • Priority changed from Normal to High

This is a regression, and I’m told many users believe Tails 3.3 is broken and won’t boot, while they “just” need to wait N minutes longer than usual.

#9 Updated by intrigeri 2017-12-14 10:54:11

(Still, I would appreciate having feedback from Help Desk.)

#10 Updated by mercedes508 2017-12-14 15:09:34

Hi, not sure what kind of feedback you need, but during my recent shift I had a few reports of users using Tails from DVD believing it was broken or not working on their laptops

#11 Updated by intrigeri 2017-12-14 16:11:04

  • Status changed from Confirmed to In Progress

Applied in changeset commit:ec1bfcebcc93b67ab8efe0826a4ecb7ba599c9c2.

#12 Updated by intrigeri 2017-12-15 07:03:23

Tails 3.3’s source:config/binary_rootfs/squashfs.sort contains lib/live/mount/medium/live/filesystem.squashfs, which easily explains why we’re reading ahead this crazy amount of data. I think source:auto/config should filter out ^lib/live/mount/medium/ when it generates the readahead list from the SquashFS sort file.

#13 Updated by intrigeri 2017-12-16 08:15:31

  • % Done changed from 0 to 10
  • Feature Branch set to bugfix/14964-slow-boot

Got a tentative fix locally, will now test.

#14 Updated by intrigeri 2017-12-16 08:17:17

  • Subject changed from DVD boot in Tails 3.3 is extremely slow to Boot from slow medium in Tails 3.3 is extremely slow

#15 Updated by intrigeri 2017-12-16 10:07:19

  • Assignee changed from intrigeri to anonym
  • % Done changed from 10 to 50
  • QA Check set to Ready for QA
  • Type of work changed from Research to Code

Looks better with an ISO built from the topic branch!

In libvirt/QEMU:

root@amnesia:~# head -n2 /var/log/live/config.log 
live-config: readahead
79.5MiB 0:00:03 [21.6MiB/s] [================================>] 100%  

And on bare metal + USB, it takes 4-5 seconds and the boot feels soooo much faster that I did not bother measuring it nor testing on DVD. I certainly wouldn’t mind if you did while reviewing though :)

#16 Updated by anonym 2017-12-20 16:30:19

  • Status changed from In Progress to Fix committed
  • % Done changed from 50 to 100

Applied in changeset commit:086c0ca4291d25333841b0e2276adef361168b07.

#17 Updated by anonym 2017-12-20 16:32:54

  • Assignee deleted (anonym)
  • QA Check changed from Ready for QA to Pass

intrigeri wrote:
> […] I did not bother measuring it nor testing on DVD. I certainly wouldn’t mind if you did while reviewing though :)

Done, DVD boot is “fast” again! Code looks good => merged!

#18 Updated by intrigeri 2018-01-04 18:26:37

  • Target version changed from Tails_3.5 to Tails_3.4

#19 Updated by anonym 2018-01-09 20:52:07

  • Status changed from Fix committed to Resolved