Nishant Puri has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1245787?usp=email )
Change subject: Add NFS_CORE_PARAM Mem_Stats_Disable for memory statistics capture
......................................................................
Add NFS_CORE_PARAM Mem_Stats_Disable for memory statistics capture
Introduce Mem_Stats_Disable (default false) to skip gsh_malloc/gsh_free
per-component counter updates when operators do not need mem_stats.
When disabled, ganesha_stats mem_stats show reports zero for all counters;
mem_stats status reports active/inactive via new GetMemoryStatsStatus
D-Bus method.
Log enabled/disabled once at init (COMPONENT_INIT). Skip shutdown
gsh_log_mem_stats() when capture is inactive. Option is read at daemon
startup only; SIGHUP config reload does not change it.
Document the option in ganesha-core-config.rst.
Change-Id: I2e6ff0f43014472e4e8eecaa8a70948af657741a
Signed-off-by: Nishant Puri <npuri(a)redhat.com>
---
M src/MainNFSD/nfs_init.c
M src/doc/man/ganesha-core-config.rst
M src/include/gsh_config.h
M src/include/server_stats.h
M src/scripts/ganeshactl/Ganesha/glib_dbus_stats.py
M src/scripts/ganeshactl/ganesha_stats.py
M src/support/nfs_read_conf.c
M src/support/server_stats.c
8 files changed, 171 insertions(+), 36 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/87/1245787/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1245787?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I2e6ff0f43014472e4e8eecaa8a70948af657741a
Gerrit-Change-Number: 1245787
Gerrit-PatchSet: 1
Gerrit-Owner: Nishant Puri <npuri(a)redhat.com>