[Ocfs2-devel] [PATCH 1/1] ocfs2: Local alloc window size
changeable via mount option
Mark Fasheh
mark.fasheh at oracle.com
Mon Dec 10 13:39:23 PST 2007
On Fri, Nov 30, 2007 at 03:59:53PM -0800, Sunil Mushran wrote:
> Local alloc is a performance optimiztion in ocfs2 in which a node
> takes a window of bits from the global bitmap and then uses that for
> all small local allocations. This window size is fixed to 8MB currently.
> This patch allows users to specify the window size in MB including
> disabling it by passing in 0. If the number specified is too large,
> the fs will use the default value of 8MB.
>
> mount -o localalloc=X /dev/sdX /mntpoint
>
> Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
> ---
> fs/ocfs2/localalloc.c | 41 +++++++++++++++++++++++++++++------------
> fs/ocfs2/ocfs2.h | 1 +
> fs/ocfs2/ocfs2_fs.h | 8 ++++++++
> fs/ocfs2/suballoc.c | 5 +++--
> fs/ocfs2/super.c | 17 +++++++++++++++++
> 5 files changed, 58 insertions(+), 14 deletions(-)
We need to update the "Mount options" list in
Documentation/filesystems/ocfs2.txt as well.
Otherwise, this looks fine.
--Mark
--
Mark Fasheh
Senior Software Developer, Oracle
mark.fasheh at oracle.com
More information about the Ocfs2-devel
mailing list