Messages in this thread Patch in this message | | | Date | Wed, 07 Dec 2005 18:48:11 +0800 | From | Wu Fengguang <> | Subject | [PATCH 16/16] mm: kswapd reclaim debug trace |
| |
Debug trace for kswapd reclaim.
Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> ---
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)) { -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |