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

Junxiao Bi junxiao.bi at oracle.com
Sun Sep 13 19:44:40 PDT 2015


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




More information about the Ocfs2-test-devel mailing list