public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* init_timer_deferrable conversion
@ 2007-12-17  3:00 Parag Warudkar
  2007-12-17  8:55 ` Eric Dumazet
  0 siblings, 1 reply; 6+ messages in thread
From: Parag Warudkar @ 2007-12-17  3:00 UTC (permalink / raw)
  To: linux-kernel

In my quest to get the wake-ups from idle per second down to bare minimum, 
I noticed 3 places in the kernel that could benefit from 
using init_timer_deferrable() instead of init_timer() -

a) drivers/net/sky2.c - watchdog_timer. This was showing up high on 
Powertop's list of things that cause routine wakeups from idle. After 
converting to init_timer_deferrable() the wakeups went down and this one 
no longer shows up in powertop's list. 25% reduction.

b) kernel/time/clocksource.c - watchdog_timer - same story as sky2.c

c) net/core/neighbour.c - gc_timer - Most benefit from deferrable timer.

I am running a kernel with above changes and haven't noticed any immediate 
problems and the wakeups-from-idle have gone down from 5-7 to mere 1-2 per 
second.

Is there any reason not to make the above timers deferrable - corner 
cases, other side effects? If not then I will submit a patch.

Thanks

Parag

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-18  6:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17  3:00 init_timer_deferrable conversion Parag Warudkar
2007-12-17  8:55 ` Eric Dumazet
2007-12-17 14:29   ` Eric Dumazet
2007-12-17 17:00     ` Stephen Hemminger
2007-12-17 17:47       ` Parag Warudkar
2007-12-18  6:09     ` Parag Warudkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox