summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-06-01 05:07:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-06-03 02:15:04 -0700
commitf6048901a2068af13e21ba66b41a0667b740b1d4 (patch)
treeedc557a5ca5fa37da31ced45c79ac03e2446b539
parentf6ac7f6f6e28c7567e05c701f88fbdd6a971bf29 (diff)
performance/quick-read: set default cache-size value to 128MB.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 723 (enhancements to quick read) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=723
-rw-r--r--xlators/performance/quick-read/src/quick-read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 0d189d487d4..fd15b9d404b 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -20,6 +20,8 @@
#include "quick-read.h"
#include "statedump.h"
+#define QR_DEFAULT_CACHE_SIZE 134217728
+
void
qr_local_free (qr_local_t *local)
{
@@ -2546,7 +2548,7 @@ init (xlator_t *this)
}
}
- conf->cache_size = 65536;
+ conf->cache_size = QR_DEFAULT_CACHE_SIZE;
ret = dict_get_str (this->options, "cache-size", &str);
if (ret == 0) {
ret = gf_string2bytesize (str, &conf->cache_size);