[Cluster-devel] [GFS2 PATCH 1/3] GFS2: Set of distributed preferences for rgrps

2014-10-24 Thread Bob Peterson
This patch tries to use the journal numbers to evenly distribute which node prefers which resource group for block allocations. This is to help performance. --- fs/gfs2/incore.h | 1 + fs/gfs2/rgrp.c | 66 +++- 2 files changed, 62

[Cluster-devel] [GFS2 PATCH 3/3] GFS2: If we use up our block reservation, request more next time

2014-10-24 Thread Bob Peterson
If we run out of blocks for a given multi-block allocation, we obviously did not reserve enough. We should reserve more blocks for the next reservation to reduce fragmentation. This patch increases the size hint for reservations when they run out. --- fs/gfs2/rgrp.c | 3 +++ fs/gfs2/rgrp.h | 1 +

[Cluster-devel] [GFS2 PATCH 0/3] Patches to reduce GFS2 fragmentation

2014-10-24 Thread Bob Peterson
Hi, This is a revised version of my patches to improve GFS2 performance and reduce GFS2 fragmentation. As suggested by Steve Whitehouse, the first patch has been modified to base its distribution of resource groups on the number of journals. Also as suggested, the patch that kept file close from

[Cluster-devel] [GFS2 PATCH 2/3] GFS2: Only increase rs_sizehint

2014-10-24 Thread Bob Peterson
If an application does a sequence of (1) big write, (2) little write we don't necessarily want to reset the size hint based on the smaller size. The fact that they did any big writes implies they may do more, and therefore we should try to allocate bigger block reservations, even if the last few