]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
*** empty log message ***
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Tue, 14 Jun 2005 21:03:02 +0000 (21:03 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Tue, 14 Jun 2005 21:03:02 +0000 (21:03 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@315 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/TODO
ceph/config.cc
ceph/config.h
ceph/mds/MDCache.cc

index 9d6590c14767bdfbdcba78dfc312959d1593c003..761bb731d886f328d67562512baddfe8b593eb47 100644 (file)
--- a/ceph/TODO
+++ b/ceph/TODO
@@ -1,9 +1,7 @@
 
 !!!
 - test mds scaling w/ makedirs, vs mds_log_on_request 
-- client needs to choose MDS intelligently
 
-- fix up MDLog
 
 big fast todo's:
 - client buffer cache
index 12866bdc0d0de0a84caba72b781e5e5c419b0751..0cb8542b3f973500b9cfcedbc80b73b98de66b9b 100644 (file)
@@ -17,10 +17,12 @@ md_config_t g_conf = {
   num_client: 1,
 
   // profiling and debugging
-  log_messages: true,
   log_interval: 1,
   log_name: (char*)0,
 
+  log_messages: true,
+  log_pins: false,
+
   fake_clock: false,
   fakemessenger_serialize: true,
 
index 2715abfb82ef23d336c9962013579cc69fafb401..48da001ec764c6c9211d0e734502bf7d7edc0d2a 100644 (file)
@@ -8,10 +8,12 @@ struct md_config_t {
 
 
   // profiling
-  bool log_messages;
   int   log_interval;
   char *log_name;
 
+  bool log_messages;
+  bool log_pins;
+
   bool fake_clock;
   bool fakemessenger_serialize;
 
index 3fb20fa5271ab49938e48f7b4a162b44bec87518..ab11385a1b23d63c3fbe3326e92c02c19a10ec43 100644 (file)
@@ -1493,28 +1493,29 @@ void MDCache::request_cleanup(Message *req)
   mds->logger->set("cpin", lru.lru_get_num_pinned());
   mds->logger->set("cmax", lru.lru_get_max());
 
-  // pin
-  for (map<int,int>::iterator it = cinode_pins.begin();
-          it != cinode_pins.end();
-          it++) {
-       //string s = "I";
-       //s += cinode_pin_names[it->first];
-       mds->logger2->set(//s, 
-                                         cinode_pin_names[it->first],
-                                         it->second);
-  }
-  /*
-  for (map<int,int>::iterator it = cdir_pins.begin();
-          it != cdir_pins.end();
-          it++) {
-       //string s = "D";
-       //s += cdir_pin_names[it->first];
-       mds->logger2->set(//s, 
-                                         cdir_pin_names[it->first],
-                                         it->second);
+  if (g_conf.log_pins) {
+       // pin
+       for (map<int,int>::iterator it = cinode_pins.begin();
+                it != cinode_pins.end();
+                it++) {
+         //string s = "I";
+         //s += cinode_pin_names[it->first];
+         mds->logger2->set(//s, 
+                                               cinode_pin_names[it->first],
+                                               it->second);
+       }
+       /*
+         for (map<int,int>::iterator it = cdir_pins.begin();
+         it != cdir_pins.end();
+         it++) {
+         //string s = "D";
+         //s += cdir_pin_names[it->first];
+         mds->logger2->set(//s, 
+         cdir_pin_names[it->first],
+         it->second);
+         }
+       */
   }
-  */
-
 
 }