diff options
author | Raghavendra G <raghavendra@zresearch.com> | 2009-06-30 01:14:44 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-07-07 17:30:08 -0700 |
commit | e54d471444274879a65efaea19f0b69fb0e78b5e (patch) | |
tree | 0d52670c5758a8cca9010c36a50e388cb36cf103 /xlators | |
parent | 73c32c9ab17ee104d319882227f4a01849e544b9 (diff) |
write-behind: set default window-size to 1MB.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/performance/write-behind/src/write-behind.c | 3 |
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 e3a2f24e319..f641295adf7 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; @@ -1872,7 +1873,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) { |