mirror of
https://github.com/schoebel/mars
synced 2024-12-27 00:52:21 +00:00
logger: make update_interval configurable
This commit is contained in:
parent
30e3e073a1
commit
5be66cacb2
@ -98,6 +98,8 @@ int trans_logger_mem_usage; // in KB
|
||||
|
||||
int trans_logger_pressure_limit = 0;
|
||||
|
||||
int trans_logger_report_interval = 2; /* seconds */
|
||||
|
||||
int trans_logger_writeback_maxage = 900; /* seconds */
|
||||
|
||||
int trans_logger_max_interleave = -1;
|
||||
@ -596,7 +598,7 @@ void _inf_callback(struct trans_logger_input *input, bool force)
|
||||
{
|
||||
if (!force &&
|
||||
input->inf_last_jiffies &&
|
||||
input->inf_last_jiffies + 4 * HZ > (long long)jiffies)
|
||||
input->inf_last_jiffies + trans_logger_report_interval * HZ > (long long)jiffies)
|
||||
return;
|
||||
|
||||
if (input->inf.inf_callback && input->is_operating) {
|
||||
|
@ -51,6 +51,7 @@ extern int trans_logger_completion_semantics;
|
||||
extern int trans_logger_do_crc;
|
||||
extern int trans_logger_mem_usage; // in KB
|
||||
extern int trans_logger_pressure_limit;
|
||||
extern int trans_logger_report_interval;
|
||||
extern int trans_logger_writeback_maxage;
|
||||
extern int trans_logger_max_interleave;
|
||||
extern int trans_logger_resume;
|
||||
|
@ -344,6 +344,7 @@ struct ctl_table mars_table[] = {
|
||||
INT_ENTRY("mapfree_grace_keep_mb", mapfree_grace_keep_mb, 0600),
|
||||
INT_ENTRY("logger_pressure_limit", trans_logger_pressure_limit, 0600),
|
||||
INT_ENTRY("logger_writeback_maxage_s", trans_logger_writeback_maxage, 0600),
|
||||
INT_ENTRY("logger_report_interval_s", trans_logger_report_interval, 0600),
|
||||
INT_ENTRY("logger_max_interleave", trans_logger_max_interleave, 0600),
|
||||
INT_ENTRY("logger_resume", trans_logger_resume, 0600),
|
||||
INT_ENTRY("logger_replay_timeout_sec", trans_logger_replay_timeout, 0600),
|
||||
|
Loading…
Reference in New Issue
Block a user