« Previous day (Jul 8, 2007) | Main | Next day (Jul 9, 2007) »
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

PNFS Prototype code.

One thing that may not be very apparent with the prototype code is that
the MDS automatically generates a default layout based on the data-servers
that have 'reported in' with it. The stripe count is the known data-servers and
a default value of 32k for stripe width. This information is lost each time the
MDS is rebooted.

Technorati Tags: , , ,



Posted by macrbg [NFS] ( July 09, 2007 07:39 AM ) Permalink