RE: 2.6.10-rc3: kswapd eats CPU on start of memory-eating task

From: Rik van Riel
Date: Thu Dec 23 2004 - 08:30:45 EST


On Thu, 23 Dec 2004, Rik van Riel wrote:

You need the oneline patch that Andrew Morton posted two
days ago:

Message-Id: <20041219230754.64c0e52e.akpm@xxxxxxxx>

You mean that totally disable swap_token?

Oops, wrong thread ;( You need this one:

Message-Id: <20041220125443.091a911b.akpm@xxxxxxxx>

We haven't been incrementing local variable total_scanned since the
scan_control stuff went in. That broke kswapd throttling.

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

25-akpm/mm/vmscan.c | 1 +
1 files changed, 1 insertion(+)

--- linux-2.6.9/mm/vmscan.c.oom 2004-12-21 11:26:20.343790527 -0500
+++ linux-2.6.9/mm/vmscan.c 2004-12-21 11:27:43.514384221 -0500
@@ -1079,6 +1079,7 @@
shrink_slab(sc.nr_scanned, GFP_KERNEL, lru_pages);
sc.nr_reclaimed += reclaim_state->reclaimed_slab;
total_reclaimed += sc.nr_reclaimed;
+ total_scanned += sc.nr_scanned;
if (zone->all_unreclaimable)
continue;
if (zone->pages_scanned >= (zone->nr_active +

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/