Skip to content

Commit

Permalink
mm: Increase vmstat interval
Browse files Browse the repository at this point in the history
Red Hat linux states that vmstat updates can be mildly expensive.
Increase from 1 second to 1 minute.

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
  • Loading branch information
tytydraco authored and raghavt20 committed Jun 12, 2024
1 parent 261e2c8 commit 07cb200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ static const struct seq_operations vmstat_op = {

#ifdef CONFIG_SMP
static DEFINE_PER_CPU(struct delayed_work, vmstat_work);
int sysctl_stat_interval __read_mostly = HZ;
int sysctl_stat_interval __read_mostly = 60 * HZ;

#ifdef CONFIG_PROC_FS
static void refresh_vm_stats(struct work_struct *work)
Expand Down

0 comments on commit 07cb200

Please sign in to comment.