From: Andreas Dilger <adilger@dilger.ca>
To: andreas@rid-net.de
Cc: Greg Freemyer <greg.freemyer@gmail.com>,
k-mio@sx.jp.nec.com, linux-ext4@vger.kernel.org
Subject: Re: defragmentation of boot related files
Date: Thu, 26 Aug 2010 18:47:52 -0600 [thread overview]
Message-ID: <2076374F-7C3C-4A4A-831C-3BD698A90E69@dilger.ca> (raw)
In-Reply-To: <4C76CB9C.2060207@rid-net.de>
On 2010-08-26, at 14:16, andreas@rid-net.de wrote:
>>> Usage: e4defrag -r directory...| device...
>>> e4defrag -r base_file move_file...<--- new
>>>
>
> The new interface looks nice. As I see it's easy to implement cause only the main-function must be modified. If you have no objections, I will do it myself and send you the patch to review it.
>
>> I suspect the original idea would work better because it is more
>> likely to pack the libs / files into perfectly contiguous block
>> ranges.
>
> I don't know if it makes a difference for the block allocator. Even though you know the size of all files to be moved.
>
> For a better result, may it be possible to create a base_file whose inode is part of an empty block group?
There is a /proc/fs/ext4/*/inode_goal that will cause new inodes allocated in the filesystem to be after the specified goal inode.
I suppose it would also be possible to have e4defrag simply take an inode number in the form "<inode_number>" in place of "base_file", as debugfs does.
Cheers, Andreas
next prev parent reply other threads:[~2010-08-27 0:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-25 12:00 defragmentation of boot related files andreas
2010-08-26 8:50 ` Kazuya Mio
2010-08-26 18:10 ` Greg Freemyer
2010-08-26 20:16 ` andreas
2010-08-27 0:47 ` Andreas Dilger [this message]
2010-08-27 11:21 ` Kazuya Mio
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=2076374F-7C3C-4A4A-831C-3BD698A90E69@dilger.ca \
--to=adilger@dilger.ca \
--cc=andreas@rid-net.de \
--cc=greg.freemyer@gmail.com \
--cc=k-mio@sx.jp.nec.com \
--cc=linux-ext4@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 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).