From: Josef Bacik <josef@redhat.com>
To: Chester <somethingsome2000@gmail.com>
Cc: Calvin Walton <calvin.walton@kepstin.ca>, linux-btrfs@vger.kernel.org
Subject: Re: Boot speed/mount time regression with 3.4.0-rc2
Date: Wed, 11 Apr 2012 14:24:26 -0400 [thread overview]
Message-ID: <20120411182426.GD2506@localhost.localdomain> (raw)
In-Reply-To: <CAAE6i0jU99ySXNQzyed+YotRzXcieUzDCZJU0Ju0r0b+AxZjhg@mail.gmail.com>
On Wed, Apr 11, 2012 at 11:38:33AM -0500, Chester wrote:
> On Mon, Apr 9, 2012 at 10:53 AM, Calvin Walton <calvin.walton@kepstin=
=2Eca> wrote:
> >
> > Hi,
> >
> > I have a system that's using a dracut-generated initramfs to mount =
a
> > btrfs root. After upgrading to kernel 3.4.0-rc2 to test it out, I'v=
e
> > noticed that the process of mounting the root filesystem takes much
> > longer with 3.4.0-rc2 than it did with 3.3.1 - nearly 30 seconds sl=
ower!
> >
> > Does anyone have any ideas? I'm going to try bisecting the issue to=
see
> > if I can narrow down the cause. I've included excerpts from dmesg o=
f the
> > bad and good kernels here, and attached the complete dmesg from the=
bad
> > kernel, in case it has anything interesting that I've trimmed out h=
ere.
> >
> > slow:
> > [ =A0 =A00.000000] Linux version 3.4.0-rc2 (cwalton@ayu) (gcc versi=
on 4.6.3
> > (Exherbo gcc-4.6.3) ) #57 SMP PREEMPT Mon Apr 9 11:19:43 EDT 2012
> > [ =A0 =A00.000000] Command line:
> > root=3DUUID=3D43969cd0-4aca-4297-bfbe-952a692f7d55
> > rootflags=3Dsubvolid=3D262,compress=3Dlzo,autodefrag,space_cache,in=
ode_cache,noatime
> > mtrr_chunk_size=3D512M quiet
> > <snip>
> > [ =A0 =A01.058257] udevd[701]: starting version 182
> > [ =A0 =A01.389606] device label Linux data devid 1 transid 611923 /=
dev/sda4
> > [ =A0 =A01.498659] dracut: Checking, if btrfs device complete
> > [ =A0 =A01.644808] device label Linux data devid 1 transid 611923 /=
dev/sda4
> > [ =A0 =A01.647993] btrfs: disk space caching is enabled
> > [ =A0 =A02.180836] device label Linux data devid 1 transid 611923 /=
dev/sda4
> > [ =A0 =A02.181663] btrfs: use lzo compression
> > [ =A0 =A02.181667] btrfs: enabling auto defrag
> > [ =A0 =A02.181670] btrfs: enabling inode map caching
> > [ =A0 =A02.181672] btrfs: disk space caching is enabled
> > [ =A0 =A02.697845] dracut: Checking btrfs:
> > /dev/disk/by-uuid/43969cd0-4aca-4297-bfbe-952a692f7d55
> > [ =A0 =A02.699999] dracut: trying to mount
> > /dev/disk/by-uuid/43969cd0-4aca-4297-bfbe-952a692f7d55
> > [ =A0 =A02.702637] device label Linux data devid 1 transid 611923 /=
dev/sda4
> > [ =A0 =A02.704376] btrfs: disk space caching is enabled
> > [ =A0 =A03.081720] dracut: btrfs:
> > /dev/disk/by-uuid/43969cd0-4aca-4297-bfbe-952a692f7d55 is clean
> > [ =A0 29.934639] dracut: Remounting
> > /dev/disk/by-uuid/43969cd0-4aca-4297-bfbe-952a692f7d55 with -o
> > subvolid=3D262,compress=3Dlzo,autodefrag,space_cache,inode_cache,no=
atime,ro
> > [ =A0 29.936810] device label Linux data devid 1 transid 611926 /de=
v/sda4
> > [ =A0 29.937720] btrfs: use lzo compression
> > [ =A0 29.937726] btrfs: enabling auto defrag
> > [ =A0 29.937733] btrfs: enabling inode map caching
> > [ =A0 29.937735] btrfs: disk space caching is enabled
> > [ =A0 30.388066] dracut: Mounted root filesystem /dev/sda4
> > [ =A0 30.461884] dracut: Switching root
> > [ =A0 31.241729] udevd[1322]: starting version 182
> > [ =A0 31.422905] btrfs: use lzo compression
> > [ =A0 31.422909] btrfs: enabling auto defrag
> > [ =A0 31.422913] btrfs: enabling inode map caching
> > [ =A0 31.422915] btrfs: disk space caching is enabled
> >
> > vs fast:
> > [ =A0 =A00.000000] Linux version 3.3.1 (cwalton@ayu) (gcc version 4=
=2E6.3
> > (Exherbo gcc-4.6.3) ) #53 SMP PREEMPT Wed Apr 4 01:20:47 EDT 2012
> > [ =A0 =A00.000000] Command line:
> > root=3DUUID=3D43969cd0-4aca-4297-bfbe-952a692f7d55
> > rootflags=3Dsubvolid=3D262,compress=3Dlzo,autodefrag,space_cache,in=
ode_cache,noatime
>=20
> Calvin, I noticed that you have the space_cache mount option set. I
> remember josef saying that it is a one-time option where it's a
> permanent change after mounting for the first time, therefore each
> subsequent mount will not require the option. In fact, if the option
> is specified again, the space_cache is reset.
>=20
> Is this still up-to-date info?
>=20
No you can leave space_cache set, there's another option for resetting =
the space
cache, clear_cache iirc. Thanks,
Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2012-04-11 18:24 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-09 15:53 Boot speed/mount time regression with 3.4.0-rc2 Calvin Walton
2012-04-09 16:08 ` cwillu
2012-04-09 17:10 ` Calvin Walton
2012-04-09 17:14 ` Josef Bacik
2012-04-09 20:54 ` Josef Bacik
2012-04-09 21:20 ` Calvin Walton
2012-04-10 13:08 ` Josef Bacik
2012-04-10 15:16 ` Josef Bacik
2012-04-10 16:04 ` Calvin Walton
2012-04-10 16:29 ` David Sterba
2012-04-10 16:34 ` Calvin Walton
2012-04-11 15:26 ` Ahmet Inan
2012-04-11 17:04 ` Josef Bacik
2012-04-12 9:22 ` Ahmet Inan
2012-04-12 13:37 ` Josef Bacik
2012-04-12 14:23 ` Josef Bacik
2012-04-13 6:26 ` Ahmet Inan
2012-04-13 6:49 ` cwillu
2012-04-13 11:22 ` Ahmet Inan
[not found] ` <CAFDW0jKMEQ+oMN41euh1cMy4h+6Qntt5UL9+0HZw4r9SpDJVvQ@mail.gmail.com>
2012-04-13 12:57 ` cwillu
2012-04-13 13:20 ` Ahmet Inan
2012-04-13 13:47 ` Josef Bacik
2012-04-21 20:54 ` Ahmet Inan
2012-04-22 7:59 ` Sergei Trofimovich
2012-04-22 9:16 ` Ahmet Inan
2012-04-22 13:57 ` Ahmet Inan
2012-05-03 13:40 ` Ahmet Inan
2012-04-11 16:38 ` Chester
2012-04-11 18:24 ` Josef Bacik [this message]
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=20120411182426.GD2506@localhost.localdomain \
--to=josef@redhat.com \
--cc=calvin.walton@kepstin.ca \
--cc=linux-btrfs@vger.kernel.org \
--cc=somethingsome2000@gmail.com \
/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.