summaryrefslogtreecommitdiffstats
path: root/xlators/performance/write-behind
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@zresearch.com>2009-06-30 01:14:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-07 17:30:08 -0700
commitbde0032cfbe51383c697247831e26394ca6cd913 (patch)
tree2feb29fcf28ab62e37932fc42f5be03f43a58020 /xlators/performance/write-behind
parent80c769b54ed8e95ae3f51e19d2ef8c2e8ea5e44d (diff)
write-behind: set default window-size to 1MB.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/performance/write-behind')
-rw-r--r--xlators/performance/write-behind/src/write-behind.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c
index 26981d4d8aa..ae1792e07e1 100644
--- a/xlators/performance/write-behind/src/write-behind.c
+++ b/xlators/performance/write-behind/src/write-behind.c
@@ -37,6 +37,7 @@
#define MAX_VECTOR_COUNT 8
#define WB_AGGREGATE_SIZE 131072 /* 128 KB */
+#define WB_WINDOW_SIZE 1048576 /* 1MB */
typedef struct list_head list_head_t;
struct wb_conf;
@@ -2224,7 +2225,7 @@ init (xlator_t *this)
conf->disable_till);
/* configure 'option window-size <size>' */
- conf->window_size = 0;
+ conf->window_size = WB_WINDOW_SIZE;
ret = dict_get_str (options, "cache-size",
&window_size_string);
if (ret == 0) {