Commit 2f017f0d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add two counters to keep track of the exp inbox traffic

parent 2ccf1b62
......@@ -117,6 +117,7 @@ exp_mail_it(struct objcore *oc)
VTAILQ_INSERT_HEAD(&exphdl->inbox, oc, lru_list);
else
VTAILQ_INSERT_TAIL(&exphdl->inbox, oc, lru_list);
VSC_C_main->exp_mailed++;
AZ(pthread_cond_signal(&exphdl->condvar));
Lck_Unlock(&exphdl->mtx);
}
......@@ -583,6 +584,7 @@ exp_thread(struct worker *wrk, void *priv)
oc = VTAILQ_FIRST(&ep->inbox);
if (oc != NULL) {
VTAILQ_REMOVE(&ep->inbox, oc, lru_list);
VSC_C_main->exp_received++;
tnext = 0;
} else if (tnext > t) {
VSL_Flush(&ep->vsl, 0);
......
......@@ -561,6 +561,18 @@ VSC_F(bans_persisted_fragmentation, uint64_t, 0, 'g', diag,
/*--------------------------------------------------------------------*/
VSC_F(exp_mailed, uint64_t, 0, 'c', diag,
"Number of objects mailed to expiry thread",
"Number of objects mailed to expiry thread for handling."
)
VSC_F(exp_received, uint64_t, 0, 'c', diag,
"Number of objects received by expiry thread",
"Number of objects received by expiry thread for handling."
)
/*--------------------------------------------------------------------*/
VSC_F(hcb_nolock, uint64_t, 1, 'a', debug,
"HCB Lookups without lock",
""
......
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