Re: [Cluster-devel] [PATCH 3/7] dlm: Use seq_is_full - remove seq_printf returns

2014-10-29 Thread Petr Mladek
On Mon 2014-10-27 16:17:24, Steven Rostedt wrote: Note, I've started with Joe's patches and I'm massaging them for something I can work with. On Tue, 30 Sep 2014 12:34:35 +0200 Petr Mladek pmla...@suse.cz wrote: - rv = seq_printf(s, \\nInvalid master %d\n, -

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

2014-10-29 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. It also corrects the criteria on the final loop,

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

2014-10-29 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 1/3] GFS2: Set of distributed preferences for rgrps

2014-10-29 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 2/3] GFS2: Only increase rs_sizehint

2014-10-29 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

[Cluster-devel] [RFA][PATCH 5/8] dlm: Remove seq_printf() return checks and use seq_has_overflowed()

2014-10-29 Thread Steven Rostedt
From: Joe Perches j...@perches.com [ REQUEST FOR ACKS ] The seq_printf() return is going away soon and users of it should check seq_has_overflowed() to see if the buffer is full and will not accept any more data. Convert functions returning int to void where seq_printf() is used. Link: