lkml.org 
[lkml]   [2005]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-12-07 11:33    [W:0.150 / U:1.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site