Messages in this thread |  | | | From | Con Kolivas <> | | Subject | [ckpatch][18/29] swsusp-rework-memory-shrinker-rev-2.patch | | Date | Sun, 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. |  |