>From Frank Filz <ffilz...@mindspring.com>:
Frank Filz has uploaded this change for review. (
https://review.gerrithub.io/356041
Change subject: WIP - Dirent/chunk LRU memory management
......................................................................
WIP - Dirent/chunk LRU memory management
Here is a first pass at managing the numeber of dirents in use via
an LRU of the chunks.
What is implemented:
- If the max number chunks is exceeded, a chunk will be reaped from
the LRU
- When a chunk is used to satisfy a readdir or a lookup, it will be
promoted in the LRU following the same rules as promotion of
mdcache entries.
Missing:
- Currently there is no background task demoting chunks from L1 to L2
queue
- dirents that are not a part of a chunk (as a result of lookup, rename,
link, create, open, etc. when not able to be inserted into a chunk
using compute_readdir_cookie) are not managed - to be managed they
need to go into their own chunks somehow
- No account is taken for different sized chunks, and especially chunks
that could grow to enormous size with compute_readdir_cookie (start
with a directory with but one file in it, readdir it, then create
many many files - all of those dirents go into a single chunk...)
Change-Id: I5bc759839343cd2c41aea0697198ae4b7c2fb5d6
Signed-off-by: Frank S. Filz <ffilz...@mindspring.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_ext.h
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_lru.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_lru.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_read_conf.c
M src/config_samples/config.txt
M src/include/gsh_lttng/mdcache.h
8 files changed, 388 insertions(+), 11 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha
refs/changes/41/356041/1
--
To view, visit https://review.gerrithub.io/356041
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5bc759839343cd2c41aea0697198ae4b7c2fb5d6
Gerrit-Change-Number: 356041
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilz...@mindspring.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