From 80cb838773f3574f68b1fa821fcb712ada350309 Mon Sep 17 00:00:00 2001 From: Raghavendra Gowdappa Date: Tue, 12 Feb 2019 18:33:44 +0530 Subject: read-ahead/io-cache: turn off by default We've found perf xlators io-cache and read-ahead not adding any performance improvement. At best read-ahead is redundant due to kernel read-ahead and at worst io-cache is degrading the performance for workloads that doesn't involve re-read. Given that VFS already have both these functionalities, this patch makes these two translators turned off by default for native fuse mounts. For non-native fuse mounts like gfapi (NFS-ganesha/samba) we can have these xlators on by having custom profiles. Change-Id: Ie7535788909d4c741844473696f001274dc0bb60 Signed-off-by: Raghavendra Gowdappa fixes: bz#1676479 --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src') diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index ac78192d1f9..b34b122b839 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1749,7 +1749,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { {.key = "performance.read-ahead", .voltype = "performance/read-ahead", .option = "!perf", - .value = "on", + .value = "off", .op_version = 1, .description = "enable/disable read-ahead translator in the volume.", .flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT}, @@ -1763,7 +1763,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { {.key = "performance.io-cache", .voltype = "performance/io-cache", .option = "!perf", - .value = "on", + .value = "off", .op_version = 1, .description = "enable/disable io-cache translator in the volume.", .flags = VOLOPT_FLAG_CLIENT_OPT}, -- cgit