Skip to content

Commit

Permalink
discontig: use local alloc when active discontig block group
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Eric Ren <[email protected]>
  • Loading branch information
biger410 authored and Eric Ren committed Oct 9, 2015
1 parent e4e3a4f commit 91dace8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/discontig_bg_test/activate_discontig_bg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TYPE=inode
SLOTS=1
JOURNALSIZE=0
LABELNAME="ocfs2-discontig-bg-tests"
MOUNT_OPTS="localalloc=0"
MOUNT_OPTS=
DEVICE=
WORK_PLACE=

Expand Down

0 comments on commit 91dace8

Please sign in to comment.