From: Josef Bacik <josef@redhat.com>
To: Josef Bacik <josef@redhat.com>
Cc: Ahmet Inan <ainan@mathematik.uni-freiburg.de>,
Calvin Walton <calvin.walton@kepstin.ca>,
linux-btrfs@vger.kernel.org, Chris Mason <chris.mason@oracle.com>
Subject: Re: Boot speed/mount time regression with 3.4.0-rc2
Date: Thu, 12 Apr 2012 10:23:50 -0400 [thread overview]
Message-ID: <20120412142349.GI1924@localhost.localdomain> (raw)
In-Reply-To: <20120412133747.GE1924@localhost.localdomain>
On Thu, Apr 12, 2012 at 09:37:48AM -0400, Josef Bacik wrote:
> On Thu, Apr 12, 2012 at 11:22:51AM +0200, Ahmet Inan wrote:
> > On Wed, Apr 11, 2012 at 7:04 PM, Josef Bacik <josef@redhat.com> wro=
te:
> > > On Wed, Apr 11, 2012 at 05:26:29PM +0200, Ahmet Inan wrote:
> > >> On Tue, Apr 10, 2012 at 5:16 PM, Josef Bacik <josef@redhat.com> =
wrote:
> > >> > On Mon, Apr 09, 2012 at 05:20:46PM -0400, Calvin Walton wrote:
> > >> >> On Mon, 2012-04-09 at 16:54 -0400, Josef Bacik wrote:
> > >> >> > On Mon, Apr 09, 2012 at 01:10:04PM -0400, Calvin Walton wro=
te:
> > >> >> > > On Mon, 2012-04-09 at 11:53 -0400, Calvin Walton wrote:
> > >> >> > > > Hi,
> > >> >> > > >
> > >> >> > > > I have a system that's using a dracut-generated initram=
fs to mount a
> > >> >> > > > btrfs root. After upgrading to kernel 3.4.0-rc2 to test=
it out, I've
> > >> >> > > > noticed that the process of mounting the root filesyste=
m takes much
> > >> >> > > > longer with 3.4.0-rc2 than it did with 3.3.1 - nearly 3=
0 seconds slower!
> > >> >>
> > >> >> > > And the bisect results are in:
> > >> >> > > 285ff5af6ce358e73f53b55c9efadd4335f4c2ff is the first bad=
commit
> > >> >> > > commit 285ff5af6ce358e73f53b55c9efadd4335f4c2ff
> > >> >> > > Author: Josef Bacik <josef@redhat.com>
> > >> >> > > Date: =A0 Fri Jan 13 15:27:45 2012 -0500
> > >> >> > >
> > >> >> > > =A0 =A0 Btrfs: remove the ideal caching code>
> > >> >> >
> > >> >> > Ok can you give this a whirl? =A0You are going to have to b=
oot/reboot a few times
> > >> >> > to let the cache get re-generated again to make sure it's t=
aken effect, but
> > >> >> > hopefully this will help out. =A0Thanks,
> > >> >>
> > >> >> Unfortunately, it doesn't seem to help. Even after 3 or 4 reb=
oots with
> > >> >> this patch applied I'm still seeing the same delay.
> > >> >>
> > >> >
> > >> > Ok drop that previous patch and give this one a whirl, it help=
ed on my laptop.
> > >> > This is only =A0half of the problem AFAICS, but it's the easie=
r half to fix, in
> > >> > the meantime I need to lock down why we're not writing out cac=
he for a bunch of
> > >> > block groups, but thats trickier since the messages I need are=
spit out while
> > >> > I'm shutting down, so I need to get creative. =A0Let me know i=
f/how much this
> > >> > helps. =A0Thanks,
> > >>
> > >> i have tried your patch and my system still needs several minute=
s to boot
> > >> until it can be used.
> > >> Also tried to reboot several times - it doesn't look like its ge=
tting better.
> > >> The last thing the system does when its shutting down is a read-=
only
> > >> remount of "/" so no umount.
> > >> Booting was much faster before i pulled for-linus a few weeks ag=
o but
> > >> i couldn't find the time to bisect it yet ..
> > >>
> > >> please also look at the attached dmesg.txt.
> > >> this is an core i3 system with 2x2TB BTRFS RAID1 and lots of
> > >> home directories and snapshots.
> > >>
> > >> I'm going to test this patch on twenty more computers but with
> > >> smaller HDDs and less files and see if it helps to speed up thei=
r
> > >> boot times.
> > >>
> > >
> > > Ok looks like you are running into a different problem. =A0Could =
you maybe run
> > > bootchart and upload the resulting png somewhere so I can look an=
d see what all
> > > is running while you boot? =A0Thanks,
> >=20
> > http://aam.mathematik.uni-freiburg.de/IAM/homepages/ainan/bootchart=
=2Epng
> >=20
> > i have tried your patch now on the twenty more computers i mentione=
d and
> > still it takes a minute to remount rw "/" on those, even after seve=
ral reboots.
> >=20
>=20
> Oops responding to the whole list this time..
>=20
> Um ouch your system appears to not be doing anything for like 300 sec=
onds but
> sitting there. Can you hook up a console and capture sysrq+w while t=
hats going
> on? Also you are mounting with -o space_cache right? Can I see your=
dmesg to
> make sure it's doing what it's supposed to? Thanks,
>=20
Ok you don't actually have space_cache enabled it looks like, make sure=
to add
space_cache to your fstab so it gets enabled, and then reboot a few tim=
es to
make sure everything gets cached right and then it should help. 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
next prev parent reply other threads:[~2012-04-12 14:23 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 [this message]
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
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=20120412142349.GI1924@localhost.localdomain \
--to=josef@redhat.com \
--cc=ainan@mathematik.uni-freiburg.de \
--cc=calvin.walton@kepstin.ca \
--cc=chris.mason@oracle.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.