Bug 1898777 - Need to configure optimum inode table hash_size for shd
Summary: Need to configure optimum inode table hash_size for shd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: core
Version: rhgs-3.5
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: RHGS 3.5.z Batch Update 4
Assignee: Mohit Agrawal
QA Contact: Sayalee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-18 03:54 UTC by Mohit Agrawal
Modified: 2021-04-29 07:21 UTC (History)
8 users (show)

Fixed In Version: glusterfs-6.0-50
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-29 07:21:03 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:1462 0 None None None 2021-04-29 07:21:19 UTC

Description Mohit Agrawal 2020-11-18 03:54:35 UTC
In brick_mux environment a shd process consume high memory.
After print the statedump i have found it allocates 1M per afr xlator for all bricks.In case of configure 4k volumes it consumes almost total 6G RSS size in which 4G consumes by inode_tables

[cluster/replicate.test1-replicate-0 - usage-type gf_common_mt_list_head memusage]
size=1273488
num_allocs=2
max_size=1273488
max_num_allocs=2
total_allocs=2

In inode_new_table we do allocate memory(1M) for a list of inode and dentry hash.
I believe in case of shd we do pass lru_limit size is 1 so we don't need to create a big hash table so optimize inode_table size for shd to reduce memory
consumption for shd process.

Comment 1 Mohit Agrawal 2020-11-18 03:56:22 UTC
The upstream committed patch link
https://github.com/gluster/glusterfs/issues/1538

Comment 2 Mohit Agrawal 2020-11-18 03:57:27 UTC
Need to backport this patch(inode_change) https://review.gluster.org/#/c/glusterfs/+/22184/ also in 
downstream at the time of merging previous patch otherwise shd will crash.

Comment 23 errata-xmlrpc 2021-04-29 07:21:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (glusterfs bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1462


Note You need to log in before you can comment on or make changes to this bug.