Memory management timer optimizations for power saving

From: Tero.Kristo
Date: Mon May 18 2009 - 08:41:51 EST


Hi,

I've been looking at some timer optimizations for the kernel to get it to sleep as long as possible, and to allow maximum power saving in embedded ARM environment. One of the most severe timer users appears to be memory management, with reap_work and wb_timer expiring rather often (I am seeing something like one timer expiring every two seconds or so.) In the attached patch I have changed the timers to deferred type, i.e. they can be delayed until next wakeup occurs from some other source, like another timer or some peripheral I/O. Can you see any problems doing something like this? A potential issue could be that some data writeback to permanent storage gets delayed, and in case of a sudden power loss it might be lost completely.

-Tero

Attachment: 0001-Memory-management-timer-optimizations-for-power-savi.patch
Description: 0001-Memory-management-timer-optimizations-for-power-savi.patch