public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* unnecessary timer interrupt of slab.c and bdi tasks when the system is in sleep state
@ 2010-09-30  4:02 Wu, Xia
  0 siblings, 0 replies; 7+ messages in thread
From: Wu, Xia @ 2010-09-30  4:02 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Hi,
I found some unnecessary timer interrupts when the system enter sleep state.
(1) /mm/slab.c
   cache_reap() clean up on allocated memory every 2s. If the system is in sleep state, the system is waked-up when this timer expires. In fact,
   there isn't more slabs to been cleaned up in sleep state. 
   
(2) /mm/backing-dev.c and /fs/fs-writeback.c
   fs-writeback.c and backing-dev.c define a set of bdi tasks which write back dirty date to the file-system. These tasks typically runs 
   every 5 seconds even there isn't any dirty date in memory. These tasks call schedule_timeout () and schedule_timeout_interruptible().
   In fact, there isn't any dirty data in memory when the system is in sleep state. 

I think these timers should not wake-up the system when the system is in sleep state. In these cases, these timers only waste the CPU resource
and consume more power.

Regards
xia


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

end of thread, other threads:[~2010-10-01 15:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <A24AE1FFE7AEC5489F83450EE98351BF221878E0FB@shsmsx502.ccr.corp.intel.com>
2010-09-30 14:13 ` unnecessary timer interrupt of slab.c and bdi tasks when the system is in sleep state Christoph Lameter
2010-10-01 14:20   ` Frederic Weisbecker
2010-10-01 14:22     ` Van De Ven, Arjan
2010-10-01 14:36       ` Frederic Weisbecker
2010-10-01 15:20         ` Van De Ven, Arjan
2010-10-01 15:27           ` Frederic Weisbecker
2010-09-30  4:02 Wu, Xia

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