All of lore.kernel.org
 help / color / mirror / Atom feed
* Btrfs device initialisation is quite slow
@ 2015-11-14  4:38 Robbie Smith
  2015-11-14 15:17 ` Henk Slager
  0 siblings, 1 reply; 2+ messages in thread
From: Robbie Smith @ 2015-11-14  4:38 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]

Hey all

I've been trying to figure out why my system (home desktop) is taking
so long to boot. Systemd-analyze tells me that my root filesystem
partition (which is btrfs) takes ~11 seconds to become active, and I'm
curious as to why and whether or not I can optimise this.

The primary disk has 4 partitions: a EFI/BIOS boot partion (for GRUB);
a /boot partition (ext4); a swap partition; and the root partition. The
disk itself is not particularly large (320 GB), and I'm using
subvolumes to emulate partitions in btrfs. There are three top-level
subvolumes, for /, /home, and /var, none of which have quotas, and I'm
not at present doing snapshots because I backup every day to an
external drive formatted with ext4. 

I've got a second 5 TB drive for multimedia that is also btrfs, but it
only takes ~3 seconds to come online. I had been using a number of bind
mounts from the multimedia drive to my home folder, so that $HOME/music
and $HOME/videos point to the library, and replacing them with symlinks
reduced the time by ~3 seconds, but it still doesn't account for why
the root device takes so long.

My fstab contains the following:

# /dev/sdc4 LABEL=filesystem
UUID=4ec80601-4799-4fa8-a711-0171c180f25b /
btrfs rw,noatime,space_cache,autodefrag,subvol=rootvol 0 0

# /dev/sdc4 LABEL=filesystem
UUID=4ec80601-4799-4fa8-a711-0171c180f25b /home btrfs rw,noatime,space_cache,autodefrag,subvol=homevol 0 0

# /dev/sdc4 LABEL=filesystem
UUID=4ec80601-4799-4fa8-a711-0171c180f25b /var btrfs rw,noatime,space_cache,autodefrag,subvol=var 0 0

# /dev/sdc2 LABEL=boot
UUID=ca281471-0aac-4090-8660-33b8b9fee5a3 /boot ext4 rw,relatime,data=ordered 0 2

# /dev/sdb1 LABEL=library
UUID=97226949-50e0-4a78-899e-863f5b436bcc /mnt/library btrfs rw,noatime,space_cache,autodefrag 0 0


Can anyone offer any insights or advice?

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-14 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-14  4:38 Btrfs device initialisation is quite slow Robbie Smith
2015-11-14 15:17 ` Henk Slager

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.