From bde0032cfbe51383c697247831e26394ca6cd913 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Tue, 30 Jun 2009 01:14:44 +0000 Subject: write-behind: set default window-size to 1MB. Signed-off-by: Anand V. Avati --- xlators/performance/write-behind/src/write-behind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/performance/write-behind') diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index 26981d4d8..ae1792e07 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 ' */ - conf->window_size = 0; + conf->window_size = WB_WINDOW_SIZE; ret = dict_get_str (options, "cache-size", &window_size_string); if (ret == 0) { -- cgit