diff options
author | Poornima G <pgurusid@redhat.com> | 2017-01-17 17:45:59 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2017-01-23 03:00:24 -0500 |
commit | f245dc568e3c22882e22ddd3e26a4207f5704e3b (patch) | |
tree | b2a81aa4435b9494c38765847a9e571b4b9bab3b /xlators/mgmt/glusterd/src/glusterd-volume-set.c | |
parent | ac629e574935a8aed6526936bc83b1c6d295ae67 (diff) |
glusterd, rda: If parallel readdir is enabled, split the cache limit
With patch http://review.gluster.org/#/c/16072/ readdir-ahead can be
loaded as a child of dht. i.e. there can be more than one instance
of readdir-ahead in client process. In this case the rda-cache-size
should be split among all the readdir-ahead instances. Also the
value of rda-request-size is considered as the minimum cache size
of any readdir-ahead instance.
Change-Id: Iea2fe6d4c46adc09dd2e9a252332a0fe3005f2b9
BUG: 1401812
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: https://review.gluster.org/16424
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 96e76cd7953..7da0de20291 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -3120,6 +3120,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { { .key = "performance.rda-request-size", .voltype = "performance/readdir-ahead", .option = "rda-request-size", + .value = "128KB", .flags = OPT_FLAG_CLIENT_OPT, .type = DOC, .op_version = GD_OP_VERSION_3_9_1, @@ -3139,6 +3140,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { }, { .key = "performance.rda-cache-limit", .voltype = "performance/readdir-ahead", + .value = "10MB", .type = DOC, .flags = OPT_FLAG_CLIENT_OPT, .op_version = GD_OP_VERSION_3_9_1, |