]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: comment rgw_nfs config_ops.h tunables
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 1 Feb 2016 17:56:32 +0000 (12:56 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:08:25 +0000 (12:08 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/common/config_opts.h

index d0c1c66162d1f73b59cc240fac220987bb7ab096..de55865b811992896c7f972933e70867e3b2d64c 100644 (file)
@@ -1201,6 +1201,15 @@ OPTION(rgw_thread_pool_size, OPT_INT, 100)
 OPTION(rgw_num_control_oids, OPT_INT, 8)
 OPTION(rgw_num_rados_handles, OPT_U32, 1)
 
+/* The following are tunables for caches of RGW NFS (and other file
+ * client) objects.
+ *
+ * The file handle cache is a partitioned hash table
+ * (fhcache_partitions), each with a closed hash part and backing
+ * b-tree mapping.  The number of partions is expected to be a small
+ * prime, the cache size something larger but less than 5K, the total
+ * size of the cache is n_part * cache_size.
+ */
 OPTION(rgw_nfs_lru_lanes, OPT_INT, 5)
 OPTION(rgw_nfs_lru_lane_hiwat, OPT_INT, 911)
 OPTION(rgw_nfs_fhcache_partitions, OPT_INT, 3)