Debug trace for kswapd reclaim.
Signed-off-by: Wu Fengguang <[email protected]>
---
mm/vmscan.c | 11 +++++++++++
1 files changed, 11 insertions(+)
--- linux.orig/mm/vmscan.c
+++ linux/mm/vmscan.c
@@ -1450,6 +1450,17 @@ loop_again:
if (nr_pages) /* software suspend */
goto scan_swspd;
+ if (debug_page_reclaim)
+ printk(KERN_DEBUG "zone %d%d watermark %d%d age %lu prio %d\n",
+ zone_idx(prev_zone),
+ zone_idx(zone),
+ zone_watermark_ok(zone, order,
+ zone->pages_high, 0, 0),
+ zone_watermark_ok(zone, order,
+ zone->pages_high,
+ pgdat->nr_zones - 1, 0),
+ zone->page_age, priority);
+
if (zone_watermark_ok(zone, order,
zone->pages_high,
pgdat->nr_zones - 1, 0)) {
--