From: Shridhar Daithankar <ghodechhap@ghodechhap.net>
To: george@chinilu.com
Cc: Duncan <1i5t5.duncan@cox.net>, linux-btrfs@vger.kernel.org
Subject: Re: autodefrag by default, was: Lots of harddrive chatter
Date: Mon, 22 Jul 2013 09:41:12 +0530 [thread overview]
Message-ID: <3865098.S4o5hbA3km@bheem> (raw)
In-Reply-To: <51ECACC6.1090104@chinilu.com>
On Sunday, July 21, 2013 08:53:42 PM George Mitchell wrote:
> > system files typically are installed once and never rewritten in place, so
> > they should not be much fragmented to begin with.
> >
> > now their directory objects, is a different story and so is things like
> > systemd journal, log files, or database files.
>
> Never rewritten in place? I wouldn't go that far. In the case of many
> distros there is a continual flow of updates which results in some
> degree of data churning throughout the system filesystems. Just a kernel
> update, for example, can affect a rather large number of files and
> directories with new writes while application updates (KDE or even Gnome
> for example) can cause a large number of files to be rewritten in place.
While it is true that large number of files are changed with each update, most
of the update delete the existing files and install new one. That does not
lead to fragmentation of a file.
Unless the packages are patching the files in place(AFAIK, even delta RPMs
patch the RPM and not the individual files), it would not lead to the
defragmentation that is problematic on btrfs.
There are two types of defragmentations. first is where files are continually
added/deleted to the file system, e.g. a mail server. IME btrfs handles that
quite well.
Another is where a file is constantly updated in place e.g. a
postgresql/sqlite database. In the second case, COW nature of btrfs causes the
defragmentation which directly affects the performance, at least on spinning
hard disks.
--
Regards
Shridhar
next prev parent reply other threads:[~2013-07-22 4:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-20 15:15 Lots of harddrive chatter on after booting with btrfs on root (slow boot) Jason Russell
2013-07-20 15:52 ` George Mitchell
2013-07-20 22:14 ` Lukas Martini
2013-07-20 22:47 ` Gabriel de Perthuis
2013-07-21 10:38 ` Duncan
2013-07-21 16:20 ` autodefrag by default, was: Lots of harddrive chatter Chris Murphy
[not found] ` < pan$3c802$83940fc4$86279b1e$4ddf0e4e@cox.net>
[not found] ` < 09A15D35-4874-4650-93F1-1E151076C498@colorremedies.com>
2013-07-21 22:01 ` Duncan
2013-07-21 23:44 ` George Mitchell
2013-07-22 3:37 ` Shridhar Daithankar
2013-07-22 3:53 ` George Mitchell
2013-07-22 4:11 ` Shridhar Daithankar [this message]
[not found] ` < pan$7e18b$b2c36a61$b1f22c8c$6c61ba6e@cox.net>
[not found] ` <51EC7249.3010005@chinilu.com >
2013-07-22 12:09 ` Duncan
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=3865098.S4o5hbA3km@bheem \
--to=ghodechhap@ghodechhap.net \
--cc=1i5t5.duncan@cox.net \
--cc=george@chinilu.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.