All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robbie Smith <zoqaeski@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Btrfs device initialisation is quite slow
Date: Sat, 14 Nov 2015 15:38:17 +1100	[thread overview]
Message-ID: <1447475897.1804.5.camel@gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2015-11-14  4:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-14  4:38 Robbie Smith [this message]
2015-11-14 15:17 ` Btrfs device initialisation is quite slow Henk Slager

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447475897.1804.5.camel@gmail.com \
    --to=zoqaeski@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.