Project

General

Profile

Bug #14964

Boot from slow medium in Tails 3.3 is extremely slow

Added by anonym about 1 year ago. Updated 11 months ago.

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

100%

QA Check:
Pass
Feature Branch:
bugfix/14964-slow-boot
Type of work:
Code
Blueprint:
Starter:
Affected tool:

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.

journalctl-a.log View (382 KB) anonym, 11/14/2017 09:46 PM

readahead-list-Tails-3.2 (201 KB) intrigeri, 12/15/2017 06:46 AM


Related issues

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

Associated revisions

Revision 6e259c16 (diff)
Added by anonym about 1 year ago

Tails 3.3 release notes: add known issue. (refs: #14964)

Revision ec1bfceb (diff)
Added by intrigeri about 1 year ago

Add a manual test for boot time on USB (refs: #14964))

Revision 659442fb (diff)
Added by intrigeri about 1 year ago

Don't include anything under /lib/live/mount/medium/ in the readahead list (refs: #14964)

Revision 086c0ca4
Added by anonym 12 months ago

Merge remote-tracking branch 'origin/bugfix/14964-slow-boot' into stable

Fix-committed: #14964

History

#1 Updated by anonym about 1 year ago

  • Status changed from Confirmed to In Progress

#2 Updated by intrigeri about 1 year ago

#3 Updated by intrigeri about 1 year ago

  • Priority changed from Normal to Elevated

#4 Updated by intrigeri about 1 year ago

  • Priority changed from Elevated to Normal

#5 Updated by intrigeri about 1 year ago

  • Assignee changed from anonym to intrigeri

I'll ask Help Desk if users noticed.

#6 Updated by intrigeri about 1 year ago

  • 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 about 1 year ago

  • 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 about 1 year ago

  • 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 about 1 year ago

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

#10 Updated by mercedes508 about 1 year ago

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 about 1 year ago

  • Status changed from Confirmed to In Progress

#12 Updated by intrigeri about 1 year ago

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 about 1 year ago

  • % 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 about 1 year ago

  • 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 about 1 year ago

  • 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 12 months ago

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

#17 Updated by anonym 12 months ago

  • 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 12 months ago

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

#19 Updated by anonym 11 months ago

  • Status changed from Fix committed to Resolved

Also available in: Atom PDF