Re: [PATCHv2 1/5] vmscan: separate sc.swap_cluster_max and sc.nr_max_reclaim

From: KOSAKI Motohiro
Date: Mon Nov 02 2009 - 10:36:39 EST


Hi

> > @@ -1932,6 +1938,7 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order)
> > .may_unmap = 1,
> > .may_swap = 1,
> >
> .swap_cluster_max = SWAP_CLUSTER_MAX,
> Or add comment in here.
>
> 'kswapd doesn't want to be bailed out while reclaim.'

OK, reasonable.
How about this?



---
mm/vmscan.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index 7fb3435..84e4da0 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1930,6 +1930,10 @@ static unsigned long balance_pgdat(pg_data_t *pgdat, int order)
.gfp_mask = GFP_KERNEL,
.may_unmap = 1,
.may_swap = 1,
+ /*
+ * kswapd doesn't want to be bailed out while reclaim. because
+ * we want to put equal scanning pressure on each zone.
+ */
.nr_to_reclaim = ULONG_MAX,
.swappiness = vm_swappiness,
.order = order,
--
1.6.2.5




--
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/