diff options
| author | Johannes Weiner <[email protected]> | 2009-03-31 15:19:38 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-04-01 08:59:12 -0700 |
| commit | bd2f6199cf9af472aeefa1b642c9f504f19e6008 (patch) | |
| tree | ba8cd5e7d940bcac161e28872998f86a2910362b /scripts/stackusage | |
| parent | bd775c42ea5f7c766d03a287083837cf05e7e738 (diff) | |
vmscan: respect higher order in zone_reclaim()
During page allocation, there are two stages of direct reclaim that are
applied to each zone in the preferred list. The first stage using
zone_reclaim() reclaims unmapped file backed pages and slab pages if over
defined limits as these are cheaper to reclaim. The caller specifies the
order of the target allocation but the scan control is not being correctly
initialised.
The impact is that the correct number of pages are being reclaimed but
that lumpy reclaim is not being applied. This increases the chances of a
full direct reclaim via try_to_free_pages() is required.
This patch initialises the order field of the scan control as requested by
the caller.
[[email protected]: rewrote changelog]
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions