Hello Ganesha support. I have a customer running into some nasty intermittent connection issues an internal directory service (VAS) which ganesha is using to query group ownership of directories thanks to Manage_Gids = True;

As such, we've been asked to inspect the caching mechanism of ganesha U/GID mapping and determined that the ID map cache size is 1009 entries, as set here:

https://github.com/nfs-ganesha/nfs-ganesha/blob/d51394b49b644b69bec1c219c650e8ed69b50c07/src/idmapper/idmapper_cache.c#L76
src/idmapper/idmapper_cache.c:76
#define id_cache_size 1009

Since the customer has 6000+ groups, they have expressed interest in increasing this value to 20011 (must be prime) to account for nested groups and such.

Can you please confirm whether we would have to define this value ourselves and recompile ganesha, or whether it is configurable with a config file somehow?

Thanks!
--
David Hansen 
Support Engineer
WekaIO, Inc.  |  Radically Simple Storage™
Support Line: +1 (855) 969-4030
M: +1-408-332-4550
W: www.weka.io