From: Theodore Ts'o <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: Bron Gondwana <brong@fastmail.fm>,
linux-ext4@vger.kernel.org, Rob Mueller <robm@fastmail.fm>
Subject: Re: fallocate creating fragmented files
Date: Wed, 30 Jan 2013 15:14:12 -0500 [thread overview]
Message-ID: <20130130201412.GA32724@thunk.org> (raw)
In-Reply-To: <510942C3.1070503@redhat.com>
On Wed, Jan 30, 2013 at 09:56:51AM -0600, Eric Sandeen wrote:
> Ok, TBH I'd not certain why the allocator is doing just what it's doing.
> There are quite a lot of larger-than-3-block free spaces. OTOH, it might be
> trying for some kind of locality.
Yeah, I'll bet that's what's going on.
Can you show us the the inode number for each of the test files along
with the filefrag -v output? What I suspect is going on is that the
kernel is trying too hard to start the block allocation in the same
block group which was used for the inode number.
What we probably need to do is to have some hueristic where if we know
there are plenty of block groups with lots of large contiguous free
space, and the block group which we are preferring either because it's
the same one as the inode number, or because it's where we had
previously done the last block allocation for the file, and we the
user requests a large fallocated region, that it's better to switch
over to one of the other block groups with lots and lots of free
space.
- Ted
next prev parent reply other threads:[~2013-01-30 20:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 5:46 fallocate creating fragmented files Bron Gondwana
2013-01-30 6:05 ` Eric Sandeen
2013-01-30 6:35 ` Bron Gondwana
2013-01-30 15:56 ` Eric Sandeen
2013-01-30 20:14 ` Theodore Ts'o [this message]
2013-01-30 21:21 ` Robert Mueller
2013-01-30 21:43 ` Theodore Ts'o
2013-01-30 22:40 ` Bron Gondwana
2013-01-30 22:49 ` Robert Mueller
2013-01-30 22:51 ` Robert Mueller
2013-02-01 11:33 ` Bron Gondwana
2013-02-01 13:55 ` Theodore Ts'o
2013-02-02 10:50 ` Bron Gondwana
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=20130130201412.GA32724@thunk.org \
--to=tytso@mit.edu \
--cc=brong@fastmail.fm \
--cc=linux-ext4@vger.kernel.org \
--cc=robm@fastmail.fm \
--cc=sandeen@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).