|
|
1df6c8 |
From 6d2e12a53ef0bcbeea274c47537a0c707a3f7b1e Mon Sep 17 00:00:00 2001
|
|
|
1df6c8 |
From: N Balachandran <nbalacha@redhat.com>
|
|
|
1df6c8 |
Date: Fri, 20 Sep 2019 13:30:42 +0530
|
|
|
1df6c8 |
Subject: [PATCH 338/344] glusterfs/fuse: Reduce the default lru-limit value
|
|
|
1df6c8 |
|
|
|
1df6c8 |
The current lru-limit value still uses memory for
|
|
|
1df6c8 |
upto 128K inodes.
|
|
|
1df6c8 |
Reduce the default value of lru-limit to 64K.
|
|
|
1df6c8 |
|
|
|
1df6c8 |
> Upstream https://review.gluster.org/23461
|
|
|
1df6c8 |
> Change-Id: Ica2dd4f8f5fde45cb5180d8f02c3d86114ac52b3
|
|
|
1df6c8 |
> Fixes: bz#1753880
|
|
|
1df6c8 |
> Signed-off-by: N Balachandran <nbalacha@redhat.com>
|
|
|
1df6c8 |
> Signed-off-by: Csaba Henk <csaba@redhat.com>
|
|
|
1df6c8 |
|
|
|
1df6c8 |
BUG: 1763208
|
|
|
1df6c8 |
Change-Id: I04ab39b5278e702aacdceebfa5b63702b9f9703b
|
|
|
1df6c8 |
Signed-off-by: Csaba Henk <csaba@redhat.com>
|
|
|
1df6c8 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/187535
|
|
|
1df6c8 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
1df6c8 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
1df6c8 |
---
|
|
|
1df6c8 |
doc/mount.glusterfs.8 | 2 +-
|
|
|
1df6c8 |
glusterfsd/src/glusterfsd.c | 2 +-
|
|
|
1df6c8 |
xlators/mount/fuse/src/fuse-bridge.c | 2 +-
|
|
|
1df6c8 |
xlators/mount/fuse/src/fuse-bridge.h | 2 +-
|
|
|
1df6c8 |
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
1df6c8 |
|
|
|
1df6c8 |
diff --git a/doc/mount.glusterfs.8 b/doc/mount.glusterfs.8
|
|
|
1df6c8 |
index b35b362..87a5669 100644
|
|
|
1df6c8 |
--- a/doc/mount.glusterfs.8
|
|
|
1df6c8 |
+++ b/doc/mount.glusterfs.8
|
|
|
1df6c8 |
@@ -123,7 +123,7 @@ Provide list of backup volfile servers in the following format [default: None]
|
|
|
1df6c8 |
.TP
|
|
|
1df6c8 |
.TP
|
|
|
1df6c8 |
\fBlru-limit=\fRN
|
|
|
1df6c8 |
-Set fuse module's limit for number of inodes kept in LRU list to N [default: 131072]
|
|
|
1df6c8 |
+Set fuse module's limit for number of inodes kept in LRU list to N [default: 65536]
|
|
|
1df6c8 |
.TP
|
|
|
1df6c8 |
.TP
|
|
|
1df6c8 |
\fBinvalidate-limit=\fRN
|
|
|
1df6c8 |
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
|
|
|
1df6c8 |
index 0856471..974fb88 100644
|
|
|
1df6c8 |
--- a/glusterfsd/src/glusterfsd.c
|
|
|
1df6c8 |
+++ b/glusterfsd/src/glusterfsd.c
|
|
|
1df6c8 |
@@ -211,7 +211,7 @@ static struct argp_option gf_options[] = {
|
|
|
1df6c8 |
"Resolve all auxiliary groups in fuse translator (max 32 otherwise)"},
|
|
|
1df6c8 |
{"lru-limit", ARGP_FUSE_LRU_LIMIT_KEY, "N", 0,
|
|
|
1df6c8 |
"Set fuse module's limit for number of inodes kept in LRU list to N "
|
|
|
1df6c8 |
- "[default: 131072]"},
|
|
|
1df6c8 |
+ "[default: 65536]"},
|
|
|
1df6c8 |
{"invalidate-limit", ARGP_FUSE_INVALIDATE_LIMIT_KEY, "N", 0,
|
|
|
1df6c8 |
"Suspend inode invalidations implied by 'lru-limit' if the number of "
|
|
|
1df6c8 |
"outstanding invalidations reaches N"},
|
|
|
1df6c8 |
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
|
|
|
1df6c8 |
index 8b2e7f0..ebe5c28 100644
|
|
|
1df6c8 |
--- a/xlators/mount/fuse/src/fuse-bridge.c
|
|
|
1df6c8 |
+++ b/xlators/mount/fuse/src/fuse-bridge.c
|
|
|
1df6c8 |
@@ -6972,7 +6972,7 @@ struct volume_options options[] = {
|
|
|
1df6c8 |
{
|
|
|
1df6c8 |
.key = {"lru-limit"},
|
|
|
1df6c8 |
.type = GF_OPTION_TYPE_INT,
|
|
|
1df6c8 |
- .default_value = "131072",
|
|
|
1df6c8 |
+ .default_value = "65536",
|
|
|
1df6c8 |
.min = 0,
|
|
|
1df6c8 |
.description = "makes glusterfs invalidate kernel inodes after "
|
|
|
1df6c8 |
"reaching this limit (0 means 'unlimited')",
|
|
|
1df6c8 |
diff --git a/xlators/mount/fuse/src/fuse-bridge.h b/xlators/mount/fuse/src/fuse-bridge.h
|
|
|
1df6c8 |
index 2311582..cf4479c 100644
|
|
|
1df6c8 |
--- a/xlators/mount/fuse/src/fuse-bridge.h
|
|
|
1df6c8 |
+++ b/xlators/mount/fuse/src/fuse-bridge.h
|
|
|
1df6c8 |
@@ -189,7 +189,7 @@ struct fuse_private {
|
|
|
1df6c8 |
gf_boolean_t flush_handle_interrupt;
|
|
|
1df6c8 |
gf_boolean_t fuse_auto_inval;
|
|
|
1df6c8 |
|
|
|
1df6c8 |
- /* LRU Limit, if not set, default is 128k for now */
|
|
|
1df6c8 |
+ /* LRU Limit, if not set, default is 64k for now */
|
|
|
1df6c8 |
uint32_t lru_limit;
|
|
|
1df6c8 |
uint32_t invalidate_limit;
|
|
|
1df6c8 |
};
|
|
|
1df6c8 |
--
|
|
|
1df6c8 |
1.8.3.1
|
|
|
1df6c8 |
|