* [PATCH] compaction: fix deferring compaction mistake
@ 2012-08-08 0:57 Minchan Kim
2012-08-08 14:57 ` Rik van Riel
2012-08-09 13:50 ` Mel Gorman
0 siblings, 2 replies; 3+ messages in thread
From: Minchan Kim @ 2012-08-08 0:57 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-kernel, linux-mm, Minchan Kim, Rik van Riel, Mel Gorman
[1] fixed bad deferring policy but made mistake about checking
compact_order_failed in __compact_pgdat so it can't update
compact_order_failed with new order. It ends up preventing working
of deffering policy rightly. This patch fixes it.
[1] aff62249, vmscan: only defer compaction for failed order and higher
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Minchan Kim <minchan@kernel.org>
---
mm/compaction.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/compaction.c b/mm/compaction.c
index e78cb96..b6984e2 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -861,7 +861,7 @@ static int __compact_pgdat(pg_data_t *pgdat, struct compact_control *cc)
if (cc->order > 0) {
int ok = zone_watermark_ok(zone, cc->order,
low_wmark_pages(zone), 0, 0);
- if (ok && cc->order > zone->compact_order_failed)
+ if (ok && cc->order >= zone->compact_order_failed)
zone->compact_order_failed = cc->order + 1;
/* Currently async compaction is never deferred. */
else if (!ok && cc->sync)
--
1.7.9.5
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] compaction: fix deferring compaction mistake
2012-08-08 0:57 [PATCH] compaction: fix deferring compaction mistake Minchan Kim
@ 2012-08-08 14:57 ` Rik van Riel
2012-08-09 13:50 ` Mel Gorman
1 sibling, 0 replies; 3+ messages in thread
From: Rik van Riel @ 2012-08-08 14:57 UTC (permalink / raw)
To: Minchan Kim; +Cc: Andrew Morton, linux-kernel, linux-mm, Mel Gorman
On 08/07/2012 08:57 PM, Minchan Kim wrote:
> [1] fixed bad deferring policy but made mistake about checking
> compact_order_failed in __compact_pgdat so it can't update
> compact_order_failed with new order. It ends up preventing working
> of deffering policy rightly. This patch fixes it.
Good catch.
> [1] aff62249, vmscan: only defer compaction for failed order and higher
>
> Cc: Rik van Riel <riel@redhat.com>
> Cc: Mel Gorman <mel@csn.ul.ie>
> Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Rik van Riel <riel@redhat.com>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] compaction: fix deferring compaction mistake
2012-08-08 0:57 [PATCH] compaction: fix deferring compaction mistake Minchan Kim
2012-08-08 14:57 ` Rik van Riel
@ 2012-08-09 13:50 ` Mel Gorman
1 sibling, 0 replies; 3+ messages in thread
From: Mel Gorman @ 2012-08-09 13:50 UTC (permalink / raw)
To: Minchan Kim; +Cc: Andrew Morton, linux-kernel, linux-mm, Rik van Riel
On Wed, Aug 08, 2012 at 09:57:44AM +0900, Minchan Kim wrote:
> [1] fixed bad deferring policy but made mistake about checking
> compact_order_failed in __compact_pgdat so it can't update
> compact_order_failed with new order. It ends up preventing working
> of deffering policy rightly. This patch fixes it.
>
> [1] aff62249, vmscan: only defer compaction for failed order and higher
>
> Cc: Rik van Riel <riel@redhat.com>
> Cc: Mel Gorman <mel@csn.ul.ie>
> Signed-off-by: Minchan Kim <minchan@kernel.org>
Acked-by: Mel Gorman <mel@csn.ul.ie>
--
Mel Gorman
SUSE Labs
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-09 13:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08 0:57 [PATCH] compaction: fix deferring compaction mistake Minchan Kim
2012-08-08 14:57 ` Rik van Riel
2012-08-09 13:50 ` Mel Gorman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).