Make vm statistics update interval configurable

Make it configurable.  Code in mm makes the vm statistics intervals
independent from the cache reaper use that opportunity to make it
configurable.

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Christoph Lameter 2007-05-09 02:35:13 -07:00 • committed by Linus Torvalds
commit 77461ab332
2 changed files with 15 additions and 1 deletions

View file

@ -641,11 +641,13 @@ 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;
static void vmstat_update(struct work_struct *w)
{
refresh_cpu_vm_stats(smp_processor_id());
schedule_delayed_work(&__get_cpu_var(vmstat_work), HZ);
schedule_delayed_work(&__get_cpu_var(vmstat_work),
sysctl_stat_interval);
}
static void __devinit start_cpu_timer(int cpu)