All of lore.kernel.org
 help / color / mirror / Atom feed
From: yzb3@wp.pl
To: Shridhar Daithankar <ghodechhap@ghodechhap.net>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Odp: Re: Btrfs might be gradually slowing the boot process
Date: Fri, 08 Nov 2013 22:49:36 +0100	[thread overview]
Message-ID: <527d5c70932ee4.70951641@wp.pl> (raw)

On Friday, November 08, 2013 07:35:18 PM yzb3@wp.pl wrote:
> Hello,
> 
> I recently noticed that my boot has become slower - it took around 29s,
> while at the beginning it was ~6s. I thought it was an issue with systemd,
> because it failed to properly indicate at which stage the slowdown occurred
> and how long it took. I rolled back to a pretty fresh root subvolume and
> the boot was fast again. However, after several reboots it started lagging
> again (10s? preposterous!). I decided to try the *clear_cache* mount
> option; it was only a guess, but it did speed the boot to the proper ~6s.
> 
> The question is - why? My filesystem is really small - I see no reason 
for a
> 5x boot slowdown. Is this a known issue? I will be glad to give any
> additional details about my fs.

>> Have you tried defragmenting everything, including directory objects? despite 
>> of small amount of data, it could be massively fragmented, slowing down 
>> everything.
>> 
>> HTH

Would the problem have disappeared by just clearing the cache if there were so many extents? I remember that the defrag is not recursive - can you tell me how to make it process everything? Or to just list the number of extents? In the meantime this is the output of btrfs fi df /:

Data: total=49.01GB, used=48.53GB
System, DUP: total=8.00MB, used=12.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=1.00GB, used=515.11MB
Metadata: total=8.00MB, used=0.00

and df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       932G   50G  881G   6% /
dev             3,9G     0  3,9G   0% /dev
run             3,9G  560K  3,9G   1% /run
tmpfs           3,9G  136K  3,9G   1% /dev/shm
tmpfs           3,9G     0  3,9G   0% /sys/fs/cgroup
tmpfs           3,9G  8,0K  3,9G   1% /tmp
/dev/sda2       932G   50G  881G   6% /home



                 reply	other threads:[~2013-11-08 21:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=527d5c70932ee4.70951641@wp.pl \
    --to=yzb3@wp.pl \
    --cc=ghodechhap@ghodechhap.net \
    --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.