>From Daniel Gryniewicz <d...@redhat.com>:

Daniel Gryniewicz has uploaded a new change for review. ( 
https://review.gerrithub.io/304279


Change subject: MDCACHE - don't cache large directories
......................................................................

MDCACHE - don't cache large directories

Historically, Ganesha has cached the entire set of dirents for a
directory.  This can cause problems, as the directory is locked while
the dirent cache is filled, and no other operations can occur.  In
addition, it can use unbounded memory for the dirent cache of large
directories.

To fix this, add a new configurable, Dir_Max, that indicates the largest
size directory that will be cached.  If a directory larger than this is
encountered, it is marked as uncached, and no dirents for that directory
are cached.

Change-Id: I896b71ce44f9c8fccc493f99af0640aedfa76f97
Signed-off-by: Daniel Gryniewicz <d...@redhat.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_ext.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_read_conf.c
M src/config_samples/config.txt
6 files changed, 181 insertions(+), 13 deletions(-)



  git pull ssh://review.gerrithub.io:29419/ffilz/nfs-ganesha 
refs/changes/79/304279/1
-- 
To view, visit https://review.gerrithub.io/304279
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I896b71ce44f9c8fccc493f99af0640aedfa76f97
Gerrit-Change-Number: 304279
Gerrit-PatchSet: 1
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Owner: Daniel Gryniewicz <d...@redhat.com>
------------------------------------------------------------------------------
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to