|
|||||||||||
|
bk commit into 5.1 tree (pekka:1.2599)
From: Stewart Smith <stewart(at)mysql.com>
Date: Tue Jul 31 2007 - 07:50:10 EDT
ChangeSet@1.2599, 2007-07-31 21:50:01+10:00, pekka@mysql.com +2 -0 [PATCH] 01_gcp_timer.diff
time gcp duration in master and
Index: storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp storage/ndb/src/kernel/blocks/dbdih/Dbdih.hpp@1.43, 2007-07-31 10:00:00+10:00, pekka@mysql.com +6 -0 01_gcp_timer.diff storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp@1.137, 2007-07-31 10:00:00+10:00, pekka@mysql.com +14 -0 01_gcp_timer.diff # This is a BitKeeper patch. What follows are the unified diffs for the
Uint32 m_expectedNextWord;
+ + /* + * Time GCP in master DIH. + * Later can measure per node or per protocol parts. + */ + MicroSecondTimer gcp_timer_start; /*------------------------------------------------------------------------*/ /* THIS VARIABLE IS USED TO KEEP TRACK OF THE STATE OF LOCAL */ --- 1.136/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp 2007-06-27 19:23:21 +10:00 +++ 1.137/storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp 2007-07-31 10:00:00 +10:00@@ -8011,6 +8011,8 @@
signal->theData[1] = cnewgcp;
+ NdbTick_getMicroTimer(&gcp_timer_start); + CRASH_INSERTION(7000);
signal->theData[0] = NDB_LE_GlobalCheckpointCompleted; //Event type
signal->theData[1] = coldgcp;
sendSignal(CMVMI_REF, GSN_EVENT_REP, signal, 2, JBB);
+
+ {
+ MicroSecondTimer stop;
+ NdbTick_getMicroTimer(&stop);
+ NDB_TICKS ticks = NdbTick_getMicrosPassed(gcp_timer_start, stop);
+ Uint32 ms = ticks / 1000;
+ // random formula to report excessive duration
+ bool report = ms > 3000 * (1 + cgcpDelay / 1000);
+ if (report)
+ infoEvent("GCP %u duration %u ms (config %u ms)",
+ coldgcp, ms, cgcpDelay);
+ }
c_newest_restorable_gci = coldgcp; -- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Tue Jul 31 07:50:18 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:19:38 EDT |
||||||||||
|
|||||||||||