>From <madhu.punj...@in.ibm.com>:
madhu.punj...@in.ibm.com has uploaded this change for review. (
https://review.gerrithub.io/369790
Change subject: Wakeup LRU thread if fds_hard_limit/fds_hiwat reached
......................................................................
Wakeup LRU thread if fds_hard_limit/fds_hiwat reached
Currently we increment/decrement the FD count after a
file is opened/closed, but before opening a file there
is NO check for the current FD count to compare it
against the "lru_state.fds_hard_limit" or
"lru_state.fds_hiwat" (FD high water mark).
With this we can run out of FDs if
"number of FDs opened" > "FD limit" within the
LRU_Run_Interval (default 90 seconds),
To fix this we now call "mdcache_lru_fds_available()"
before opening a file descriptor for read/write/create,
so that if the fds_hard_limit/fds_hiwat is reached
we wake up the LRU thread to free some FDs to make
space for new FDs.
Change-Id: I0a329d186068fe3113bdf250870a206f6431a18f
Signed-off-by: Madhu Thorat <madhu.punj...@in.ibm.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_file.c
1 file changed, 35 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha
refs/changes/90/369790/1
--
To view, visit https://review.gerrithub.io/369790
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a329d186068fe3113bdf250870a206f6431a18f
Gerrit-Change-Number: 369790
Gerrit-PatchSet: 1
Gerrit-Owner: madhu.punj...@in.ibm.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