[Pvfs2-cvs] commit by slang in pvfs2/src/io/flow: flow.c flow.h

CVS commit program cvs at parl.clemson.edu
Tue Aug 15 16:24:26 EDT 2006


Update of /projects/cvsroot/pvfs2/src/io/flow
In directory parlweb1:/tmp/cvs-serv18021/src/io/flow

Modified Files:
	flow.c flow.h 
Log Message:
[phil]: flow-proto-tuning: This patch adds "FlowBufferSizeBytes" and "FlowBuffersPerFlow" options to the configuration file format.  They allow you to specify the buffer size that the default flow protocol will use as well as the maximum number of buffers to use per flow.  Note that if you change either of these parameters, then you need to remount any active clients so that they pick up the configuration change before performing any I/O.

[phil]: max-aio: This patch adds "TroveMaxConcurrentIO" to the configuration file format.  It allows you to specify the maximum number of I/O operations that trove will allow to proceed concurrently (currently 16).  Note from the previous email regarding AIO that depending on your access pattern, AIO may queue all of your operations anyway regardless of this setting.  It probably doesn't have much effect unless you are accessing more than one file at a time, or if you are using an alternative to the stock AIO implementation.


Index: flow.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/flow/flow.c,v
diff -p -u -r1.52 -r1.53
--- flow.c	28 Jun 2006 21:03:08 -0000	1.52
+++ flow.c	15 Aug 2006 20:24:25 -0000	1.53
@@ -306,6 +306,8 @@ void PINT_flow_reset(flow_descriptor *fl
     flow_d->aggregate_size = -1;
     flow_d->state = FLOW_INITIAL;
     flow_d->type = FLOWPROTO_DEFAULT;
+    flow_d->buffers_per_flow = -1;
+    flow_d->buffer_size = -1;
 
     flow_d->flow_mutex = (tmp_mutex ? tmp_mutex : gen_mutex_build());
     assert(flow_d->flow_mutex);

Index: flow.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/flow/flow.h,v
diff -p -u -r1.35 -r1.36
--- flow.h	14 Dec 2005 21:50:25 -0000	1.35
+++ flow.h	15 Aug 2006 20:24:25 -0000	1.36
@@ -120,6 +120,10 @@ struct flow_descriptor
     /* information about the datafile that this flow will access */
     PINT_request_file_data file_data;
 
+    /* the buffer settings may be ignored by some protocols */
+    int buffer_size;            /* buffer size to use */
+    int buffers_per_flow;       /* number of buffers to allow per flow */
+
 	/***********************************************************/
     /* fields that can be read publicly upon completion */
 



More information about the Pvfs2-cvs mailing list