>From Malahal <mala...@gmail.com>:
Malahal has uploaded this change for review. (
https://review.gerrithub.io/371622
Change subject: Add dbus interface to recalculate fd limits
......................................................................
Add dbus interface to recalculate fd limits
Ganesha currently calculates its high/low mater marks for open file
descriptors at initialization time. Using systemd LimitNOFILE doesn't
work because systemd seems to start its daemons with a default number of
open file descriptor limits and then later apply LimitNOFILE environment
value. This patch adds a dbus method to recalculate fd limits after
systemd post execution of the daemon.
ExecStartPost gets executed before ganesha registers and initializes its
dbus thread! For "Type=forking", ExecStartPost could be called as soon
as the main process (parent) exits. It is possible to call nfs_init_wait
in the parent before exiting, but daemon() call we use doesn't give us
that option! Experimented with "Type=dbus" method, but it isn't working
either! So put a sleep before invoking the dbus method in the
ExecStartPost call for now.
Change-Id: I8be451301b667594b8153b92072bf0cd9d6967e4
Signed-off-by: Malahal Naineni <mala...@us.ibm.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.c
M src/MainNFSD/nfs_admin_thread.c
M src/include/mdcache.h
M src/scripts/systemd/nfs-ganesha.service.debian8
M src/scripts/systemd/nfs-ganesha.service.el7
5 files changed, 75 insertions(+), 28 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha
refs/changes/22/371622/1
--
To view, visit https://review.gerrithub.io/371622
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8be451301b667594b8153b92072bf0cd9d6967e4
Gerrit-Change-Number: 371622
Gerrit-PatchSet: 1
Gerrit-Owner: Malahal <mala...@gmail.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel