Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 178187
Collapse All | Expand All

(-)kernel/time/clocksource.c (-2 / +8 lines)
Lines 77-87 static cycle_t watchdog_last; Link Here
77
/*
77
/*
78
 * Interval: 0.5sec Treshold: 0.0625s
78
 * Interval: 0.5sec Treshold: 0.0625s
79
 */
79
 */
80
#define WATCHDOG_INTERVAL (HZ >> 1)
80
#define WATCHDOG_INTERVAL (HZ*10)
81
#define WATCHDOG_TRESHOLD (NSEC_PER_SEC >> 4)
81
#define WATCHDOG_TRESHOLD (NSEC_PER_SEC >> 4)
82
82
83
static int secondtime;
84
83
static void clocksource_ratewd(struct clocksource *cs, int64_t delta)
85
static void clocksource_ratewd(struct clocksource *cs, int64_t delta)
84
{
86
{
87
	if (!secondtime) {
88
		secondtime = 1;
89
		return;
90
	};
85
	if (delta > -WATCHDOG_TRESHOLD && delta < WATCHDOG_TRESHOLD)
91
	if (delta > -WATCHDOG_TRESHOLD && delta < WATCHDOG_TRESHOLD)
86
		return;
92
		return;
87
93
Lines 132-138 static void clocksource_watchdog(unsigne Link Here
132
138
133
	if (!list_empty(&watchdog_list)) {
139
	if (!list_empty(&watchdog_list)) {
134
		__mod_timer(&watchdog_timer,
140
		__mod_timer(&watchdog_timer,
135
			    watchdog_timer.expires + WATCHDOG_INTERVAL);
141
			    round_jiffies(watchdog_timer.expires + WATCHDOG_INTERVAL));
136
	}
142
	}
137
	spin_unlock(&watchdog_lock);
143
	spin_unlock(&watchdog_lock);
138
}
144
}
(-)mm/page-writeback.c (-4 / +4 lines)
Lines 77-83 int vm_dirty_ratio = 40; Link Here
77
/*
77
/*
78
 * The interval between `kupdate'-style writebacks, in jiffies
78
 * The interval between `kupdate'-style writebacks, in jiffies
79
 */
79
 */
80
int dirty_writeback_interval = 5 * HZ;
80
int dirty_writeback_interval = 15 * HZ;
81
81
82
/*
82
/*
83
 * The longest number of jiffies for which data is allowed to remain dirty
83
 * The longest number of jiffies for which data is allowed to remain dirty
Lines 420-426 static void wb_kupdate(unsigned long arg Link Here
420
420
421
	oldest_jif = jiffies - dirty_expire_interval;
421
	oldest_jif = jiffies - dirty_expire_interval;
422
	start_jif = jiffies;
422
	start_jif = jiffies;
423
	next_jif = start_jif + dirty_writeback_interval;
423
	next_jif = round_jiffies(start_jif + dirty_writeback_interval);
424
	nr_to_write = global_page_state(NR_FILE_DIRTY) +
424
	nr_to_write = global_page_state(NR_FILE_DIRTY) +
425
			global_page_state(NR_UNSTABLE_NFS) +
425
			global_page_state(NR_UNSTABLE_NFS) +
426
			(inodes_stat.nr_inodes - inodes_stat.nr_unused);
426
			(inodes_stat.nr_inodes - inodes_stat.nr_unused);
Lines 437-443 static void wb_kupdate(unsigned long arg Link Here
437
		nr_to_write -= MAX_WRITEBACK_PAGES - wbc.nr_to_write;
437
		nr_to_write -= MAX_WRITEBACK_PAGES - wbc.nr_to_write;
438
	}
438
	}
439
	if (time_before(next_jif, jiffies + HZ))
439
	if (time_before(next_jif, jiffies + HZ))
440
		next_jif = jiffies + HZ;
440
		next_jif = round_jiffies(jiffies + HZ);
441
	if (dirty_writeback_interval)
441
	if (dirty_writeback_interval)
442
		mod_timer(&wb_timer, next_jif);
442
		mod_timer(&wb_timer, next_jif);
443
}
443
}
Lines 461-467 int dirty_writeback_centisecs_handler(ct Link Here
461
static void wb_timer_fn(unsigned long unused)
461
static void wb_timer_fn(unsigned long unused)
462
{
462
{
463
	if (pdflush_operation(wb_kupdate, 0) < 0)
463
	if (pdflush_operation(wb_kupdate, 0) < 0)
464
		mod_timer(&wb_timer, jiffies + HZ); /* delay 1 second */
464
		mod_timer(&wb_timer, round_jiffies(jiffies + HZ)); /* delay 1 second */
465
}
465
}
466
466
467
static void laptop_flush(unsigned long unused)
467
static void laptop_flush(unsigned long unused)
(-)mm/slab.c (-3 / +3 lines)
Lines 457-464 struct kmem_cache { Link Here
457
 * OTOH the cpuarrays can contain lots of objects,
457
 * OTOH the cpuarrays can contain lots of objects,
458
 * which could lock up otherwise freeable slabs.
458
 * which could lock up otherwise freeable slabs.
459
 */
459
 */
460
#define REAPTIMEOUT_CPUC	(2*HZ)
460
#define REAPTIMEOUT_CPUC	(12*HZ)
461
#define REAPTIMEOUT_LIST3	(4*HZ)
461
#define REAPTIMEOUT_LIST3	(20*HZ)
462
462
463
#if STATS
463
#if STATS
464
#define	STATS_INC_ACTIVE(x)	((x)->num_active++)
464
#define	STATS_INC_ACTIVE(x)	((x)->num_active++)
Lines 958-964 static void __devinit start_cpu_timer(in Link Here
958
		init_reap_node(cpu);
958
		init_reap_node(cpu);
959
		INIT_DELAYED_WORK(reap_work, cache_reap);
959
		INIT_DELAYED_WORK(reap_work, cache_reap);
960
		schedule_delayed_work_on(cpu, reap_work,
960
		schedule_delayed_work_on(cpu, reap_work,
961
					__round_jiffies_relative(HZ, cpu));
961
					__round_jiffies_relative(HZ*4, cpu));
962
	}
962
	}
963
}
963
}
964
964
(-)net/core/neighbour.c (-2 / +2 lines)
Lines 696-705 next_elt: Link Here
696
	if (!expire)
696
	if (!expire)
697
		expire = 1;
697
		expire = 1;
698
698
699
	if (expire>HZ)
699
	if (expire>4*HZ)
700
		mod_timer(&tbl->gc_timer, round_jiffies(now + expire));
700
		mod_timer(&tbl->gc_timer, round_jiffies(now + expire));
701
	else
701
	else
702
		mod_timer(&tbl->gc_timer, now + expire);
702
		mod_timer(&tbl->gc_timer, round_jiffies(now + 4*HZ));
703
703
704
	write_unlock(&tbl->lock);
704
	write_unlock(&tbl->lock);
705
}
705
}

Return to bug 178187