From: Stephan Kulow <coolo@suse.de>
To: Theodore Tso <tytso@mit.edu>
Cc: linux-ext4@vger.kernel.org
Subject: Re: file allocation problem
Date: Thu, 16 Jul 2009 19:43:21 +0200 [thread overview]
Message-ID: <200907161943.21575.coolo@suse.de> (raw)
In-Reply-To: <20090716155832.GA6605@mit.edu>
On Thursday 16 July 2009 17:58:32 Theodore Tso wrote:
> On Thu, Jul 16, 2009 at 01:31:17PM +0200, Stephan Kulow wrote:
> > Hi,
> >
> > I played around with ext4 online defrag on 2.6.31-rc3 and noticed a
> > problem. The core is this:
>
> Was your filesystem originally an ext3 filesystme which was converted
> over to ext4? What features are currently enabled (sending a copy of
Yes, it was converted quite some time ago.
> the output of "dumpe2fs -h /dev/XXX" would be helpful.)
Filesystem volume name: <none>
Last mounted on: /root
Filesystem UUID: ec4454af-a8db-42ad-9627-19c9c17a0220
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype
needs_recovery extent sparse_super large_file
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 853440
Block count: 3409788
Reserved block count: 170489
Free blocks: 1156411
Free inodes: 615319
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 832
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8128
Inode blocks per group: 508
Filesystem created: Fri Dec 12 17:01:57 2008
Last mount time: Thu Jul 16 19:30:26 2009
Last write time: Thu Jul 16 19:30:26 2009
Mount count: 718
Maximum mount count: -1
Last checked: Thu Jan 29 15:01:57 2009
Check interval: 0 (<none>)
Lifetime writes: 5211 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 650850
Default directory hash: half_md4
Directory Hash Seed: a262693d-9659-4212-8e5b-5901140edff8
Journal backup: inode blocks
Journal size: 128M
>
> If it is the case that this was originally an ext3 filesystem,
> e4defrag does have some definite limitations that will prevent it from
> doing a great job in such a case. I'm guessing that's what's going on
> here.
My problem is not so much with what e4defrag does, but the fact that
a new file I create with cp(1) contains 34 extents.
>
> > Now that I call fragmented! Calling e4defrag again gives me
> > 34->28 and now it moved _parts_
>
> I'm not sure what you mean by moving _parts_?
It moved a couple of blocks from 6XXX to 10XXX and most extents stayed in the
area where they were (I guess close to the rest of /usr/bin?)
Greetings, Stephan
next prev parent reply other threads:[~2009-07-16 17:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 11:31 file allocation problem Stephan Kulow
2009-07-16 15:58 ` Theodore Tso
2009-07-16 17:43 ` Stephan Kulow [this message]
2009-07-17 1:12 ` Theodore Tso
2009-07-17 4:32 ` Andreas Dilger
2009-07-17 5:31 ` Stephan Kulow
2009-07-17 5:17 ` Stephan Kulow
2009-07-17 14:26 ` Theodore Tso
2009-07-17 18:02 ` Stephan Kulow
2009-07-17 21:14 ` Andreas Dilger
2009-07-18 21:16 ` Stephan Kulow
2009-07-19 22:45 ` Ron Johnson
2009-07-20 21:18 ` Andreas Dilger
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=200907161943.21575.coolo@suse.de \
--to=coolo@suse.de \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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).