lkml.org 
[lkml]   [2006]   [Jun]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromCon Kolivas <>
Subject[ckpatch][18/29] swsusp-rework-memory-shrinker-rev-2.patch
DateSun, 18 Jun 2006 17:33:51 +1000
From: "Rafael J. Wysocki" <rjw@sisk.pl>

Rework the swsusp's memory shrinker in the following way:

- Simplify balance_pgdat() by removing all of the swsusp-related code
  from it.

- Make shrink_all_memory() use shrink_slab() and a new function
  shrink_all_zones() which calls shrink_active_list() and
  shrink_inactive_list() directly for each zone in a way that's optimized
  for suspend.

In shrink_all_memory() we try to free exactly as many pages as the caller
asks for, preferably in one shot, starting from easier targets.  
\
 
 \ /
  Last update: 2006-06-18 09:36    [from the cache]
©2003-2008