[Ocfs2-tools-devel] [PATCH 4/4] defrag.ocfs2: Pass 3: Defrag filesystem

Goldwyn Rodrigues rgoldwyn at gmail.com
Fri Jul 23 11:36:28 PDT 2010


Hi Joel,

On Fri, Jul 23, 2010 at 12:23 PM, Joel Becker <Joel.Becker at oracle.com> wrote:
> On Tue, May 11, 2010 at 11:02:45PM -0500, Goldwyn Rodrigues wrote:
>> Defrags the filesystem. For each group_desc, scan for holes.
>> If a hole is found, try and find extent rec which fits the hole best
>> and is greater than the block number of the hole. Move the data in
>> the hole.
>
>        This seems like a suboptimal scheme.  It's going to move random
> things to random places.

What will be an optimal scheme?

The goal is to move data from the latter of the device to the start of
device. This is defragging the filesystem as opposed to defragging the
individual files or directories. IOW, According to your mail on Mar
22, 2010 "type 2" defragging. Eventually, it would create more free
gd's and larger blocks available for allocation.


-- 
Goldwyn



More information about the Ocfs2-tools-devel mailing list