summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-06-01 04:58:19 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-06-03 02:15:13 -0700
commit3f86b2040c26bd5fd95cfd80a353537919da1662 (patch)
tree0e9b7768cffb66a40ee4b62f1b2464a1156db097 /xlators
parent7c4067688292092386d5a33961a0bbe351e6027d (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
Diffstat (limited to 'xlators')
-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 dfb99ac..34b755d 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 /* 128MB */
+
int32_t
qr_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
off_t offset);
@@ -2516,7 +2518,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);