Commit 3d751acc authored by Barry Perlman's avatar Barry Perlman Committed by Yoni Fogel

[t:4362] Add new engine status fields to header. Refs #4362.

git-svn-id: file:///svn/toku/tokudb@38543 c7de825b-a66e-492c-adef-691d508d4ae1
parent 5be79863
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
...@@ -476,11 +476,17 @@ int main (int argc __attribute__((__unused__)), char *const argv[] __attribute__ ...@@ -476,11 +476,17 @@ int main (int argc __attribute__((__unused__)), char *const argv[] __attribute__
printf(" char checkpoint_time_begin[26]; /* time of last checkpoint begin */ \n"); printf(" char checkpoint_time_begin[26]; /* time of last checkpoint begin */ \n");
printf(" char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ \n"); printf(" char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ \n");
printf(" char checkpoint_time_end[26]; /* time of last checkpoint end */ \n"); printf(" char checkpoint_time_end[26]; /* time of last checkpoint end */ \n");
printf(" u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ \n"); printf(" uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ \n");
printf(" u_int64_t checkpoint_count; /* number of checkpoints taken */ \n"); printf(" uint64_t checkpoint_count; /* number of checkpoints taken */ \n");
printf(" u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ \n"); printf(" uint64_t checkpoint_count_fail; /* number of checkpoints failed */ \n");
printf(" u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ \n"); printf(" uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ \n");
printf(" u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ \n"); printf(" uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ \n");
printf(" uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */ \n");
printf(" uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */ \n");
printf(" uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */ \n");
printf(" uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */ \n");
printf(" uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */ \n");
printf(" uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */ \n");
printf(" u_int64_t cleaner_period; /* delay between executions of cleaner */ \n"); printf(" u_int64_t cleaner_period; /* delay between executions of cleaner */ \n");
printf(" u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ \n"); printf(" u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ \n");
printf(" u_int64_t txn_begin; /* number of transactions ever begun */ \n"); printf(" u_int64_t txn_begin; /* number of transactions ever begun */ \n");
......
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status { ...@@ -83,11 +83,17 @@ typedef struct __toku_engine_status {
char checkpoint_time_begin[26]; /* time of last checkpoint begin */ char checkpoint_time_begin[26]; /* time of last checkpoint begin */
char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */ char checkpoint_time_begin_complete[26]; /* time of last complete checkpoint begin */
char checkpoint_time_end[26]; /* time of last checkpoint end */ char checkpoint_time_end[26]; /* time of last checkpoint end */
u_int64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */ uint64_t checkpoint_last_lsn; /* LSN of last complete checkpoint */
u_int64_t checkpoint_count; /* number of checkpoints taken */ uint64_t checkpoint_count; /* number of checkpoints taken */
u_int64_t checkpoint_count_fail; /* number of checkpoints failed */ uint64_t checkpoint_count_fail; /* number of checkpoints failed */
u_int64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */ uint64_t checkpoint_waiters_now; /* number of threads currently waiting to perform a checkpoint */
u_int64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */ uint64_t checkpoint_waiters_max; /* max threads ever simultaneously waiting to perform a checkpoint */
uint64_t checkpoint_client_wait_on_mo; /* how many times a client thread waited for the multi_operation lock */
uint64_t checkpoint_client_wait_on_cs; /* how many times a client thread waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_sched; /* how many times a scheduled checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_client; /* how many times a client checkpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_txn; /* how many times a txn_commitcheckpoint waited for the checkpoint_safe lock */
uint64_t checkpoint_wait_other; /* how many times a checkpoint for another purpose waited for the checkpoint_safe lock */
u_int64_t cleaner_period; /* delay between executions of cleaner */ u_int64_t cleaner_period; /* delay between executions of cleaner */
u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */ u_int64_t cleaner_iterations; /* number of nodes to flush per cleaner execution */
u_int64_t txn_begin; /* number of transactions ever begun */ u_int64_t txn_begin; /* number of transactions ever begun */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment