hi bill,
inline
- Original Message -
> From: "William Allen Simpson"
> To: "NFS Ganesha Developers"
> Sent: Wednesday, June 21, 2017 4:01:01 AM
> Subject: [Nfs-ganesha-devel] cache and hash and partitions should be primes
>
> Was looking through ntirpc cache/hash sizes, and discovered that:
> svc_auth_des.c has 64 (not prime);
not used?
> authgss_hash.c has 255 (not prime).
good catch
>
> 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.
careful; first is small on the theory it will retire fast, and note it is per
connection
the UDP DRC is global, so larger
Matt
>
> 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
>
--
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103
http://www.redhat.com/en/technologies/storage
tel. 734-821-5101
fax. 734-769-8938
cel. 734-216-5309
--
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