]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: nuke the unused mds_mem_max option 5142/head
authorDan van der Ster <daniel.vanderster@cern.ch>
Thu, 2 Jul 2015 14:43:14 +0000 (16:43 +0200)
committerDan van der Ster <daniel.vanderster@cern.ch>
Thu, 2 Jul 2015 14:44:40 +0000 (16:44 +0200)
mds mem max has been a noop since argonaut. Nuke it because it
is misleading.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
src/common/config_opts.h
src/mds/MDCache.cc
src/sample.ceph.conf

index 49f1a118bffbf3558bdaeaecc321627305e9f8d9..1ea85a649662acb8d6c446d1a018ce141d99788d 100644 (file)
@@ -359,7 +359,6 @@ OPTION(mds_max_file_size, OPT_U64, 1ULL << 40) // Used when creating new CephFS.
 OPTION(mds_cache_size, OPT_INT, 100000)
 OPTION(mds_cache_mid, OPT_FLOAT, .7)
 OPTION(mds_max_file_recover, OPT_U32, 32)
-OPTION(mds_mem_max, OPT_INT, 1048576)        // KB
 OPTION(mds_dir_max_commit_size, OPT_INT, 10) // MB
 OPTION(mds_decay_halflife, OPT_FLOAT, 5)
 OPTION(mds_beacon_interval, OPT_FLOAT, 4)
index 758c04cc074271c5a3fa1f4557c514cab8e0ec91..1efd233fc75cd33bddfc10533535b14d69bd540c 100644 (file)
@@ -7179,7 +7179,6 @@ void MDCache::check_memory_usage()
           << ", malloc " << last.malloc << " mmap " << last.mmap
           << ", baseline " << baseline.get_heap()
           << ", buffers " << (buffer::get_total_alloc() >> 10)
-          << ", max " << g_conf->mds_mem_max
           << ", " << num_inodes_with_caps << " / " << inode_map.size() << " inodes have caps"
           << ", " << num_caps << " caps, " << caps_per_inode << " caps per inode"
           << dendl;
@@ -7188,13 +7187,6 @@ void MDCache::check_memory_usage()
   mds->mlogger->set(l_mdm_heap, last.get_heap());
   mds->mlogger->set(l_mdm_malloc, last.malloc);
 
-  /*int size = last.get_total();
-  if (size > g_conf->mds_mem_max * .9) {
-    float ratio = (float)g_conf->mds_mem_max * .9 / (float)size;
-    if (ratio < 1.0)
-      mds->server->recall_client_state(ratio);
-  } else 
-    */
   if (num_inodes_with_caps > g_conf->mds_cache_size) {
     float ratio = (float)g_conf->mds_cache_size * .9 / (float)num_inodes_with_caps;
     if (ratio < 1.0)
index 93c4987a1927371b2003945f28206af8e349929d..120dd3335cb7bbb951aed04da2b3058bf0a9fa9e 100644 (file)
     # (Default: 100000)
     ;mds cache size             = 250000
 
-    ;mds mem max                = 1048576     # KB
-
 ;[mds.alpha]
 ;    host                       = alpha