« PNFS Prototype code. | Main | Omni Group. »
http://blogs.sun.com/macrbg/date/20070709 Monday July 09, 2007

mds_default_stripe.

For those adventurous types the following source code patch will allow you to
alter the stripe width.


--- /nfs41-proto/usr/src/uts/common/fs/nfs/nfs4_state.c
+++ /issue_102/usr/src/uts/common/fs/nfs/nfs4_state.c
@@ -23,7 +23,7 @@
* Use is subject to license terms.
*/
-#pragma ident	"@(#)nfs4_state.c	1.52	07/07/03 SMI"
+#pragma ident	"%Z%%M%	%I%	%E% SMI"
#include <sys/systm.h>
#include <sys/kmem.h>
@@ -4267,6 +4267,8 @@
	}
}
+int mds_default_stripe = 32;
+
mds_layout_t *
mds_gen_default_layout()
{
@@ -4283,7 +4285,7 @@
		return (NULL);
	args.lo_arg.loid = 1;
-	args.lo_arg.lo_stripe_unit = 32 * 1024;
+	args.lo_arg.lo_stripe_unit = mds_default_stripe * 1024;
	rw_enter(&mds_layout_lock, RW_WRITER);

setting the value in /etc/system to alter:

set nfssrv:mds_default_stripe = 64

--

happy pnfs-ing..



Posted by macrbg [NFS] ( July 09, 2007 05:07 PM ) Permalink
Comments:

Post a Comment:
Comments are closed for this entry.