Was looking through ntirpc cache/hash sizes, and discovered that: svc_auth_des.c has 64 (not prime); authgss_hash.c has 255 (not prime).
Configurable number of partitions aren't checked for primality. So began checking Ganesha as well. src/support/export_mgr.c has a nice size of 769, appropriate for 10,000'ish exports by id with a hit rate of 0.130208. src/support/ds.c has a fair size of 163, appropriate for 256'ish active servers with a hit rate of 0.520833. (I chose those two a couple of years ago.) The number 1009 is used several places. Prime, but too large? src/support/netgroup_cache.c src/support/uid2grp_cache.c src/idmapper/idmapper_cache.c DRC_TCP_CACHESZ 127 and DRC_UDP_CACHESZ 599, while prime, seem completely oddball (and reversed). And allow configuration to 255 and 2047 (not prime) respectively. Are there others that I've missed? ------------------------------------------------------------------------------ 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