>From <madhu.punj...@in.ibm.com>:

madhu.punj...@in.ibm.com has uploaded this change for review. ( 
https://review.gerrithub.io/369809


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, 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: Ib3c3f18b046920d2426c0b17efbd021983292b8e
Signed-off-by: Madhu Thorat <madhu.punj...@in.ibm.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_file.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_main.c
M src/FSAL/commonlib.c
M src/include/mdcache.h
4 files changed, 30 insertions(+), 0 deletions(-)



  git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha 
refs/changes/09/369809/1
-- 
To view, visit https://review.gerrithub.io/369809
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib3c3f18b046920d2426c0b17efbd021983292b8e
Gerrit-Change-Number: 369809
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

Reply via email to