Commit ce738522 authored by Geoff Simmons's avatar Geoff Simmons

add a counter for EOL/sleep states

parent 994ff443
......@@ -95,7 +95,7 @@ static unsigned len_hi = 0, debug = 0, data_exhausted = 0;
static unsigned long seen = 0, submitted = 0, len_overflows = 0, no_data = 0,
no_free_data = 0, vcl_log_err = 0, vsl_errs = 0, closed = 0, overrun = 0,
ioerr = 0, reacquire = 0, truncated = 0, key_hi = 0, key_overflows = 0,
no_free_chunk = 0;
no_free_chunk = 0, eol = 0;
static volatile sig_atomic_t flush = 0, term = 0;
......@@ -113,12 +113,12 @@ static unsigned rdr_rec_free = 0, rdr_chunk_free = 0;
void
RDR_Stats(void)
{
LOG_Log(LOG_INFO, "Reader: seen=%lu submitted=%lu nodata=%lu free_rec=%u "
"free_chunk=%u no_free_rec=%lu no_free_chunk=%lu len_hi=%u "
"key_hi=%lu len_overflows=%lu truncated=%lu key_overflows=%lu "
"vcl_log_err=%lu vsl_err=%lu closed=%lu overrun=%lu ioerr=%lu "
"reacquire=%lu",
seen, submitted, no_data, rdr_rec_free, rdr_chunk_free,
LOG_Log(LOG_INFO, "Reader: seen=%lu submitted=%lu nodata=%lu eol=%lu "
"free_rec=%u free_chunk=%u no_free_rec=%lu no_free_chunk=%lu "
"len_hi=%u key_hi=%lu len_overflows=%lu truncated=%lu "
"key_overflows=%lu vcl_log_err=%lu vsl_err=%lu closed=%lu "
"overrun=%lu ioerr=%lu reacquire=%lu",
seen, submitted, no_data, eol, rdr_rec_free, rdr_chunk_free,
no_free_data, no_free_chunk, len_hi, key_hi, len_overflows,
truncated, key_overflows, vcl_log_err, vsl_errs, closed, overrun,
ioerr, reacquire);
......@@ -798,6 +798,7 @@ CHILD_Main(int readconfig)
break;
case DISPATCH_EOL:
take_free();
eol++;
VTIM_sleep(config.idle_pause);
break;
case DISPATCH_TERMINATE:
......
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