From 74bbad1e73b9b024a666bf5e0fc68465ff0afbdd Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Fri, 20 Sep 2019 13:30:42 +0530 Subject: glusterfs/fuse: Reduce the default lru-limit value The current lru-limit value still uses memory for upto 128K inodes. Reduce the default value of lru-limit to 64K. Change-Id: Ica2dd4f8f5fde45cb5180d8f02c3d86114ac52b3 Fixes: bz#1753880 Signed-off-by: N Balachandran --- xlators/mount/fuse/src/fuse-bridge.c | 2 +- xlators/mount/fuse/src/fuse-bridge.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 2acfd12d84c..e1bd095b177 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -7046,7 +7046,7 @@ struct volume_options options[] = { { .key = {"lru-limit"}, .type = GF_OPTION_TYPE_INT, - .default_value = "131072", + .default_value = "65536", .min = 0, .description = "makes glusterfs invalidate kernel inodes after " "reaching this limit (0 means 'unlimited')", diff --git a/xlators/mount/fuse/src/fuse-bridge.h b/xlators/mount/fuse/src/fuse-bridge.h index c239d948652..c6fb282543a 100644 --- a/xlators/mount/fuse/src/fuse-bridge.h +++ b/xlators/mount/fuse/src/fuse-bridge.h @@ -189,7 +189,7 @@ struct fuse_private { gf_boolean_t flush_handle_interrupt; gf_boolean_t fuse_auto_inval; - /* LRU Limit, if not set, default is 128k for now */ + /* LRU Limit, if not set, default is 64k for now */ uint32_t lru_limit; uint32_t invalidate_limit; uint32_t fuse_dev_eperm_ratelimit_ns; -- cgit