Whamcloud - gitweb
LU-1934 ofd: implement precreate batching
authorMikhail Pershin <tappro@whamcloud.com>
Mon, 1 Oct 2012 17:17:48 +0000 (21:17 +0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Oct 2012 22:18:06 +0000 (18:18 -0400)
commita0a847fee6e30542bffb4e6860499b68cf515998
treec7a36f3935e501899b0fc76e259f4bc904d81eda
parent29e3fea6c7223f2640eb7229739e4d007274a8f6
LU-1934 ofd: implement precreate batching

Bulk precreate objects in a single tx handle.  For zfs this minimizes
the chance that the creates will be spread over multiple txgs.  This
can occur when the osts are under a concurrent write workload which
can consume bulk of the available space in a txg.

For ldiskfs this change shouldn't be harmful and the default value
can be set to 1 for ldiskfs if needed to get the previous behavior.

Change-Id: I81e310a8b630a1a29f3e017f6980901d6b6436fa
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mikhail Pershin <tappro@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/4147
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_fs.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_obd.c
lustre/ofd/ofd_objects.c