[Pvfs2-cvs] commit by slang in pvfs2/src/io/trove: trove.c trove.h
CVS commit program
cvs at parl.clemson.edu
Tue Aug 15 16:24:26 EDT 2006
Update of /projects/cvsroot/pvfs2/src/io/trove
In directory parlweb1:/tmp/cvs-serv18021/src/io/trove
Modified Files:
trove.c trove.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: trove.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove.c,v
diff -p -u -r1.9 -r1.10
--- trove.c 11 Aug 2006 19:18:07 -0000 1.9
+++ trove.c 15 Aug 2006 20:24:26 -0000 1.10
@@ -32,6 +32,7 @@ struct PINT_perf_counter* PINT_server_pc
int TROVE_db_cache_size_bytes = 0;
int TROVE_alt_aio_mode = 0;
int TROVE_shm_key_hint = 0;
+int TROVE_max_concurrent_io = 16;
/** Initiate reading from a contiguous region in a bstream into a
* contiguous region in memory.
@@ -968,6 +969,11 @@ int trove_collection_setinfo(
if(option == TROVE_ALT_AIO_MODE)
{
TROVE_alt_aio_mode = *((int*)parameter);
+ return(0);
+ }
+ if(option == TROVE_MAX_CONCURRENT_IO)
+ {
+ TROVE_max_concurrent_io = *((int*)parameter);
return(0);
}
Index: trove.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove.h,v
diff -p -u -r1.36 -r1.37
--- trove.h 11 Aug 2006 19:18:07 -0000 1.36
+++ trove.h 15 Aug 2006 20:24:26 -0000 1.37
@@ -73,6 +73,7 @@ enum
TROVE_COLLECTION_ATTR_CACHE_INITIALIZE,
TROVE_DB_CACHE_SIZE_BYTES,
TROVE_ALT_AIO_MODE,
+ TROVE_MAX_CONCURRENT_IO,
TROVE_COLLECTION_COALESCING_HIGH_WATERMARK,
TROVE_COLLECTION_COALESCING_LOW_WATERMARK,
TROVE_COLLECTION_META_SYNC_MODE,
More information about the Pvfs2-cvs
mailing list