Attention is currently required from: Malahal.
skmprabhu2@gmail.com would like Malahal to review this change.
Malloc trim support
Glibc is known to cause greedy allocations with ganesha daemon, this
feature dynamically calls malloc_trim() to release memory back to the
system based on certain RSS (Resident Set Size) values. This feature
can be enabled by having "enable_trim = 1" in NFS_Core_Param{} block.
Also, it can be enabled/disabled by running:
ganesha_mgr trim enable OR
ganesha_mgr trim disable.
Its status can be queried with: ganesha_mgr trim status
ganesha_mgr trim call makes a one time malloc_trim(0) as well.
Change-Id: Ic947d98cfbe69faf4785d862047738c240b005f9
Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
(cherry picked from commit 24c26c728137c73be2e848f24e6f8fb4be42e84d)
---
M src/MainNFSD/nfs_admin_thread.c
M src/MainNFSD/nfs_reaper_thread.c
M src/config_samples/config.txt
M src/doc/man/ganesha-core-config.rst
M src/include/gsh_config.h
M src/scripts/ganeshactl/Ganesha/ganesha_mgr_utils.py
M src/scripts/ganeshactl/ganesha_mgr.py
M src/support/nfs_read_conf.c
8 files changed, 334 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/91/547891/1
To view, visit change 547891. To unsubscribe, or for help writing mail filters, visit settings.