[Ocfs2-test-devel] [PATCH 54/59] discontig: use local alloc when active discontig block group

Eric Ren zren at suse.com
Wed Sep 23 00:35:22 PDT 2015


Reviewed-by: Eric Ren <zren at suse.com>
Thanks.

On Mon, Sep 14, 2015 at 10:44:40AM +0800, Junxiao Bi wrote: 
> Lots of small files will be allocated when active discontig block
> group, if not use local alloc, the data will be allocated from
> global bitmap, since the chain in global bitmap are almost full and
> with the nearly the same free bitmap at that time, so for every cluster,
> the chain with most free bitmap will be used, this can cause a case
> like this, cluster A allocated from chain X, and next cluster A+1
> allocated from chain Y, so these small files are full of fragments.
> This is not wanted, use local alloc to avoid this.
> 
> Signed-off-by: Junxiao Bi <junxiao.bi at oracle.com>
> ---
>  .../discontig_bg_test/activate_discontig_bg.sh     |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/programs/discontig_bg_test/activate_discontig_bg.sh b/programs/discontig_bg_test/activate_discontig_bg.sh
> index 14b57ea..4a65915 100755
> --- a/programs/discontig_bg_test/activate_discontig_bg.sh
> +++ b/programs/discontig_bg_test/activate_discontig_bg.sh
> @@ -40,7 +40,7 @@ TYPE=inode
>  SLOTS=1
>  JOURNALSIZE=0
>  LABELNAME="ocfs2-discontig-bg-tests"
> -MOUNT_OPTS="localalloc=0"
> +MOUNT_OPTS=
>  DEVICE=
>  WORK_PLACE=
>  
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Ocfs2-test-devel mailing list
> Ocfs2-test-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-test-devel
> 



More information about the Ocfs2-test-devel mailing list