int *lowvol_perperiod;
int lowvol_circptr;
int lowvol_total; /* does not include current period */
+int until_stats_log=1;
/*---------- configuration option variables ----------*/
/* when changing defaults, remember to update the manpage */
int spontaneous_flush_periods=100000;
int max_separated_periods=2000;
int need_activity_periods=1000;
+int stats_log_periods=2500;
int lowvol_thresh=3;
int lowvol_periods=1000;
free(dipf_flushing);
free(dipf_backlog);
+ if (until_stats_log) until_stats_log--;
+ else showstats();
+
if (until_connect) until_connect--;
inputfile_queue_check_expired(backlog_input_file);
{0,"max-flush-interval", "PERIOD", &spontaneous_flush_periods,op_seconds },
{0,"flush-finish-timeout", "PERIOD", &max_separated_periods, op_seconds },
{0,"idle-timeout", "PERIOD", &need_activity_periods, op_seconds },
+{0,"stats-log-interval", "PERIOD", &stats_log_periods, op_seconds },
{0,"low-volume-thresh", "PERIOD", &lowvol_thresh, op_integer },
{0,"low-volume-window", "PERIOD", &lowvol_periods, op_seconds },
.TP
.B logstats
Log statistics so far and zero the stats counters. Stats are also
-logged when an input file is completed and just before tidy
-termination.
+logged periodically, when an input file is completed and just before
+tidy termination.
.TP
.BR "dump q" | a
Writes information about innduct's state to a plain text file
The default is
.BR 1000s .
.TP
+.BI \-\-stats-log-interval= PERIOD
+Log statistics at least every
+.IR PERIOD
+The default is
+.BR 2500s .
+.TP
.BI \-\-low-volume-thresh= "WIN-THRESH " \-\-low-volume-window= "PERIOD "
If innduct has only one connection to the peer, and has processed
fewer than
extern int spontaneous_flush_periods;
extern int max_separated_periods;
extern int need_activity_periods;
+extern int stats_log_periods;
extern int lowvol_thresh;
extern int lowvol_periods;
/*========== general operational variables ==========*/
-/* innduct.c */
+/* duct.c */
extern oop_source *loop;
extern ConnList conns;
extern char *path_lock, *path_flushing, *path_defer, *path_dump;
extern int *lowvol_perperiod;
extern int lowvol_circptr;
extern int lowvol_total; /* does not include current period */
+extern int until_stats_log;
/* statemc.c */
extern StateMachineState sms;
if (backlog_input_file)
notice_processed(backlog_input_file,0, "backlog file ",
backlog_input_file->path);
+ until_stats_log= stats_log_periods;
}
static int signal_self_pipe[2];